Hue bulb brightness and colour temperature with group bindings and zigbee2mqtt #1502
deviantintegral
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I recently redid my basement with Philips Hue downlights (and a few bulbs) and Inovelli switches. It works great! Except, for Adaptive lighting, turning on at the switch with the group bindings led to them turning on with their last off values, and then Adaptive Lighting fixing them to the right values in a few seconds. It was a bit disorienting when turning the lights on first thing in the morning (or in the middle of the night).
Issue #1022 was helpful in this - it seems like this could be fixed in AL directly if desired. There's also Koenkk/zigbee2mqtt#18699 - note it looks like ZHA has this built in, but I can't test with that.
The trick is that Hue bulbs will accept colour and brightness commands while switched off, if you set the ZCL ExecuteIfOff option bit on the Color Control and Level Control clusters. Z2M documents this as color_options: {execute_if_off: true}, but that converter isn't exposed on my Hue devices. The first automation writes attribute
0x000Fdirectly on both clusters instead. It runs on HA start and whenever Z2M reconnects, which also covers a replacement bulb once it's added to the Zigbee group. The second automation then pushes Adaptive Lighting's current target into each group whenever it turns off, and every 10 minutes after, so the bulbs are already correct (or close enough!) the moment the switch closes.All reactions