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
Virtual switch with acknowledge
Moderator: leecollings
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Virtual switch with acknowledge
Would it be an option to use (a) push button(s) to trigger the sending of the mqtt commands and a virtual switch to receive the feedback and change state based on that feedback?
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
- Posts: 9
- Joined: Monday 11 September 2017 12:42
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: Virtual switch with acknowledge
Yes it could be a good idea and I will use it if there is no other ways. The "acknowledge" button will be password protected otherwise you can inadvertently change the status.... Or is it possible to lock it otherwise?
Inviato dal mio Mi 9T Pro utilizzando Tapatalk
Inviato dal mio Mi 9T Pro utilizzando Tapatalk
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Virtual switch with acknowledge
...Or use an alert device to reflect actual status.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
- Posts: 9
- Joined: Monday 11 September 2017 12:42
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: Virtual switch with acknowledge
Thanks I will give it a try!
Inviato dal mio Mi 9T Pro utilizzando Tapatalk
Inviato dal mio Mi 9T Pro utilizzando Tapatalk
Who is online
Users browsing this forum: No registered users and 1 guest