Closed mcmd1962 closed 3 months ago
Hey there @balloob, @marcelveldt, mind taking a look at this issue as it has been labeled with an integration (hue
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
hue documentation hue source (message by IssueLinks)
This is by design for Hue lights. Nanoleaf implemented in between state reports with the values while transitioning but Hue does not, sorry.
If this is not what you expect it to be, maybe file a feature request with Hue ?
Closing as issue here as this works as expected by design, we just follow whatever the Hue api tells us.
The problem
The brightness level reported for a hue light when using a transition period is reporting the end value for the transition and not the current brightness level. A nano leaf type light is behaving as expected. The command used to test this:
light.turn_on called with service_data={'entity_id': ['light.hue_light', 'light.nanoleaf'], 'brightness': 200, 'transition': 15}
In this period asking every 2 seconds for the brightness level shows:
13:54:21.376 [service_test_brightness] entity_id=light.hue_light brightness=200 lu=2024-01-17 12:54:20.059762+00:00 lc=2024-01-17 12:39:32.604282+00:00 13:54:21.377 [service_test_brightness] entity_id=light.nanoleaf brightness= 30 lu=2024-01-17 12:54:20.556465+00:00 lc=2024-01-17 12:39:39.619442+00:00 13:54:23.379 [service_test_brightness] entity_id=light.hue_light brightness=200 lu=2024-01-17 12:54:20.059762+00:00 lc=2024-01-17 12:39:32.604282+00:00 13:54:23.380 [service_test_brightness] entity_id=light.nanoleaf brightness= 58 lu=2024-01-17 12:54:22.977432+00:00 lc=2024-01-17 12:39:39.619442+00:00 13:54:25.382 [service_test_brightness] entity_id=light.hue_light brightness=200 lu=2024-01-17 12:54:20.059762+00:00 lc=2024-01-17 12:39:32.604282+00:00 13:54:25.383 [service_test_brightness] entity_id=light.nanoleaf brightness= 71 lu=2024-01-17 12:54:24.187046+00:00 lc=2024-01-17 12:39:39.619442+00:00 13:54:27.386 [service_test_brightness] entity_id=light.hue_light brightness=200 lu=2024-01-17 12:54:20.059762+00:00 lc=2024-01-17 12:39:32.604282+00:00 13:54:27.387 [service_test_brightness] entity_id=light.nanoleaf brightness= 96 lu=2024-01-17 12:54:26.608352+00:00 lc=2024-01-17 12:39:39.619442+00:00
lu=last_updated lc=last_changedAs you can see here the hue_light always reports 200 for brightness while the nanoleaf reports the current value.
The python logic used to test this:
entity_ids = [hue_light, nanoleaf] light.turn_on(entity_id=entity_ids, brightness=20, transition=0.6) task.sleep(1.5) light.turn_on(entity_id=entity_ids, brightness=200, transition=15) for entity_id in entity_ids: st0 = state.get(entity_id) lu = st0.last_updated lc = st0.last_changed st = state.getattr(entity_id).get('brightness') log.info('brightness=%s lu=%s lc=%s', st, lu, lc)
HomeAssistant: 2024.1.2 PyScript: 1.5.0
What version of Home Assistant Core has the issue?
core-2024.1.2
What was the last working version of Home Assistant Core?
NA
What type of installation are you running?
Home Assistant Container
Integration causing the issue
Philips Hue
Link to integration documentation on our website
https://www.home-assistant.io/integrations/hue/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response