SONOFF Orb 4-in-1 (SZNB-01M) Zigbee2MQTT

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:

  1. You must be using Zigbee2MQTT and not ZHA.
  2. Open the Zigbee2MQTT addon/interface.
  3. Go to SettingsHome Assistant Integration.
  4. Check the box for experimental_event_entities.
  5. 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!

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