Page 1 of 1

Light/Switch timers with Philips Hue

Posted: Wednesday 12 July 2017 12:04
by febalci
Trying to use Timers in Hue bulbs. I have a group on hue bridge called "Salon Lights" and i added to Devices. Whenever i switch it on, it uses the last set scene from the bridge; that is generally "Bright" in my settings. However when i add a Timer to switch it on on Sunset, the group lights on with a different color which is basically set on Timer. The timer is not behaving like manual switch on. And there's no setting like "Use default color" or "Use last color" or "Do not set color" in Timers.

When i add "Scene Bright" to the Devices from the Philips Bridge, and when i set Timer on this Scene Button, it switches on as "Bright". However this time "Switch Off" in the scene does not switch the lights off.

As i understand there're 2 options to solve this.
1. Set the "Bright Scene" color on "Salon Lights" Group Timer. However, the color codes on Philips is like: Hue:8402, Saturation: 140, Brightness:254, and there's also xy codes. I do not know how to convert these to RGB and Hue-Brightness codes in Domoticz.
2. Use bash scripts on On Action and Off Action.

What i want to ask is, is there an easier way or i should go with option 2, is it the only way?

Re: Light/Switch timers with Philips Hue

Posted: Thursday 13 July 2017 1:58
by sion
I had lots of problems using hue scenes from domoticz devices - especially fading scenes.

I just use bash scripts to trigger them now and it works fine.

Re: Light/Switch timers with Philips Hue

Posted: Monday 31 July 2017 1:58
by kwomba
Even if I put a script (I use a php script) in the On and Off action it still applies the color and brightness. I find this very annoying.
I do want to have a scene/group to group several lights to be controlled by the timer.

What I have now is a Dummy switch (On/Off) that executes the php script (via it's On and Off action), and that seems to work.
This script will enumerate all devices in a specific Scene/Group and for each of the devices it will turn on/off the group.

I think this should be fixed, the timer should be able to react in the same way as when manually turning On/Off a Hue group.

Re: Light/Switch timers with Philips Hue

Posted: Monday 31 July 2017 11:19
by febalci
Well in the end I put a switch for the group. And in the "switch on" action of the group, i added a bash script which invokes/selects the bright scene. Now it works perfectly fine.