Status of Hue lights  [SOLVED]

Moderator: leecollings

Post Reply
edsger
Posts: 8
Joined: Friday 01 February 2019 15:20
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Status of Hue lights

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

Re: Status of Hue lights

Post 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' }, )

Code: Select all

		['set color'] = { b = true },
and report your findings ? With this fix the active state should report correctly on state "Set Color"
Thx !
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
edsger
Posts: 8
Joined: Friday 01 February 2019 15:20
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Status of Hue lights

Post by edsger »

I'll try this patch on Thursday!
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Status of Hue lights

Post by waaren »

Is now also part of V4. 10445

Verstuurd vanaf mijn ONEPLUS A6003 met Tapatalk

Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
edsger
Posts: 8
Joined: Friday 01 February 2019 15:20
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Status of Hue lights

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

Re: Status of Hue lights

Post 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.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
edsger
Posts: 8
Joined: Friday 01 February 2019 15:20
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Status of Hue lights  [SOLVED]

Post by edsger »

Ok.

I wanted to accept your post as an answer, but this results in a 404 (also after refresh).
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest