DIY Home Automation Arduino - Using Telegram

  Рет қаралды 33,372

Brian Lough

Brian Lough

Күн бұрын

Пікірлер: 58
@BrianLough
@BrianLough 5 жыл бұрын
Do you use any other services such as Blynk etc with your ESP8266, how do you find them?
@squalazzo
@squalazzo 5 жыл бұрын
@@debsahu7801 but Artik is shutting down... www.cdrinfo.com/d7/content/samsung-pulls-plug-artik-iot-project-focuses-ai-auto-parts-and-5g
@squalazzo
@squalazzo 5 жыл бұрын
​@@debsahu7801 thanks for the clarification :)
@kwcatur
@kwcatur 4 жыл бұрын
The explanation is so clear. There are some questions about Universal Telegram in my brain. Thank's Brian
@UnexpectedMaker
@UnexpectedMaker 5 жыл бұрын
What a great project Brian! A very clever use of Telegram. I had no idea it was that easy to set up a bot!
@xyloidify
@xyloidify 5 жыл бұрын
Good video as always Brian! Love your D1 Mini Breakout board. Thanks for the fast shipping.
@BrianLough
@BrianLough 5 жыл бұрын
Thanks Steven, Glad they arrived ok! I've used them myself for a couple of projects and I like them a lot!
@CraigHollabaugh
@CraigHollabaugh 2 жыл бұрын
Very informative. Thanks from Colorado.
@euehshsysdue
@euehshsysdue 5 жыл бұрын
Nice video, super project, good to see your contribution to the Arduino community by adding a library. Also nice to see the shorter videos, which are easier to watch then the longer or live video's
@ChunkySteveo
@ChunkySteveo 5 жыл бұрын
Nice setup! You need a follow up video too where you add a push button that toggles the lights on or off, and updates the telegram bot with that info too!
@r_s_steam_cr
@r_s_steam_cr 3 жыл бұрын
Además de aprender mucho, el video me pareció muy entretenido ! Muchas gracias
@TJHorner
@TJHorner 5 жыл бұрын
Very cool project! Maybe sending the answerCallbackQuery method when you receive it will speed up trigger times? I think Telegram is still awaiting a response for the callback queries when you press them a second time (that's why it shows the spinner on the button when you tap it). I can send a PR in if you want :)
@BrianLough
@BrianLough 5 жыл бұрын
I'm not sure it would improve the trigger but I certainly would like to get rid of that spinner! I would love a PR! Feel free to join the group chat in the description, it's easier for me to reply there than on KZbin if you have any questions
@Enes_Yildiz
@Enes_Yildiz 9 ай бұрын
Thank you very much. You are great
@pepyakodance
@pepyakodance 4 жыл бұрын
Thank you Brian for this video!
@TheRedmarlboroman
@TheRedmarlboroman Жыл бұрын
Hi, thank you so much for making this tutorial. I am looking for this kind of application to remote turn on / off and resetting a computer power button using a relay. I like your idea of using telegram which you already described in the advantages. I really hope you can make a tutorial video for this kind of application as I am new to this iOT devices. Thanks
@fixitfaster
@fixitfaster 3 жыл бұрын
Great Great article. Thanks a lot for sharing you your knowledge and time here. I'm playing with your project and adapting it for remotely controlling different things. I'd like to nbe able o manipulate the format of the Telegram keyboard buttons, but I suppose that's out of reach.
@amirulafiq7336
@amirulafiq7336 4 жыл бұрын
tq Sir finally i got my solution in making telegram bot
@woolfy02
@woolfy02 Жыл бұрын
Do you know of any other app like telegram that can use bots like it? I can't find anything. Great video!
@SebaTotem555
@SebaTotem555 3 жыл бұрын
Gracias! funciona perfecto.
@turutzi
@turutzi 4 жыл бұрын
Hey Nice Video found a littel mistake in your skecht. Your "pinMode" and the "digitalWrite" in the setup funktion got the pinnumber fixed. You put the 2 in there not the defined LED_PIN. sorry for the bad englisch but nice Video
@TheArabianHunter
@TheArabianHunter 4 жыл бұрын
thank you very much really appreciate your work
@Magic-Smoke
@Magic-Smoke 5 жыл бұрын
Most excellent! Thank you
@alejandroveleiva664
@alejandroveleiva664 3 жыл бұрын
Hola Brian te felicito por el canal y por la explicación tengo una duda cuando le agregas la ID debes declararla por lo intente hacerlo como mencionaste en el vídeo pero me salta error saludos y gracias
@mr3748
@mr3748 4 жыл бұрын
Good day Brian, this video of yours helped me a lot, I have a question about the long polling... So I currently have 2 esp8266s controlling 2 waterpumps, however I did not use long polling as it is important for me to keep the rest of the loop() running. This causes heavy network traffic (which I think triggers the wdt sometimes) AND high data usage. Long polling helps to reduce this. So in my loop() I am calling the bot.getupdates() every 90s. In my head this should reduce the network traffic. This sort of worked fine and my esp ran 7 days in a row until my win10 laptop did an update on the same wifi resulting in a wdt reset... Question: If I add a bot.longpoll =10, would this further increase the stability of the esp when the wifi traffic gets heavy? I can afford 10s but not more than that.
@BrianLough
@BrianLough 4 жыл бұрын
adding 10s long poll won't really help if you are only checking telegram every 90 seconds anyways, the only difference is it would wait 10 seconds for a message to come in, but in the overall scheme of things it wouldn't help significantly
@jaxxrr
@jaxxrr 2 жыл бұрын
in the video you say arduinojson 6 is not supported but when I try to use 5 I get only errors
@mr3748
@mr3748 4 жыл бұрын
Good day, thanks for the video, Ive learned a few things like creating buttons in the chat, which is much more convenient than typing the whole time... So I have a question, so I understand that the getUpdates function returns the earliest UNCONFIRMED messages, which means if you were able to send i.e. 140 messages before the program checks for new messages, then the ESP program will only recieve the newest 100 messages correct? The oldest 40 messages will be ignored. So as long as my ESP program read the messages as quickly as possible after being sent, then I should have anything to worry about messages being ignored? I hope this make sense
@ailtonmk11
@ailtonmk11 2 жыл бұрын
congratulations to you... because your code or others in telegram stopped working... I had tested it about 2 years ago and it worked very well... I've done everything I changed the libraries, the management of esp826 cards and nothing... Will it be agluma thing with telegram??
@mr3748
@mr3748 4 жыл бұрын
I forgot to ask. .. With longpolling... Is the longpolling always executing after each cycle of the loop() OR everytime when bot.getupdates is called? So that when the esp calls bot.getupdates, then I'll will wait for X amount of seconds for new messages before continuing with the rest of the code? I am sorry if this is an easy concept that I am getting wrong, but I can't seem to find any thing that explains clearly. Thanks for your help in advance Manie
@BrianLough
@BrianLough 4 жыл бұрын
Hello, It will wait for up to the given time when you call get updates. But if it finds a new message it will return early. It won't do anything but wait during this time Hope this helps.
@mr3748
@mr3748 4 жыл бұрын
@@BrianLough Ah okay I see, thanks a lot for your help👍👌
@kalash007kalash007
@kalash007kalash007 3 жыл бұрын
Brian hi! I encountered a bug in the library UniversalTelegramBot. h. When sending a large message in Cyrillic to the bot. ESP32 stops receiving messages. There is a buffer overflow. ESP32 cannot accept the message and therefore all other messages are queued and the bot is rendered unavailable. Tell me what to fix in the library ?A message like this "ррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррапвапаапвапппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппрррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррапвапаапвапппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппрррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррапвапаапвапппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппрррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррапвапаапвапппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппрррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррапвапаапвапппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппрррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррапвапаапвапппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппппррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррррроодддддд".
@kalash007kalash007
@kalash007kalash007 3 жыл бұрын
incoming message length 15989 Creating DynamicJsonBuffer Failed to parse update, the message could be too big for the buffer. Error code: IncompleteInput
@dheeban100
@dheeban100 5 жыл бұрын
Is it necessary to flash the esp8266 board with some firmware before i use arduino sketches?
@ashwinc44
@ashwinc44 4 жыл бұрын
hii i need your help in using your universal telegram bot can you help me out please i'm trying to use mosquitto mqtt client and telegram client in node mcu 1.0(2sp8266) the mosquitto client is working but the universal telegram client is not can you help me out please.......?
@guillermogalvanalvarez6467
@guillermogalvanalvarez6467 5 жыл бұрын
Hi, nice project! Thanks you! I have a problem, my esp module conect to the WiFi, but It doenst received the Telegram Signal, i dont know what happend. The boot token IS correct. Thanks you my Friend
@esp3jaku890
@esp3jaku890 4 жыл бұрын
Hello Brian, i am sorry to hessitate you; but after installation of the lib. i always get the massage " Error in ArduinoJson.h" could not compile... also after new install of the IDE ! C:\Arduino_SkB\libraries\Universal-Arduino-Telegram-Bot-master\src/UniversalTelegramBot.h:26:25: fatal error: ArduinoJson.h: No such file or directory
@pradyumnasnadig2783
@pradyumnasnadig2783 4 жыл бұрын
go to library directory delete arduino json and reinstall the lib fron lib manager
@ifyouwantpeaceprepareforwa4329
@ifyouwantpeaceprepareforwa4329 3 жыл бұрын
I Can't Find Button, How To Add The ON / OFF Button In Telegram?
@guguslangit2230
@guguslangit2230 4 жыл бұрын
Its possible with local host? Without Internet connection
@yudistra5455
@yudistra5455 4 жыл бұрын
Can using/get notif milti client. No only one account telegram. I want multi account/client telegram Can?
@andrewkieran8942
@andrewkieran8942 5 жыл бұрын
1. "B. Lock" made me laugh. 2. I like Blynk, which seems easier to work with than the Telegram setup you've shown here. It's also nice to be able to create great looking phone/tablet apps with minimal effort. One downside it that it doesn't offer web access from a PC. 3. You're a skilled programmer so perhaps that makes the Telegram approach easier for you than for those of us who struggle to code.
@BrianLough
@BrianLough 5 жыл бұрын
1) I was wondering would anyone notice that :) 2 & 3) I haven't actually used Blynk, I'm just eating my own dog food by using my own library! Yeah it could be a bit more complicated, but hopefully the sketch above can be a base for people to use, hopefully they wont have to change much (just what happens when things match)
@gnevzmaja
@gnevzmaja 5 жыл бұрын
As nice as project made with Blynk might look, Blynk is not as free as telegram is. They tend to make users pay for using their infrastructure, exact thing telegram is offering for free via their bot api Very nice tutorial Brian!
@andymouse
@andymouse 5 жыл бұрын
Hi Brian, Does anybody use the Arduino Yun? I dont see many vids about it and its still quite expensive. I have a Yun, it was given to me about 5 maybe 6 years ago and it, along with Julian Illet's excellent intro (check his channel if you have one) got me interested with the whole Arduino thang. So who plays with them now and what do they do with them?
@BrianLough
@BrianLough 5 жыл бұрын
I've never used one sorry
@jurglienhard5913
@jurglienhard5913 3 жыл бұрын
Hello Brian Thanks again for the great tutorial. It supports my project a lot. Your work is excellent and absolutely professional. Unfortunately, I have a problem with handleNewMessages () for which I have not yet found a solution. The subroutine needs a disproportionately large amount of heap when it is called and leads to too many heap fractions for a short time. This cause often leads to restarts. Is there an explanation on your part for these heap occurrences? I would be very grateful for a suggested solution. If desired, I can also send program excerpts and log files. Many thanks and best regards from Switzerland Jürg Lienhard
@BrianLough
@BrianLough 3 жыл бұрын
Hello, Get updates will always use a lot of heap because making a https call uses a lot of heap. As for fragmentation of heap, that could be more my fault and my approach for writing the library. I made a proof of concept library that should/could be more heap efficient in terms of fragmentation but it's not as feature complete or battle hardened github.com/witnessmenow/pinocchio-arduino-telegram-library
@jurglienhard5913
@jurglienhard5913 3 жыл бұрын
Hello Brian Please excuse my delay in responding. After extensive analysis, I finally decided on your excellent library "UniversalTelegramBot". With the help of the F macro and the C program "tcpCleanup ()", I was able to reduce the variable area during compilation to 41,000. When the telegram-bot is called, approx. 9000 bytes are still available in my procect. In my project safe operation is guaranteed with this heap volume. I think, it is critical for restarts only below values ​​of 5000. Thanks again and many greetings from Juerg Lienhard from Switzerland. Stay healthy! Examples: uint32_t ram = ESP.getFreeHeap(); Serial.printf("RAM: %d change %d ", ram, (ram - originalram )); if(HEAPCHECKER) { // losing bytes work around tcpCleanup(); Serial.print(F("tcpCleanup")); // Using F Macro as often as you can }
@matthiasBdot
@matthiasBdot 5 жыл бұрын
Great video!
@RichardT2112
@RichardT2112 5 жыл бұрын
I wonder if I can control my kids with this .... doubtful ;)
@michaelbaur5954
@michaelbaur5954 Жыл бұрын
Super explained as always :-) This works great when I run it on my home router. However, if I want to use a hotspot with my smartphone or try it via a portable router, suddenly nothing works. The cause may be the WiFiClientSecure.h library. Is there a solution?
Why did Raspberry Pi make their own SSD?
12:58
Level 2 Jeff
Рет қаралды 143 М.
Every Apartment needs this Upgrade! (WhatsApp/Telegram Notifications)
10:05
Osman Kalyoncu Sonu Üzücü Saddest Videos Dream Engine 269 #shorts
00:26
didn't manage to catch the ball #tiktok
00:19
Анастасия Тарасова
Рет қаралды 35 МЛН
I tricked MrBeast into giving me his channel
00:58
Jesser
Рет қаралды 21 МЛН
Make a TINY Arduino Drone with FPV Camera - Will It Fly?
20:26
Max Imagination
Рет қаралды 1,2 МЛН
MQTT Broker/Bridge on the ESP8266
17:28
Martin Ger
Рет қаралды 82 М.
ESP8266 + Arduino + database - Control Anything from Anywhere
13:51
Electronoobs
Рет қаралды 638 М.
35 Light Control with Telegram and ESP8266  | NodeMCU | Arduino |
12:42
void loop Robotech & Automation
Рет қаралды 4,2 М.
ESP8266 Telegram Home Automation Feedback System
8:19
Viral Science - The home of Creativity
Рет қаралды 19 М.
Hacking a weird TV censoring device
20:59
Ben Eater
Рет қаралды 3,1 МЛН
Try these 16 Brilliant ESP32 projects!!!
11:18
ToP Projects Compilation
Рет қаралды 594 М.