-
Notifications
You must be signed in to change notification settings - Fork 4k
Description
This is more of a note to self, but anyone is welcome to pick this up.
Some time ago, I investigated an "issue" with Philips Hue lights that was alway bothering me. Don't judge. 😄
When I turn on (a group of) Hue bulbs via a directly bound Zigbee remote, they always come on at 1% brightness when they were previously switched off by Z2M!
A quick WIreshark capture later, I now know what's going on.
It's all about the command used to turn off the lights!
At the moment, Z2M uses MoveToLevelWithOnOff to fade off the lights. This causes the bulb to remain at 1% brightness when turned on by anything other than Z2M itself.
However, the directly bound Hue Dimmer switch uses OffWithEffect with the parameters above to achieve the same effect without having to touch the brightness level at all!
Ideally, we would implement a global, device-specific option to use these OnOff commands instead of the simulated effect currently employed by Z2M. For backwards-compatibility, a new converter light_onoff_effect is likely need.
Any feedback encouraged. ✌️