-
1Buy a SONOFF WIFI Outlet
Buy a Sonoff TH10 Wiif Switch and open it up
Do not connect it to POWER.
Open the device like it is shown here at 1:26
-
2Register a Telegram Bot and get a Token
To find out more about Telegram Bots in Generell: Check this Link
To get your on Bot running: Waqtch this video at Minute 1:40:
+
Important: Copy the Telegram Bot Token like shown in Min 5:00
-
3Download the Arduino SW and install libaries and compile the code
Download the Arduino Sketch here
https://github.com/Uspizig/Heizibot/tree/main/Software
Download the necessary Libs:
https://github.com/witnessmenow/Universal-Arduino-Telegram-Bot
Set your credentials(e.g. WifiSSID, PWD, Telegram Token,..) in credentials.h
Compile the Code
-
4Upload the Code to the Sonoff TH10
To do this best watch this link:
Here you see how to connect the UART Programmer to the SONOFF
Once Ready: press the button on the sonoff during connection of the 3.3V pin and the sonoff will go into flashing mode.
Now you can upload the code from github.
NEVER DO this while mains power is connected.. This may kill you...
Once done the Telegram Bot is up and running.
You can now chat to your bot. For Security reasons it will not answer unless you Telegram CHAT ID is known to the bot.
If a unknown user chats the first time with the bot it will answer with the telegram id.
You can use this and add it to the Arduino Credentials.h and once done ot will answer correctly to your request..
As of now i implemented only basic features:
- Timer 5: Starts a 5 minute timer of the Pump.
- Timer 10: Starts a 10 minute timer of the Pump
- Status: Shows the status of the waterpump: Has already somebody else pushed the button before
- AUS: Shutsdown the Waterpump for Hot Water.
The bot Answer may look like this:
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.