We successfully launched a bot in telegram, teach it to talk to us (RU) and create a control panel with a menu (RU). Now let's move on to the next task. We will start controlling the house through the menu (Inline keyboard in Telegram) in the bot messages.
This is a translation of my article in Zen. Also, do not forget to read us in other services: Instagram, telegram (RU, EN, DE). Medium, LiveJournal, YouTube.
This article links to the following publications:
Notifications in telegram from a smart home (RU)
Quick responses of the bot in Telegram (RU)
Telegram: talking to a smart home (RU)
Let's change our automation, which answers the /start command
As you can see, we answer with a single message Light:/lghtbdrm. This means that we will display the Light button, pressing which will send the /lghtbdrm command. Now let's modify our automation, which is called light in the bedroom
In this automation, we have added a trigger to turn on the light. Also, for debugging, I added an answer with a message with a status text. The result of communication in the chat looks like this:
And the video of the work looks like this.
As you can see, all is easy and works stably. That's all for today, it will be more interesting later.
And that's all, subscribe, likes, repost... And we will soon be a small lottery ☺.