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.
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.
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â.
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.
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.)