My house sends me messages on Telegram!

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, grandma presses the button on the bracelet she wears on her arm, etc.). Until now, to send messages to my mobile phone, I used to do it by means of Pushoverand it worked well...

The problem with Pushover is that you need to have a client installed on your mobile phone, and this one customer is a paying customer (and if I want my wife or children to receive messages, they each have to install a client).

Luckily, I have found a node for Node-network that allows to send messages by TelegramIt works very well indeed.

Telegram allows the creation of "bots" ("robots"), which are simply chats to which users subscribe and which allow them to send and receive messages in an automated way.

With this node and a few lines and functions in Node-network, in one afternoon I had an interactive notification system.

Interactive? Yes, because this system allows, in addition to sending notifications, 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 a message containing /alarm and the bot answers them with the status of the alarm (if it is active, inactive, if it has been triggered, 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.

Be sure to subscribe to the Blog, if you haven't already done so, because I plan to write more articles on Telegram integration and I hope you will find them of interest.

Incidentally, this is a good, simple and inexpensive solution for receive notifications on the Smartwatch.

Sales
Amazfit GTS Smartwactch Sports Watch |14 days Battery |GPS+Glonass |Biological Tracking Sensor BioTracker™ PPG |Heart Rate |Swimming |Bluetooth 5.0 (iOS & Android) Black 12.6×12.4×6 cm
  • FASHION FIT - A smooth transition from the 2.5D curved glass to the metal watch body reduces the thickness to 9.4 mm, making it slim and delicate. Its aircraft aluminium alloy also helps to control the weight of the watch body, whose 24.8 g makes it light, yet strong and robust at the same time. In addition, there is a choice of 6 stylish and modern colours, making it suitable for any taste or situation.
  • 5ATM WATER RESISTANCE AND PROFESSIONAL SWIMMING TRACKING - Water resistant to a depth of 50 meters, the Amazfit GTS also supports multiple swimming scenarios. The watch can automatically recognize your swimming position and record data such as SWOLF, pace or calorie consumption, and allows for accurate data analysis every time you swim. Suitable for: Swimming, Splash, Rain or Snow, Snorkeling and Cold Shower.
  • Amazfit GTS combines software and hardware to deeply optimise power consumption to achieve 14 days of battery life while maintaining the watch's slim body. The watch can run continuously for a month and a half in basic mode, enough to run a marathon or endurance race. Note: Battery life may vary depending on usage, settings and other factors.
  • Amazfit GTS combines software and hardware to deeply optimise power consumption to achieve 14 days of battery life while maintaining the watch's slim body. The watch can run continuously for a month and a half in basic mode, enough to run a marathon or endurance race. Note: Battery life may vary depending on usage, settings and other factors.
  • ✅ A NEW UNIVERSE OF CUSTOMISABLE INTERFACES WITH EDITABLE QUICK ACCESS - The sleek 1.65-inch customised square display offers a larger viewing area than a round display, so you can include more information. In addition, we have designed two innovative interfaces with customisable information. In total, you can customise up to 7 widgets with 17 available functions including heart rate, calendar, weather, events and more.

In my case, I have an Amazfit GTS 2 (an older model that you can see here) and I receive the notifications that the home automation system sends via Telegram).

Very useful!

2 thoughts on “¡Mi casa me manda mensajes por Telegram!”

    • 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 almost anywhere.

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

      Reply

Leave a comment