Blueprint For Sonoff SNZB-01 for Matter

Hello,

I stopped using ZHA , now I am using snoff bridge-u and synced my devices to HA over mater platform. However I can't get my buttons to work as singe, double and long press. Is the any blueprint for mater platform ? ZHA and Mqtt blueprints don't work. Thanks in advance

Check the device created by Matter to see if it includes an event entity for the button press. If it does you can automate off that similar to what is described in:

Well, I really don't know how to code but I can import blueprint and create my automation with basic information. I can't check or edit what you described here.

Please clarify... do you mean you don't know how to find entities from a certain device and integration or is it somehow not possible for you to do?

You are now using what seems to be an uncommon combination of devices and integrations, so there may not be any blueprints available for your situation.

You don't need to know how to "code", you can literally copy/paste YAML automations directly into the Automation editor and it will be converted.

I have uploaded my screenshots , If you can give me step by step instructions I can probably follow them to complete the task. Other than that I can only do basic stuff.

Device Triggers have some pretty big limitations and drawbacks so they're not going to cut it here.

The first thing you need to do is find the entity ID for the event entity... that is the piece of information you need to use the triggers I linked to previously.

  1. Go to the Device page shown in your first screenshot. Press the actual button on the SNZB-01 and note which of the entities in the "Events" section updates.
  2. Click on the name of the event that changed to open the entity's "More Info" popup.
  3. Click the gear icon at the top right of the popup to open the entity's Settings menu.
  4. Find the field labeled "Entity ID*". Tell us what that value is.

Alternatively, you could wait until Wednesday's core update and just use the new Event Received trigger.

Thank you for your feedback. I found an easier way to do it. I asked chat gpt to build this blueprint for me. It took me a lot of screenshots to upload but it was worth it. Gpt build the blueprint for me and it works like a charm. I am sharing the blueprint down below maybe someone can upload it to GitHub for community.

blueprint:
  name: Sonoff SNZB-01 Matter Button
  description: >
    Generic blueprint for Sonoff SNZB-01 connected through the
    Sonoff Zigbee Bridge Ultra using Matter.

    Supported events:
      • Single Press (multi_press_1)
      • Double Press (multi_press_2)
      • Long Press (long_press)

  domain: automation

  input:

    button:
      name: SNZB-01 Event Entity
      description: Select the event entity of your SNZB-01
      selector:
        entity:
          domain: event

    single_press:
      name: Single Press Action
      description: Action executed on single press
      default: []
      selector:
        action: {}

    double_press:
      name: Double Press Action
      description: Action executed on double press
      default: []
      selector:
        action: {}

    long_press:
      name: Long Press Action
      description: Action executed on long press
      default: []
      selector:
        action: {}

mode: queued
max: 10

trigger:
  - platform: state
    entity_id: !input button

variables:
  event_type: "{{ trigger.to_state.attributes.event_type | default('') }}"

action:
  - choose:

      - conditions:
          - condition: template
            value_template: "{{ event_type == 'multi_press_1' }}"
        sequence: !input single_press

      - conditions:
          - condition: template
            value_template: "{{ event_type == 'multi_press_2' }}"
        sequence: !input double_press

      - conditions:
          - condition: template
            value_template: "{{ event_type == 'long_press' }}"
        sequence: !input long_press