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

¡Mi casa me manda mensajes por Telegram! - 1
  • Facebook
  • Twitter
  • LinkedIn
  • Pinterest

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.

 

¡Mi casa me manda mensajes por Telegram! - 2
  • Facebook
  • Twitter
  • LinkedIn
  • Pinterest

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.

¡Mi casa me manda mensajes por Telegram! - 3
  • Facebook
  • Twitter
  • LinkedIn
  • Pinterest

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

Submit a Comment

Your email address will not be published. Required fields are marked *

It may also interest you ...

VULNERABILITY IN METEOTEMPLATE

Vulnerability in Meteotemplate and how it affects SEO

  Vulnerability in Meteotemplate What is Meteotemplate? Meteotemplate is a software package, or template, that hundreds of weather stations ...
Read more
Connection Partom VTX to Arduino

VTX FPV video transmitter control with Arduino

Do you want to control a VTX video transmitter with an Arduino? Here I explain how to do it ...
Read more
consejos para instalar domotica

10 Tips to install home automation at home

Do you want to install home automation at home but don't know where to start? Here are 10 tips to install home automation in ...
Read more
Homemade CNC with Arduino Root 3

Homemade CNC with Arduino II - Mechanics

Mechanical assembly of the CNC milling machine with Arduino. An easy and cheap machine to build and with many possibilities. It allows ...
Read more

Pin It on Pinterest

Share This