Hello everyone!
It is possible to get parameters for time trigger from MQTT topics?
For example, I have a topic, contains time when toggle light.
Is it posible push this data from mqtt topic to trigger configuration?
One of the way it’s code some script, which subscribe to this topic, get data from his topc and rewrite automations.yaml file with new parameter for time trigger and after that reload HA. But this solve is not so good, I think. Maybe HA already have some more propely solve? I just newbie with HA.
I have Nextion HMI panel, from this HMI I can see some information, can control devices, toggle light, sockets, e.g.
Also I have linux controller with mqtt broker and HA. All devices I connect to MQTT broker, so I did mqtt integration in HA.
When I touch some widget in Nextion HMI this data pushes into mqtt boker, and light is toggle fro example and in HA I also see results of this action ofcourse.
So in HMI I have page, where I can configuration time periods for toggle heater.
For example, I can set time range from 13:00 for 18:00 when heater is ON, in other times it’s OFF.
So, question is can I put it configuration for time trigger in HA?
Right now, I don’t yet have tops and example values in them, as it’s a work in progress.
There should be a start time for the heater and a time when it turns off. There will probably be two tops, one with the start time and one with the end time.
Speaking about the format of the time data, I can realize it in different formats, for example in this one: “HH:MM:SS”, the main thing is that it should be clear for HA. But it is not clear how to put it into HA from mqtt.