Virtual switch with acknowledge
Posted: Wednesday 23 September 2020 20:40
Hi to all.
Is it possible to turn on a virtual switch only if I get an acknowledge from the device?
Let me summarize my needs:
I've a switch that uses a little dzVents script to send some mqtt commands to my irrigation system.
What I need is that the switch icon only turns on when I receive back, via mqtt, the info from the device that it is turned on.
Now if I press the virtualswitch, even if the device is offline, from a graphical point of view it turns on...
The device is a ESP8266 with espeasy firmware.
Thanks for any hints!
Gianluca
Is it possible to turn on a virtual switch only if I get an acknowledge from the device?
Let me summarize my needs:
I've a switch that uses a little dzVents script to send some mqtt commands to my irrigation system.
What I need is that the switch icon only turns on when I receive back, via mqtt, the info from the device that it is turned on.
Now if I press the virtualswitch, even if the device is offline, from a graphical point of view it turns on...
The device is a ESP8266 with espeasy firmware.
Thanks for any hints!
Gianluca