How to integrate home automation and Telegram?
There are certain things that I want my home automation system to notify me of immediately (the alarm goes off, smoke is detected, the grandmother presses the button of the bracelet on her arm, etc.). Until now, to send messages to my mobile, I did it by Pushover, and it worked well ...
Pushover's problem is that you need to have a client installed on your mobile and this customer is paid (And if I want my wife or children to receive messages, each one has to install a client).
Luckily, I have found a node for Node-network that allows sending messages by Telegram, and the truth is that it works very well.
Telegram allows the creation of "bots" ("robots") that are nothing more than chats to which users subscribe and that allows sending and receiving messages in an automated way.
With this node and a few lines and functions in Node-red, in one afternoon I had an interactive notification system.
Interactive? Yes, because this system allows, in addition to sending notifications, that users can send messages to the bot and it responds to them with the requested information (or with new questions and even with menus to select options) in a very simple way.
For example, a user sends a message containing /alarm and the bot answers them with the status of the alarm (if it is active, inactive, if it has jumped, etc.).
I have also created in Nodered a connector from MQTT to Telegram, which allows any application that sends MQTT to send messages via Telegram in a very simple way.
It is one of the most interesting additions I have made to my Smart Home.
Do not stop subscribing to the Blog, if you have not already done so, because I plan to write more articles on the integration of Telegram and I hope you find them of interest.