Quick Answer

Sonoff's Zigbee line (ZBMINI, SNZB sensors, BASICZBR3) works perfectly with Zigbee2MQTT and Home Assistant — no eWeLink account or Sonoff hub required. Enable Permit Join in Zigbee2MQTT, put your device in pairing mode, and it appears in HA automatically. Full local control, no cloud.

Table of Contents

  1. Which Sonoff Zigbee Devices Work
  2. Pairing Process
  3. Entity Setup in HA
  4. Switch Automation (YAML)
  5. Troubleshooting
  6. FAQ

What You Need

Which Sonoff Zigbee Devices Work with Zigbee2MQTT

Sonoff makes both Wi-Fi and Zigbee devices. The Zigbee line is identifiable by "ZB" in the model name. Here's what's supported:

All of these appear in the Zigbee2MQTT supported devices list and work without any Sonoff account.

Pairing Process

  1. Open the Zigbee2MQTT web UI (accessible via HA sidebar if using the add-on)
  2. Click Permit join (All) — the timer counts down from 254 seconds
  3. Put your Sonoff device in pairing mode:
    • ZBMINI/BASICZBR3: Hold the button for 5 seconds until the LED flashes rapidly
    • SNZB sensors: Hold the reset button until the LED flashes 3 times
    • S26R2ZB plug: Hold the button for 5 seconds
  4. The device appears in the Z2M device list within 30 seconds
  5. Click the device → rename it (e.g., "Kitchen Light Switch")
  6. Disable Permit Join after pairing

HA auto-discovers the new entities via MQTT autodiscovery within ~60 seconds of pairing.

Entity Setup in HA

After pairing a ZBMINI switch, you'll get:

After pairing an SNZB-02D temperature/humidity sensor:

Switch Automation (YAML)

Use the SNZB-01 button to toggle a light, with different actions for single press, double press, and hold:

automations.yaml — SNZB-01 button controls light
automation:
  - alias: "Hallway button - single press"
    trigger:
      - platform: device
        domain: mqtt
        device_id: your_snzb01_device_id
        type: action
        subtype: single
    action:
      - service: light.toggle
        target:
          entity_id: light.hallway

  - alias: "Hallway button - double press - all lights off"
    trigger:
      - platform: device
        domain: mqtt
        device_id: your_snzb01_device_id
        type: action
        subtype: double
    action:
      - service: light.turn_off
        target:
          entity_id: all

  - alias: "Hallway button - hold - dim light"
    trigger:
      - platform: device
        domain: mqtt
        device_id: your_snzb01_device_id
        type: action
        subtype: hold
    action:
      - service: light.turn_on
        target:
          entity_id: light.hallway
        data:
          brightness_pct: 20
Alternative: Use the MQTT trigger directly with platform: mqtt and topic: "zigbee2mqtt/hallway-button/action" if you prefer not to use the device trigger approach.

Troubleshooting

FAQ

Can I use the Sonoff Zigbee Dongle as a coordinator for other brands?

Yes — the Sonoff ZBDongle-P (CC2652P) is a generic Zigbee coordinator. It pairs with any Zigbee device: Aqara, IKEA, Philips Hue, Tuya — not just Sonoff devices.

Does the Sonoff ZBMINI need the Sonoff bridge (NSPanel, ZBBridge)?

No — the ZBMINI is a standard Zigbee device. It pairs directly with Zigbee2MQTT via the USB coordinator. You don't need any Sonoff hub or bridge.

Can Sonoff Zigbee devices also act as Zigbee mesh repeaters?

Yes — mains-powered Sonoff Zigbee devices (ZBMINI, S26R2ZB, BASICZBR3) act as Zigbee routers, extending mesh range for battery-powered sensors. Battery-powered sensors (SNZB series) are end devices and don't repeat.

SmartWired uses affiliate links. If you buy through our links, we may earn a commission at no extra cost to you. See our Affiliate Disclosure.