Page 1 of 1
Status of Hue lights
Posted: Monday 18 February 2019 13:42
by edsger
I've been using dzVents for setting the lights of my Hue Iris. Upon changing the lights the status of the Hue light is 'inconsistent'.
When setting the color of the Hue light the status of the Hue Light changes to "SetColor", instead of "on" or "off". This also likely results in an erroneous active state, when the light is in the "SetColor" state, the active state becomes false.
It does not matter if the color of the light changes from dzVents or directly from the Domoticz Switches tab.
Status is reported both in dzVents and in the log.
Currently I've been working around this by checking (pseudo code)
active = Status == "On" or Status == "SetColor"
Re: Status of Hue lights
Posted: Monday 18 February 2019 21:20
by waaren
edsger wrote: Monday 18 February 2019 13:42
I've been using dzVents for setting the lights of my Hue Iris. Upon changing the lights the status of the Hue light is 'inconsistent'.
When setting the color of the Hue light the status of the Hue Light changes to "SetColor", instead of "on" or "off". This also likely results in an erroneous active state, when the light is in the "SetColor" state, the active state becomes false.
It does not matter if the color of the light changes from dzVents or directly from the Domoticz Switches tab.
Status is reported both in dzVents and in the log.
@edsger; Thanx for reporting.
Can you please test the following bugfix ?
in lua file domoticz-dir/dzVents/runtime/device-adapters/Adapters.lua , insert after line 172 (
['set kelvin level'] = { b = true, inv = 'Off' }, )
and report your findings ? With this fix the active state should report correctly on state "Set Color"
Thx !
Re: Status of Hue lights
Posted: Tuesday 19 February 2019 22:12
by edsger
I'll try this patch on Thursday!
Re: Status of Hue lights
Posted: Tuesday 19 February 2019 22:17
by waaren
Is now also part of V4. 10445
Verstuurd vanaf mijn ONEPLUS A6003 met Tapatalk
Re: Status of Hue lights
Posted: Friday 22 February 2019 14:22
by edsger
active property is now correct. Thanks
Not sure about the status property.
The status of the device is still reported as "Set Color", I'm not sure if this is intended as it seems to me not an actual "status" of a device.
Re: Status of Hue lights
Posted: Friday 22 February 2019 15:08
by waaren
edsger wrote: Friday 22 February 2019 14:22
active property is now correct. Thanks
Not sure about the status property.
The status of the device is still reported as "Set Color", I'm not sure if this is intended as it seems to me not an actual "status" of a device.
Is indeed arguable but a choice of the domoticz developers to reflect the last activity made on the device and passed to the Event system. Not something dzVents can change.
Re: Status of Hue lights [SOLVED]
Posted: Saturday 23 February 2019 0:14
by edsger
Ok.
I wanted to accept your post as an answer, but this results in a 404 (also after refresh).