Button Event Identification Helper for Matter

Helps identify events sent by buttons from the Matter integration.

Assign buttons when you use the blueprint and when you press / tap / hold a button it will generate a notification in Home Assistant that indicates the type of event that was triggered (i.e. initial_press, short_release, etc.), along with a list of all event types supported by the button.

Useful for developing other blueprints and automations.

Requires the Matter integration.

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

blueprint:
  name: Matter - Button Event Identification Helper V1.0
  description: |
    Helps identify events sent by buttons from the Matter integration.
    
    Assign buttons when you use the blueprint and when you press / tap / hold
    a button it will generate a notification in Home Assistant that indicates
    the type of event that was triggered (i.e. initial_press, short_release, etc.),
    along with a list of all event types supported by the button.
    
    Useful for developing other blueprints and automations.
    
    Requires the [Matter integration](https://www.home-assistant.io/integrations/matter).
  author: Edward Wright
  domain: automation
  input:
    button:
      name: 'Matter Button Event(s)'
      description: Matter button(s) that you want to monitor.
      selector:
        entity:
          multiple: true
          filter:
            - integration: matter
              domain: event
              device_class: button
mode: single
max_exceeded: silent
triggers:
- trigger: state
  entity_id:
    !input button
actions:
  - action: notify.persistent_notification
    metadata: {}
    data:
      title: "{{ trigger.to_state['attributes']['friendly_name'] }} > {{ trigger.to_state['attributes']['event_type'] }}"
      message: "Supported Events: {{ trigger.to_state['attributes']['event_types'] }}"