Page 1 of 1

Virtual switch and update On/Off

Posted: Sunday 23 December 2018 6:12
by Frano
Domoticz 4.10301
Raspberry Pi 3 Model B

Hello everyone,

I'm a beginner with Domoticz, and I test scripts and virtual switches (dummy...).
So I did a try to turn on and off a Hue bulb with a virtual switch ("Dummy (Does nothing, use for virtual switches only)") and bash scripts, just for the exercise.

Not without difficulty, I succeeded it's work well. Great.
When I click on the virtual switch, I turn the light On or Off by two bash scripts.

The problem is that I do not have a status feedback on the virtual switch if the bulb is turned on or off by another means (Hue app, Hue switch built into Domoticz, Google Home ...).
If, for example, the virtual switch is Off, if I turn On the light with the Hue app, the virtual switch remains Off. On the other hand the switch integrated in Domoticz by the Hue Bridge hardware, it has the status returns. But with virtual switch, the status is not updated.

I'm looking for it, I can't find a solution.
Is there a way to remedy that ?

Thanks in advance.

Edit : I just noticed that : if the virtual switch is On and I turn Off the light in another way (Hue app for example), the virtual switch becomes Off. So the status is updated, good.
But the reverse doesn't work : if the virtual switch is Off and I turn On the light in another way, the virtual switch status doesn't change (Off). So the status isn't updated.
Very strange. Is it a bug ?

Re: Virtual switch and update On/Off

Posted: Sunday 23 December 2018 7:40
by tozzke
Why would you use a dummy switch for that?
Philips Hue is supported by Domoticz and all your lights can automatically be imported into Domoticz