Listen for ZHA event?

Hi,

I’ve installed an ECO-DIM.07 Led dimmer and it works fine. I can dim the attached LED spots both via the dial on the device itself, as well as via a Home Assistant dashboard.

However, I want some other lights to “follow” the brightness of the LED spots. Those are normal Zigbee bulbs. I made an automation, that does exactly this:

alias: Sync lights woonkamer
description: Synchroniseert verlichting woonkamer
trigger:
  - platform: state
    entity_id: light.ecodim_bv_ecodim_zigbee_3_0_licht
action:
  - choose:
      - conditions:
          - condition: state
            entity_id: light.ecodim_bv_ecodim_zigbee_3_0_licht
            state: "off"
        sequence:
          - service: light.turn_off
            target:
              entity_id: light.licht_woonkamer
            data: {}
      - conditions:
          - condition: state
            entity_id: light.ecodim_bv_ecodim_zigbee_3_0_licht
            state: "on"
        sequence:
          - service: light.turn_on
            target:
              entity_id: light.licht_woonkamer
            data:
              brightness: "{{ trigger.to_state.attributes.brightness }}"
    default: []
mode: single

This works. However, I’d like to have it a bit more subtle: when I adjust the brightness with the dial on the EcoDim device, I want the other lights to follow. But when I adjust the brightness via the HA dashboard, I don’t want the other lights to follow.

The current automation is triggered by the state change of the light. So that’s why the other lights also follow when I adjust the brightness via HA. So I thought I should trigger the automation by some “low level” Zigbee event that precedes the state change. I tried listening to zha_events via the developer tools, but that didn’t yield any event, regardless how often I changed the brightness or even turn the lights on or off. I must be doing something wrong, there must be an event that triggers the state change. If I could somehow intercept that event, I could use that as the trigger for my automation.

Does anyone know how to surface such an event? Any help would be appreciated!