Matter button entity triggers automation on integration reload + double press not exposed (Aqara H2 EU via Hub M3)

Hi,

I’m running Home Assistant OS 2026.4.3 and I have an Aqara H2 EU switch connected via Matter (through Aqara Hub M3 as a Matter bridge). I’ve encountered two issues with Matter button event entities that I’d like to discuss.

Issue 1: Automation triggers on Matter integration reload

Every time I reload the Matter integration (or restart HA), any automation triggered by a Matter button entity fires automatically – without physically pressing the button.

The reason seems to be that the Matter event entity retains its last attribute state (e.g. event_type: initial_press). When Matter reloads, HA sees this as a state change and fires the automation.

The standard state trigger approach does not work reliably:

triggers:
  - trigger: state
    entity_id: event.aqara_light_switch_h2_eu_button
    attribute: event_type
    to: initial_press

Workaround I found:
Using an event-based trigger combined with a template condition checking the event timestamp:

triggers:
  - trigger: event
    event_type: state_changed
    event_data:
      entity_id: event.aqara_light_switch_h2_eu_button
conditions:
  - condition: template
    value_template: >
      {{ trigger.event.data.new_state.attributes.event_type == 'initial_press'
         and (as_timestamp(now()) - as_timestamp(trigger.event.data.new_state.state)) < 3 }}

This works, but it feels like a hacky workaround. Is there a cleaner native solution?

Issue 2: Double press and long press not available via Matter

The event entity for my Matter button only exposes initial_press. Double press and long press are completely missing – the event_types attribute only contains initial_press.

From what I’ve found, this seems to be a Matter protocol limitation – the Hub M3 simply does not forward these events over Matter to HA. However, the same switch supports double press and long press natively in the Aqara app via Zigbee.

My setup:

  • Home Assistant OS 2026.4.3
  • Aqara Hub M3 (Matter bridge)
  • Aqara H2 EU switch
  • Matter integration (built-in)

Questions:

  1. Is there a cleaner way to prevent automations from firing on Matter reload without the timestamp workaround?
  2. Is the absence of double press / long press a known Matter limitation, or could it be fixed on the HA side?
  3. Would connecting the switch directly via Zigbee (ZHA or Z2M) to HA be the only reliable way to get double press support?

Thanks!

Try this:

triggers:
  - trigger: state
    entity_id: event.aqara_light_switch_h2_eu_button
    attribute: event_type
    to: initial_press
    not_from:
      - unknown
      - unavailable