Created At
Nov 30, 2023
Created At
Nov 30, 2023
Last Update
Dec 01, 2023
Platforms
Yubii Home Pro, HC 3
Views
1598
Download
84
A Lua script for the Fibaro HC3 system that automates sending messages to a Telegram chat. Ideal for smart home notifications, automated responses, or status updates.
This script facilitates the sending of predefined messages to a Telegram chat, be it public or private. It leverages a Telegram bot for dispatching messages based on specific events or conditions.
TelegramMessageId is updated or created as needed.accessToken with your personal Telegram bot token.chatId with the ID of the desired Telegram chat.TelegramMessageId.In this script:
accessToken and chatId are defined should be replaced with your own data.TelegramMessageId is a valid ID from the messages table.sendTelegramMessage function uses the Telegram Bot API to send the message.Scenario can looks like:
Step by Step:
1. Create LUA Szenario like:
2. Create a Blockszenario for Trigger Event like:
3. Use the Variable for your Text in the Script:
czy komuś udało się to uruchomić?