Virtual switch with acknowledge

Moderator: leecollings

Post Reply
gian72
Posts: 9
Joined: Monday 11 September 2017 12:42
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Virtual switch with acknowledge

Post by gian72 »

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
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Virtual switch with acknowledge

Post by waaren »

gian72 wrote: Wednesday 23 September 2020 20:40 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.
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
gian72
Posts: 9
Joined: Monday 11 September 2017 12:42
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Virtual switch with acknowledge

Post by gian72 »

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

User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Virtual switch with acknowledge

Post by waaren »

gian72 wrote: Thursday 24 September 2020 0:14 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?
...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
gian72
Posts: 9
Joined: Monday 11 September 2017 12:42
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Virtual switch with acknowledge

Post by gian72 »

Thanks I will give it a try!

Inviato dal mio Mi 9T Pro utilizzando Tapatalk

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest