Getting Sonoff SNZB-01 to Work with HASS Yellow

Hi,
I installed Sonoff SNZB-01 smart button to my HASS Yellow using the built-in Zigbee bridge.
HASS recognized only the diagnostic features of the button -the battery and the identify. But there is nothing shown in the configuration about clicking the button. So, I cannot use the button to trigger actions in HASS.

Is there some workaround this issue?

I have the exact same issue. I wonder why no one replies with suggestions.

I asked on Reddit at r/homeassistant and the advice is too cryptic to follow: https://www.reddit.com/r/homeassistant/s/Jqp0cQzsfo

Have you been able to get the Sonoff SNZB-01 Button on/off to appear in HA?

The problem is that you’re trying to figure out an on/off state for an isolated button which has no such concepts.

The button will send events, not states. You should be able to see those in the logbook when you press the button. You cannot try to use a blueprint for binary sensors (on/off) for a device which doesn’t have any (as you attempted to do in your reddit thread).

All you had to do was type in “SNZB-01” in the search in these very forums - the second search result is a blueprint which should work out of the box.

If it doesn’t work immediately, keep reading the thread till the end and simply change the device which the blueprint is expecting.

Ok. I created a new automation and selected the ‘Device’ ewelink_snzb_01p.

A “Button” pressed option was presented.

I created an action and saved the automation.

Sure enough, it works. I expected it to work like my Third Reality button in which HA displays an entity and state.

Thanks!

I don’t know what model of the Third Reality button you have, so I can’t say why it’s showing a state. That’s extremely unusual for a battery button since it’s not switching anything.

Yeahhh, that’s exactly what the first reply to your Reddit post suggested you do. I’m glad that you just went back and replied to the other person who gave you clear instructions which you decided to label as “cryptic”.

1 Like

I went back and looked at my Third Reality button automation and rediscovered that it works the same as the Sonoff button. There is no entity for both buttons.

I can’t explain why for me it was easy for Third Reality and not for Sonoff. There’s no difference.

The triggered action becomes the history of button presses. There are no ‘pressed’ and 'not ‘pressed’ states; there’s only ZHA events.

The ‘cryptic’ part is not knowing what I was supposed to be looking at. With experience, the instructions are clear, or at least good reminders.

The missing steps are to first look at automatically created entities (e.g., Battery, Identify, LQI, RSSI) to learn the entity name, then use that name as a Trigger for the automation. Walla! It works by magic, by an invisible ZHA event.

BTW I just discovered the zha_toolkit that makes the invisible visible and adds controls: "zha-toolkit" - a big set of Zigbee commands on top of ZHA/zigpy

After seeing 220 comments, I see this toolkit is complicated and not for the casual user.

Thank you for the recap.

It is not invisible. You just have to know how to find it, and it’s pretty advanced stuff if you’re just starting out.

Go to Developer Tools > Events tab. Type in zha_event and click “Start Listening”. Pressing the button on your zigbee device should generate an entry as shown in this thread. You can then create automations using event as the trigger.

(Note I said it should appear in the paragraph above. For some reason, my zha event listener disappeared a while ago and won’t show up again no matter what I try.
If it happens to you, use * instead of zha_event. Make sure to press Stop listening when you’re done, because * captures all events and is quite chatty.)

Got it. Zha events are not invisible; they’re behind a curtain.

Thank you!

1 Like