Introduction
SONOFF ZBM5 is a powerful Zigbee Smart Wall Switch designed for both neutral and no-neutral wire homes that can be seamlessly integrated into Home Assistant for automation and security purposes. This guide will walk you through the process of connecting the ZBM5 to Home Assistant using Zigbee Home Automation (ZHA).

Prerequisites
Before you begin, ensure you have the following:
- Home Assistant installed and running
- A Zigbee Coordinator (e.g., SONOFF Zigbee 3.0 USB Dongle Plus-P/-E)
- SONOFF ZBM5

Step 1: Install and Configure ZHA in Home Assistant
- Go to Home Assistant and navigate to Settings > Devices & Services.
- Click “Add Integration” and search for Zigbee Home Automation (ZHA).
- Follow the guide here: How to Use SONOFF Zigbee Dongle Plus on Home Assistant? How to Flash Firmware?
- Once completed, you should see ZHA successfully configured in Home Assistant.

Step 2: Add SONOFF ZBM5 to Home Assistant
- In Home Assistant, navigate to Settings > Devices & Services > ZHA > devices.

- Reset the SONOFF ZBM5 by pressing and holding the physical button for 5 seconds until the LED starts blinking.
- Click “Add Device” and wait for ZHA to discover the ZBM5.


- Once found, you can rename the device and select an area for it.
Step 3: Verifying and Testing the ZBM5
- Go to Settings > Devices & Services > ZHA and find your ZBM5 in the device list.
- Click on the ZBM5 device to view its state and controls.

- Test the switch by manually pressing it and checking if Home Assistant registers the state change.

You can add this smart switch to the DASHBOARD for convenient control.

Step 4: Creating Automation with ZBM5
Now that your ZBM5 is integrated, you can create automations to control other devices or respond to switch actions.
Example: Turn on a Smart Light When the Switch is Pressed
- Go to Settings > Automations & Scenes.
- Click “Create Automation” and select “Create new automation”.

- Click “Add Trigger”, select “Time and location”, and set ‘when the time is equal to 10:00 PM’.

- Click “Add Action”, choose “Device – SONOFF ZBM5”.

- Choose the smart light you want to turn off and save the automation.
Functions Under Different Zigbee Hubs

Conclusion
Integrating SONOFF ZBM5 with Home Assistant using ZHA is a simple and effective way to enhance your smart home. With remote control and automation capabilities, this Zigbee Smart Wall Switch can be used for lighting, appliance control, and more.
Start experimenting with advanced automations and customized controls to make the most of your SONOFF ZBM5!