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 on the bracelet she wears on her arm, etc). Until now, to send messages to my mobile, I did it using Pushover, and it worked fine ...
The problem with Pushover is that you need to have a client installed on your mobile and this customer is paying (And if I want my wife or children to receive messages, they have to install a client each).
Luckily, I have found a node for Node-red that allows to send 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 you to send and receive 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 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 that 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 about the integration of Telegram and I hope you find them of interest.
By the way, this is a good, simple and inexpensive solution for receive notifications on the smartwatch.
In my case, I have an Amazfit (an older model than the one you can see here) and I receive in it the notifications that the home automation system sends by Telegram).