Skip to content

Home Assistant automations do not list Zigbee2MQTT device actions until each action has been triggered once #29667

Description

@Oniums

What happened?

Summary

When pairing my Sonoff SNZB-01M button with Zigbee2MQTT in Home Assistant, the device exposes multiple actions (single, double, triple, long press on each of the four buttons). Zigbee2MQTT shows all of these actions correctly as soon as the integration starts. However, the Home Assistant automation editor does not list any of these actions as trigger options until each one has been fired at least once. This makes it impossible to configure automations ahead of time.

Steps to reproduce

Install the Zigbee2MQTT add-on and integrate it with Home Assistant.
Pair a Sonoff SNZB-01M button (or any device using custom action events) with Zigbee2MQTT.
Restart Zigbee2MQTT and confirm that its UI shows the action list (single_button_1, double_button_1, triple_button_1, long_button_1, etc.).
In Home Assistant, open Settings → Automations & Scenes → Create Automation → Trigger → Device.
Select the Zigbee2MQTT device.
Observe that none of the button actions appear in the trigger dropdown.
Press an action on the physical button (e.g., press button 1 once).
Return to the automation editor and check the trigger list again.
Current behavior

Only the actions that have already occurred since pairing show up in the automation trigger options. All others remain hidden until the device has emitted each action at least once.

Expected behavior

Every action exposed by Zigbee2MQTT should appear in Home Assistant’s automation trigger list immediately after the device is paired, so automations can be configured in advance without manually triggering each action.

Zigbee2MQTT evidence

The Zigbee2MQTT frontend immediately lists all supported actions, so the MQTT side is publishing the correct metadata.

Environment

Home Assistant Core version: 2025.6.3
Zigbee2MQTT version: 2.4.0
Zigbee coordinator: Sonoff ZBDongle-E
Affected device: Sonoff SNZB-01M (four-button remote)

Additional note

Additionally, I have already filed this issue in the Home Assistant repository and have not received a response yet. You may want to check that issue to see if there have been any updates or replies.
home-assistant/my.home-assistant.io#632

What did you expect to happen?

No response

How to reproduce it (minimal and precise)

No response

Zigbee2MQTT version

2.4.0

Adapter firmware version

6.10.3.0 build 297 EZSPv8

Adapter

Sonoff ZBDongle-E

Setup

Home Assistant Core version: 2025.6.3
Zigbee2MQTT version: 2.4.0
Zigbee coordinator: Sonoff ZBDongle-E
Affected device: Sonoff SNZB-01M (four-button remote)

Device database.db entry

No response

Debug log

No response

Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    problemSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions