Command to adjust brightness and color while light is off #4273
Replies: 6 comments 1 reply
|
🏷️ I've automatically added the |
|
Typically hardware does not support this, that's the main reason this has never been added. FYI |
|
I dug through the Zigbee specifications. Google dug up some comments comments saying the spec requires the light to ignore LevelControl and Move Color commands when off. But I couldn't find anything in the cluster specifications supporting that claim (I looked as far back as Revision 2. Revision 7 integrates the ZLO specification, and has a fairly extensive table describing how Move commands should be handled when a device is off. Revision 7 and 8 support flags similar to Matter. As far as I can tell, the ability to change color and brightness while the light is off is required by the most recent versions of the spec.
I happen to have a z-wave dimmer plug handy and was able to do some experimentation. The Z-Wave command specification doesn't provide a method to set the brightness level without turning the switch on. Some manufacturers offer a "Default Level" (or similar) configuration parameter that would achieve the desired result. For example, Inovelli has Parameter 13 and 14 on the VZW31-SN dimmer. I might be able to mine the parameters for various manufacturers from online device databases. As far as color is concerned... There don't appear to be very many Z-Wave bulbs on the market, so the question is more or less moot. |
|
It's possible to test whether or not your Matter bulb supports this capability without using the command line. The latest versions of the Matter integration can send MoveToLevel commands through the UI.
I noticed an odd bug while testing this...
The following payloads work nicely: Cool White: {
"colorTemperatureMireds": 182,
"transitionTime": 0,
"optionsMask": 1,
"optionsOverride": 1
}Warm White: {
"colorTemperatureMireds": 182,
"transitionTime": 0,
"optionsMask": 1,
"optionsOverride": 1
}I encountered no issues running these tests. |
|
I picked up an inexpensive Zigbee smart bulb (Third Reality, Inc 3RCB01057Z) and confirmed that Zigbee also supports setting the level and color while the bulb is off. It's straight forward to test this via the "Manage Zigbee Device" UI in HA.
|
|
Interesting note... The Matter light component already sets the OptionsOverride flags necessary to change the light color while the light is off. This was added to fix a bug. https://github.com/home-assistant/core/blob/dev/homeassistant/components/matter/light.py#L121-L132 So, I'm basically asking for that, but available without sending a light.turn_on command. And for Level as well as Color. And for other smart protocols. 😆 |




Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Integration name
light
Link to integration documentation on our website
No response
Describe the enhancement
It would be helpful if we could control the color temperature and brightness of a light while the light is off. Specifically, this should be possible without sending a
light.turn_oncommand.It would probably be best to implement this capability as a new command or attribute, instead of as a feature of the existing
light.turn_on,light.turn_off, orlight.togglecommands.Additionally, it would be helpful to have some mechanism to determine whether or not this capability is supported by the device.
Use cases
This feature would allow Adaptive Lighting to adjust color temperature and brightness while lights are off. The benefit is that the lights will come up to their desired state, even when Adaptive Lighting is unable to intercept a
light.turn_oncommand.The main reason I request this feature is because of Matter bindings. When I turn my lights on using a binding, there is no
light.turn_oncommand to intercept. The lights come up at their last setting, and then fade to the desired one. This is inelegant, and can be irritating when they come up at full brightness in the middle of the night.For this use case, it might be helpful if HA also maintained the color and level attributes of the light when off. This would support the
skip_redundent_commandsoption provided by adaptive lighting.Anything else?
I'm not clear on whether or not all smart lighting ecosystems support this capability.
From my research, the ability to set brightness and color while the light is off is an implied requirement as of Matter 1.0. The various
MoveToLevelandMoveToColorcommands have requiredOptionsMaskandOptionsOverridefields that specifically address this behavior.I haven't looked into Zigbee, Z-Wave, or other ecosystems. I would be happy to contribute research if it would be helpful.
https://github.com/orgs/home-assistant/discussions/3949 is a similar feature request. My request is more generalized. I also provide a specific problem statement and use case.
All reactions