Page 1 of 1

hue lights do not reflect percentage when switched on

Posted: Tuesday 05 November 2019 19:28
by Gravityz
i noticed lately that the hue lights do not reflect the percentage when switched on manually

e.g. when switched by using a script the Set Color is used and the light is set to percentage(eg 80%)
but when you switch the light off and then on again the status is set to ON and not 80%

It should reflect the current setting, not the last command send to the light.
this bug is probably in there for a while but i just noticed it when i was playing with openhab connectivity.

the zwave lights do not have this problem because they use set level instead of Set Color.
hue.JPG
hue.JPG (91.01 KiB) Viewed 791 times

Re: hue lights do not reflect percentage when switched on

Posted: Tuesday 05 November 2019 20:32
by Thorgal789
Hello, wich one hardware are you using ?

Re: hue lights do not reflect percentage when switched on

Posted: Tuesday 05 November 2019 21:39
by waaren
Gravityz wrote: Tuesday 05 November 2019 19:28 It should reflect the current setting, not the last command send to the light.
this bug is probably in there for a while but i just noticed it when i was playing with openhab connectivity.
In my opinion this is not a bug but a GUI design decision. If you use the machinon theme you will not see a percentage at all. So if you think it should be presented in another way then you have the option to switch themes or design your own.
default
default
Theme default.png (36.76 KiB) Viewed 777 times
machinon
machinon
Theme.png (19.76 KiB) Viewed 778 times

Re: hue lights do not reflect percentage when switched on

Posted: Tuesday 05 November 2019 21:48
by Gravityz
no it is like i said

with zwave dimmer it works as expected
turn dimmer on with a script to 70% result:70%
turn it off in the gui result:Off
turn it back on in the gui result:70%

if the light is on and the level is set to 70% it always displays rthe level, not on

with hue rgb light
turn dimmer on with a script to 70% result:70%
turn it off in the gui result:Off
turn it back on in the gui result:On


if it is a design thing it is not designed concequently thus this is a bug

Re: hue lights do not reflect percentage when switched on

Posted: Tuesday 05 November 2019 22:59
by pipiche
Could you clarify which Plugin do you use, as I believe it works correct for ZIgate plugin

Re: hue lights do not reflect percentage when switched on

Posted: Wednesday 06 November 2019 8:24
by Gravityz
i am not using any plugins, just the standard functionality.

i have a fibaro dimmer which also does not have a problem.

i will report this on github because this worked in the past.

Re: hue lights do not reflect percentage when switched on

Posted: Wednesday 06 November 2019 22:38
by Dols
Hello,

What version of Domoticz are you using?

I have a simular setup. Can not reproduce this with latest beta. I don't know if you are using "groups" to control the ligths. Funny thing of these is that individual lamps react differently when change the brightness of the group. This is depends on the original brightness of the individual lamp.

Can you check when the lights don't show the correct brightness what the HUE phone app says about the brightness?

Re: hue lights do not reflect percentage when switched on

Posted: Thursday 07 November 2019 8:34
by Gravityz
i am usingV4.11436
i do use groups to control the lights but in this case the problem comes from controlling it manually.
from the group(a domoticz group) it works flawless

The lights are created from the hue hub

the problem is not that the lights do not show the correct brightness
the sliders in both the hue app and domoticz are in the corect position.

The only thing going wrong is that when the light is switched on by using the on button it does show ON and not the percentage.

Apparently the problem is so simple that nobody sees it.

when switched on from domoticz using the lightswitch
dressoir.JPG
dressoir.JPG (22.15 KiB) Viewed 725 times
when switched on from domoticz using a script
dressoir-percentage.JPG
dressoir-percentage.JPG (22.36 KiB) Viewed 725 times
when switched on from the hue app
dressoir-percentage.JPG
dressoir-percentage.JPG (22.36 KiB) Viewed 725 times

when a switch is pressed from domoticz a zwave dimmer get the Set Level command:result percentage shown
when a switch is pressed from domoticz a hue color light gets the ON command:result status ON, NOT GOOD
when a switch is pressed from homekit/hue app a hue color light gets the Set Color command:result status percentage

so either we make sure the correct ON command is used for the buttons in domoticz with hue lights (Set Color)
or we make sure the status is always derived from the actual brightness setting of the hue light.

please inspect the code difference between a zwave dimmer and a hue color light.

these things need to work equally

i would opt for option2 make sure the status is always derived from the actual brightness setting of the hue light
this way it always works regardless of what current/furure commands are used

Re: hue lights do not reflect percentage when switched on

Posted: Wednesday 13 November 2019 18:49
by Gravityz
@waaren.
maybee you can look into this.

i noticed something strange.

when i stop domoticz and then start domoticz again the light status of the lights is in percentages(if they are on)

now if i go to a hue light and switch it off and then back on it shows the percentage like i think it should.
problem is it only does it 1 time.
second off/on results in the ON status of the light.


i checked and it only works 1 time and only with 1 light (so not 1 time per light)

weird

Re: hue lights do not reflect percentage when switched on

Posted: Wednesday 13 November 2019 19:18
by waaren
Gravityz wrote: Wednesday 13 November 2019 18:49 @waaren.
maybe you can look into this.
Sorry but I am not interested. I don't consider it to be a problem for many users and certainly not for me. If you want a GUI that behaves the way you think it should and the current themes are not as you want them then please look for someone with theme skills willing to help you out.

Re: hue lights do not reflect percentage when switched on

Posted: Wednesday 13 November 2019 19:37
by Gravityz
ok, clear but i do not think this is a theme thing. will have to find out where this is happening.

Re: hue lights do not reflect percentage when switched on

Posted: Wednesday 13 November 2019 22:03
by Gravityz
i bypassed the bug by updating the hue status using a dzVents script

every ON command fired at the HUE light will result in an updated light status with the correct percentage displayed.(like it should have been coded from the start)

problem solved