i have a series of devices that send it's status by using MQTT. The broker runs in a Linux machine and it receives all the values from the connected machines and their corresponding sensors. Currently i have values such as on/off and open/close.
i would like to receive those values in my mobile over Internet in a service such as a Telegram bot or something similar. Is there any way to export them, please?
I have a Raspberry Pi as my MQTT Broker for 13 ESP32's. The RaspberryPi communicates the ESP32's MQTT Broker info to my websites database. From my web site I am able to access the ESP32's data and make changes.
Thanks for your reply. i have something similar and i can read all the values and current status from a web page.
What i am looking for is a way, when there is an action that arrives to MQTT broker (eg \doors\kitchen is open) then send an alert with the topic to a Telegram bot.
My MQTT Broker is a Raspberry Pi. I use a Python program to extract the data from the MQTT Broker. The data goes to the websites database and sends emails. I am sure a library could be found or code could be written to send an alert. A search using the words "python send alert telegram bot" found some code examples.
Also, using words "node red send alert telegram bot" produces results.
Node-Red or Python can take action from received topics.