Skip to content

Support OffWithEffect for Philips Hue & Co. #11197

@burmistrzak

Description

@burmistrzak

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!

Image

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.

Image

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. ✌️

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions