If I do a service call with a long transition time as such (but I can reproduce sporadically with much lower transition time, even as low as 7-8 seconds)
service: light.turn_off
data:
transition: 10 # I've tried also 50, 100, etc same issue
target:
entity_id: light.some_lights
initially the lights state are reported as OFF in HA (thought they are still slowly dimming and not fully OFF but that makes sense to me since their state should be off, the transition is just a detail).
However, at some point during the transition (not always the same point in time btw in different tests I did) the lights state in HA snaps back to ON!
Once the lights have been physically OFF for some time (a few seconds to a few tens of seconds, sometimes to over a minute) the lights finally go back to OFF in HA as well.
I checked the Philips Hue app and it is showing the same issue so this must be behavior on the Hub.
However, does anyone know if the Philips Hue Integration just doesn’t implement the transition
flag correctly? I assume the Hue hub has an API for clients to supply a transition (is that right?) but perhaps HA is instead sending commands continually to lower brightness to the hub causing confusion? Or is this just a bug in Philips Hue itself and I should avoid using the transition service call attribute at all?
The reason this matters is that now that I’m adding presence-based light detection (the bane of most HA users it seems), I’m hitting a lot of corner cases and I’ve traced all of them back to the fact that the Hue lights sometimes snap back to on after a service call to turn them off with transition as low as even 7-8 seconds.
I could “solve” this by never adding any transitions (or conversely not checking if lights are on before turning them back on when presence is detected but that might have other issues).
The reason I like the transitions especially for auto turn-off is that if for some reason the occupancy sensor is wrong, the person in the room has time to react before they are plunged in total darkness :). It doesn’t happen often since I’m using Aqara FP2 which are great but it CAN happen, especially in the bathroom where there is too much glass, mirrors and metal and can create all sorts of interference issues.
At any rate TMI. I’m curious if anyone has experienced this weird issue.
Otherwise I’ve been using the Hue Hub for many years and it is absolutely rock solid. I don’t want to transition away from it to a native Zigbee installation since it has some really great features around scenes that are simply not matched by HA’s capabilities.