My house sends me messages by Telegram!

mqtt-telegram-domotica

Written by Mariete

Dec 17, 2016

Updated:

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).

  • Facebook
  • Twitter
  • Pinterest
  • LinkedIn

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.

 

  • Facebook
  • Twitter
  • Pinterest
  • LinkedIn

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.

  • Facebook
  • Twitter
  • Pinterest
  • LinkedIn

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.

 

2 Comments

  1. Miguel

    What Node-Red server have you used? The ones I have seen almost all are paid.

    Reply
    • Mariete

      Node-red is free, you can install it on many devices.
      I have installed Node-red on a Raspberry PI 3 but you can install it in, as I say, in, almost, anywhere.

      You can find it here: https://nodered.org/
      Anyway, in the latest versions of Raspbian (the Raspberry Pi operating system) it comes standard, so you don't have to install anything.

      Reply

Write a comment

It may also interest you ...

en_USEnglish
es_ESEspañol en_USEnglish

Pin It on Pinterest

Share This