Skip to content

[Feature] React to lights being turned on with targets (label, area) or zigbee groups #1315

@MaJerle

Description

@MaJerle

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 the light.side1 and light.side2
  • Instance 2: Use the light.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_on on each light, separately, that means list all the entities. In my case 3 entities for each automation. Potentially to create HA group, but not zigbee group.
  • Create 2 more zigbee groups, for example lights_ceiling and lights_side, assign lights inside and configure AL instances to these 2 groups. Still update automations to control 2 light 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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions