Configuring Zigbee2MQTT for use with Adaptive Lighting #506
Replies: 13 comments 24 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.
-
I feel like this post need an update for the latest Version of Zigbee2mqtt 2 What is the current set of correct z2m settings to enable a smooth AdaptiveLighting experience? @RubenKelevra @basnijholt - maybe you could add the necessary setting to the readme page of AdaptiveLighting, so it is visible from within the integration? |
Beta Was this translation helpful? Give feedback.
-
I agree with @wise-rice. I just updated my Z2M to the latest version and a lot of settings have changed. It would be nice to have an updated guide on how to make Adaptive Lighting work properly with Z2M. I've temporarily uninstalled the integration due to how many issues I'm running into. Maybe someone else can share a working configuration for AL/Z2M? |
Beta Was this translation helpful? Give feedback.
-
I personally use Zigbee2MQTT with just default settings. Which legacy settings are in the README that @wise-rice is referring to? |
Beta Was this translation helpful? Give feedback.
-
I am also running on Z2M with default config and AL is working really good on it. |
Beta Was this translation helpful? Give feedback.
-
I have spent more hours on trying to get adaptive lighting to work than any other integration in Home Assistant by far. It's pretty frustrating how changing a single thing will break the entire configuration. I don't think I have ever gotten AL to work properly in my house and I cannot figure out why. Some of the things I keep running into are:
And like many other people, I use smart IKEA bulbs. I have looked into getting Philips HUE bulbs but I'm reading reports of how many others are having the same issues as me with with HUE bulbs so that's not an option either. Hence why I asked if people are willing to share how they've set up their configuration to work with AL because at this point I cannot wrap my head around it anymore. The default Z2M configuration does not work by any means. I like the integration a lot but it's just too broken in too many ways (at least for me). |
Beta Was this translation helpful? Give feedback.
-
Hi @wise-rice,
Yes, yes it seems to do just that. You can check the zigbee2mqtt logging (set to |
Beta Was this translation helpful? Give feedback.
-
About that code you are working on, I got two problems.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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