hue lights do not reflect percentage when switched on

Xiaomi, Ikea TRÅDFRI, Philips Hue and more.

Moderator: leecollings

Post Reply
Gravityz
Posts: 587
Joined: Wednesday 16 December 2015 19:13
Target OS: NAS (Synology & others)
Domoticz version: 2022.2
Location: Netherlands
Contact:

hue lights do not reflect percentage when switched on

Post 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 784 times
Thorgal789
Posts: 852
Joined: Wednesday 15 August 2018 14:38
Target OS: -
Domoticz version:
Contact:

Re: hue lights do not reflect percentage when switched on

Post by Thorgal789 »

Hello, wich one hardware are you using ?
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: hue lights do not reflect percentage when switched on

Post 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 770 times
machinon
machinon
Theme.png (19.76 KiB) Viewed 771 times
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Gravityz
Posts: 587
Joined: Wednesday 16 December 2015 19:13
Target OS: NAS (Synology & others)
Domoticz version: 2022.2
Location: Netherlands
Contact:

Re: hue lights do not reflect percentage when switched on

Post 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
pipiche
Posts: 2016
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: hue lights do not reflect percentage when switched on

Post by pipiche »

Could you clarify which Plugin do you use, as I believe it works correct for ZIgate plugin
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
Gravityz
Posts: 587
Joined: Wednesday 16 December 2015 19:13
Target OS: NAS (Synology & others)
Domoticz version: 2022.2
Location: Netherlands
Contact:

Re: hue lights do not reflect percentage when switched on

Post 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.
Dols
Posts: 27
Joined: Friday 15 January 2016 14:22
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: hue lights do not reflect percentage when switched on

Post 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?
Gravityz
Posts: 587
Joined: Wednesday 16 December 2015 19:13
Target OS: NAS (Synology & others)
Domoticz version: 2022.2
Location: Netherlands
Contact:

Re: hue lights do not reflect percentage when switched on

Post 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 718 times
when switched on from domoticz using a script
dressoir-percentage.JPG
dressoir-percentage.JPG (22.36 KiB) Viewed 718 times
when switched on from the hue app
dressoir-percentage.JPG
dressoir-percentage.JPG (22.36 KiB) Viewed 718 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
Gravityz
Posts: 587
Joined: Wednesday 16 December 2015 19:13
Target OS: NAS (Synology & others)
Domoticz version: 2022.2
Location: Netherlands
Contact:

Re: hue lights do not reflect percentage when switched on

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

Re: hue lights do not reflect percentage when switched on

Post 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.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Gravityz
Posts: 587
Joined: Wednesday 16 December 2015 19:13
Target OS: NAS (Synology & others)
Domoticz version: 2022.2
Location: Netherlands
Contact:

Re: hue lights do not reflect percentage when switched on

Post by Gravityz »

ok, clear but i do not think this is a theme thing. will have to find out where this is happening.
Gravityz
Posts: 587
Joined: Wednesday 16 December 2015 19:13
Target OS: NAS (Synology & others)
Domoticz version: 2022.2
Location: Netherlands
Contact:

Re: hue lights do not reflect percentage when switched on

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

Who is online

Users browsing this forum: No registered users and 1 guest