First, as always thank you for this project, I've been using it a lot and really appreciate all of the recent features you've been adding.
I noticed that the ability to update the state of lights while off was recently added for setups using the Hue Bridge. I was hoping it would be possible to add it for lights controlled by Z2M. I recently stumbled on this discussion: https://community.home-assistant.io/t/z2m-philips-hue-and-updating-brightness-without-turning-on/933058/3
It outlines the steps needed to enable this functionality. I tested it out on a few bulbs and did find that it seems to be working well on the ones that support the feature. I was able to update the state in Z2M using a MQTT message with the bulb off, and then send a blank light.turn_on action with no data and the light would fade up to the preset brightness and color temp.
That said I did need to enable the functionality manually using another MQTT message as the option appears not to be exposed in the GUI by Z2M. Following this post on the HA forums I sent a MQTT message containing the following:
{"level_config": {"execute_if_off": true}, "color_options": {"execute_if_off": true}}
to the topic zigbee2mqtt/Friendly Name/set replacing friendly name with each supported devices friendly name as assigned in Z2M.
Then continuing to follow the instructions in that thread I sent the following message in the same thread as before:
{
"state": null,
"brightness": <bri>, // 1–254
"color_temp": <mired> // 153–500 mireds
}
Any chance of implementing this as an option in hue scheduler for those of us using Home Assistant?
First, as always thank you for this project, I've been using it a lot and really appreciate all of the recent features you've been adding.
I noticed that the ability to update the state of lights while off was recently added for setups using the Hue Bridge. I was hoping it would be possible to add it for lights controlled by Z2M. I recently stumbled on this discussion: https://community.home-assistant.io/t/z2m-philips-hue-and-updating-brightness-without-turning-on/933058/3
It outlines the steps needed to enable this functionality. I tested it out on a few bulbs and did find that it seems to be working well on the ones that support the feature. I was able to update the state in Z2M using a MQTT message with the bulb off, and then send a blank light.turn_on action with no data and the light would fade up to the preset brightness and color temp.
That said I did need to enable the functionality manually using another MQTT message as the option appears not to be exposed in the GUI by Z2M. Following this post on the HA forums I sent a MQTT message containing the following:
{"level_config": {"execute_if_off": true}, "color_options": {"execute_if_off": true}}to the topic zigbee2mqtt/Friendly Name/set replacing friendly name with each supported devices friendly name as assigned in Z2M.
Then continuing to follow the instructions in that thread I sent the following message in the same thread as before:
Any chance of implementing this as an option in hue scheduler for those of us using Home Assistant?