Virtual switch and update On/Off

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
Frano
Posts: 4
Joined: Sunday 23 December 2018 5:44
Target OS: Raspberry Pi / ODroid
Domoticz version: Bêta
Contact:

Virtual switch and update On/Off

Post 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 ?
tozzke
Posts: 135
Joined: Friday 02 January 2015 9:22
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: Netherlands
Contact:

Re: Virtual switch and update On/Off

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest