-
-
Notifications
You must be signed in to change notification settings - Fork 189
Description
TLDR: It would be nice if AL reacts to the entities being turned on by another event, for example zigbee group, and not only by capturing the light.turn_on event.
Longer version below.
As per my understanding and documentation, the adaptive lighting catches the light.turn_on event and modifies its parameters to match the required color and brightness. This seems to work only* on the entity that is selected in the adaptive lighting integration. What do I mean here is the following.
In my bedroom I have 3 lights: 2x side and 1x ceiling. There is a zigbee group configuration for these light.bedroom_group that allows simultaneous control without overloading Zigbee network, plus it gives the smooth control on all lights at the same time.
I would like to create adaptive lighting configuration such that:
- Ceiling light has full brightness and color control
- Side lights have limited brightness control (from 50 on low, to 100% on high end) and color control
Thus I need to create 2 AL instances:
- Instance
1: Use thelight.side1andlight.side2 - Instance
2: Use thelight.ceiling
The problem arises when I try to use my motion or switch to toggle the whole bedroom, as a group. light.toggle command to the light.bedroom_group entity won't fire the adaptive lighting on the separate lights, when these get turned on. I have now some options, none of them which is really ideal:
- Update all my automations and call
light.turn_onon each light, separately, that means list all the entities. In my case3entities for each automation. Potentially to create HA group, but not zigbee group. - Create
2more zigbee groups, for examplelights_ceilingandlights_side, assign lights inside and configure AL instances to these2groups. Still update automations to control2light entities (2 Zigbee groups). - Use labels to define lights for automations. Pro is that it is manageable to add more lights in the scope in the future. Con is that we still send more messages over Zigbee
- Use area, with same thing as labels.
Whatever the selection, more messages will now fly on the network in a sequence. Lights in theory won't be nicely aligned anymore.
Zigbee2MQTT correctly reports the feedback to each light specifically, showing them transitioning from off to on, but that change is being ignored by AL system. Which in some sense makes sense as it would otherwise trigger twice on self (first time when catching the original call on its own entity, and second time when detecting entity moving from off to on).
* I have no proof, only from what I see.