Configuring Zigbee2MQTT for use with Adaptive Lighting #506
Replies: 6 comments 6 replies
-
Nice! I implemented this yesterday, did not have all these settings in place yet. The I had some weird behavior with unpredictable state changes etc., same as described in #829. Then I found this topic. |
Beta Was this translation helpful? Give feedback.
-
Is this still working? |
Beta Was this translation helpful? Give feedback.
-
I'm stuck in ZTM version 1.33.1 because, when automating my lights using Node-RED, this issue occurs: Upon detecting absense, the lights are supposed to enter sleep mode for 30 seconds and then turn off. However, when presence is detected again, the lights turn on in sleep mode and then switch back to adaptive mode. In later versions, the lights turn on in sleep mode but fail to transition to adaptive mode (sometimes they succeed after a couple of seconds, sometimes they just stay in sleep mode). And that issue only occurr on versions greater than 1.33.1 THis is how my config look like:
|
Beta Was this translation helpful? Give feedback.
-
This options don't work any more. |
Beta Was this translation helpful? Give feedback.
-
I just solved my problem, It wasn't Adaptive Lightning. You can check this issue |
Beta Was this translation helpful? Give feedback.
-
Hi there, Make sure the AL interval is big enough to make steps that your lights can handle.I had my Make sure to stop any ongoing transition if you have Ikea bulbs.Be sure to read the documentation on how to setup AL for Ikea bulbs (..yeah yeah I know). Have proper color transitions for your lights.After starting out with WiZ connected lights, I was used to lights transitioning from off to on with the color temperature already set properly. zigbee2mqtt's
|
Beta Was this translation helpful? Give feedback.
-
Last updated: October 2024
This guide serves to configure Zigbee2MQTT's
configuration.yaml
for use with Adaptive Lighting.This guide is meant for a supervised HA install with the use of the Zigbee2MQTT addon. I cannot promise it will be relevant to users not using the HA addon.
See the bottom of this post for a quick copy paste of all required/recommended options.
Please note the
device_options
in the configurations below if defined inconfiguration.yaml
will set these values for all devices, which you may not want. Everything indevice_options
are correct config options you can set indevices.yaml
to be used for specific devices.Required options for Home Assistant Addon specifically:
Note: some of these options are already default.
Required options for Adaptive Lighting specifically
You also must configure your light's power_on_state to match the last known state.
Required Adaptive Lighting options: Why?
cache_state_persistent: true
andcache_state_send_on_startup: false
From Zigbee2MQTT docs:
We want Zigbee2MQTT to store all of the last known states for restarts etc, but we do not want these sent to Home Assistant on startup. In future updates, Adaptive Lighting will assume whenever brightness/color info is provided in the service data, the light should be set to manual control.
report: true
(default)From Zigbee2MQTT docs:
Adaptive Lighting needs to be able to listen to state change events in Home Assistant in order to properly detect manually controlled events.
filtered_cache
From Zigbee2MQTT docs:
This will ignore the unchanged attributes whenever a state update is pushed to HASS. Needed in future updates when Adaptive Lighting will assume brightness/color info in light.turn_on are manually controlled events.
Additional Options you may need:
retrieve_state: true
From Zigbee2MQTT docs:
optimistic: true
From Zigbee2MQTT docs:
For me, this option is broken on my lights which I've reported here. When it's disabled, state changes are never reported to Home Assistant. This needs to be true if you're having that issue.
Both Required and Recommended Options (copy/paste version)
Resources:
Configuration | Zigbee2MQTT
Devices and Groups | Zigbee2MQTT
FAQ | Zigbee2MQTT
Further Configuration
Please see this top tier reply further down in this thread.
Beta Was this translation helpful? Give feedback.
All reactions