Rule on tele-switch1#state do publish stat/control/motion1 %value% endon #21254
-
Hello, I have an ESP32 I/O board that is flashed with the Tasmota FW. Now I need that the switch status is published on regular basis in the same way independently from the switch change status in order to keep OpenHab refreshed on the status. Rule3 on tele-switch1#state do publish stat/control/motion1 %value% endon But this does not trigger in any way. I also tried to change the TelePeriod to 60 to speed up the try but the rule is nevere triggered. What am I doing wrong ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Events with Tasmota is already publishing Switch states at a regular basis, without you doing anything, in the However, you can create rules using the existing Switch state from the telemetry messages, like Additionally, unrelated to TelePeriod, you can also use rule variables like |
Beta Was this translation helpful? Give feedback.
-
Thank you sfromis. Now it is clear why I did not see any trigger. Considering that at OH wake-up the switch state is unknown following your suggestion shall I make a rule like the one below for each of the switch ? Or is there any clever way for having the same topic published from the OH command field ? |
Beta Was this translation helpful? Give feedback.
I do think that openHAB can manage to parse JSON data in the payload, without all that extra trouble.