Hi everyone,
I wanted to share a blueprint I created for the Sonoff SNZB-01M (the round “Orb” 4-button switch) specifically for users running Zigbee2MQTT.
Many existing blueprints for this device rely on the old “Action Sensor” (watching for a text state change) or legacy device triggers. However, modern Zigbee2MQTT setups can now expose button presses as native Event Entities in Home Assistant (e.g., event.switch_sonoff_action), which is cleaner and more responsive.
This blueprint maps all 16 possible commands:
- 4 Buttons (Top Left, Top Right, Bottom Left, Bottom Right)
- 4 Actions per button (Single, Double, Triple, and Long Press)
Critical Prerequisite: To use this blueprint, you must enable the new event entity feature in your Zigbee2MQTT configuration:
- You must be using Zigbee2MQTT and not ZHA.
- Open the Zigbee2MQTT addon/interface.
- Go to Settings → Home Assistant Integration.
- Check the box for
experimental_event_entities. - Restart Zigbee2MQTT.
How it works: This blueprint listens to the event entity generated by Zigbee2MQTT. It detects the specific button press by reading the event_type attribute (e.g., single_button_1, double_button_2) that Z2M sends over MQTT.
This script is designed to be robust—you can leave actions blank if you don’t need them, and it won’t cause errors.
I hope this helps anyone else looking for a clean way to handle this switch with the new MQTT event entities!