I'm using Aqara's matter bridge to add Aqara accessories to HA. I have a number of Aqara buttons that trigger automations based on their state change. When I upgrade the matter server I see that all of my button automations were triggered after the upgrade. My theory is that something is resetting state of these buttons to whatever happened last (typically a button click).
Here's an example of onr of my button automations:
alias: button_trigger_garage_door
description: ""
trigger:
- platform: state
entity_id:
- event.aqara_button_garage_door_button
alias: button_trigger_garage_door
condition:
- condition: state
entity_id: event.aqara_button_garage_door_button
attribute: event_type
state: multi_press_1
action:
- type: toggle
device_id: 0fb9f0859d36337383d636a6ffa6c87a
entity_id: 7b459f2664453c0da474ca9b6a11f82e
domain: switch
mode: single