Unable to pair Sonoff Zigbee SNZB-01/WB-01 Buttons

You do realise a button press is not an entity, its an event?

In the case of the ZB01 it appears that a short press is a toggle, two press in short succession gives ON and a long press gives us OFF

Use ZHA Event in Automation as a trigger.if you do not want to use third party app.

- id: '1597858866707'
  alias: ZHA Button
  description: ''
  trigger:
  - event_data:
      command: toggle
      device_ieee: 00:12:4b:00:1f:91:92:1f
    event_type: zha_event
    platform: event
  condition: []
  action:
  - data: {}
    entity_id: switch.ceiling_lights
    service: switch.toggle
  mode: single
4 Likes