Hi,
I’ve been experimenting with the Sonoff M5ZB-2C-86W to see if I can bind it directly to a Zigbee group containing lights, so the lights can be controlled without involving Home Assistant.
I think I may have run into a firmware bug.
For clarity, this is the exact switch model:
- Sonoff M5ZB-2C-86W
- Zigbee version
- 2-gang switch
- WITH neutral wire
- 86mm x 86mm EU version
- Firmware 1.0.6
The problem:
Only 1 of the 2 buttons works correctly with "detach relay" enabled.
Only the button using endpoint 2 can be directly bound to a lamp/group.
I’m using Zigbee2MQTT.
My experience:
Out of the box, the Sonoff M5 came with firmware 1.0.4 and "detach relay" did not work at all (I could not see any output clusters on endpoints 1 or 2), so updating to firmware 1.0.6 was required.
After the update, I enabled BOTH detach and clicked "Apply".
After that, I was only able to bind the right switch (source endpoint 2) to a lamp/group using only the "genOnOff" cluster without the internal relay switching as well.
For the left switch (source endpoint 1), it did not matter which cluster type or destination I used: the binding did not work correctly and the internal relay still switched on/off together with the button press.
After removing the M5 from Zigbee2MQTT, I performed a factory reset and paired it again.
This time, instead of enabling both detach relays together, I enabled them separately:
- enable detach relay 1 -> Apply
- enable detach relay 2 -> Apply
When testing the buttons on the M5 afterwards, I noticed that BOTH internal relays no longer switched, so detached relay mode was working correctly for both buttons.
This was BEFORE creating any bindings.
However, as soon as I use the "genOnOff" cluster on endpoint 1, the internal relay starts switching on/off again and the Zigbee binding itself stops working properly.
That seems to be where the actual problem is.
A workaround is to use the toggle state in a Home Assistant automation, but that is exactly what I’m trying to avoid ![]()
Anyway, I’m not really expecting a solution here (that probably needs to come from Sonoff firmware), but I wanted to check if other people have had the same experience.
I’m definitely not an expert when it comes to Zigbee networks, so I’m not entirely sure how to properly troubleshoot this or where to start looking. Maybe I’m overlooking something obvious?