How to integrate a Bitron Home 902010/23 keyfob

Hi!

More or less out of curiosity I bought the keyfob mentioned in the subject. I paired it with my ZHA and saw a device. No battery info, no entity. Hmm.

Then I saw a few posts about using “zha_event”. I fiddled a bit with the various parameters in a newly created automation and ended up with this:

alias: Brunhilde Gesamt Licht an / aus
description: ""
trigger:
  - platform: event
    event_type: zha_event
    event_data:
      device_ieee: 00:12:4b:00:09:55:b4:d7
      unique_id: 00:12:4b:00:09:55:b4:d7:1:0x0008
      params:
        step_mode: 0
        attribute_name: on_off
        value: 0
condition: []
action:
  - service: light.toggle
    data: {}
    target:
      area_id: c7fa3cdbdc03d86821572172ea621e9e
mode: single
alias: Brunhilde Susi an/aus
description: ""
trigger:
  - platform: event
    event_type: zha_event
    event_data:
      device_ieee: 00:12:4b:00:09:55:b4:d7
      unique_id: 00:12:4b:00:09:55:b4:d7:1:0x0006
      device_id: 844aa7ae582ce29258f4b126be99029c
      command: "on"
condition: []
action:
  - service: light.toggle
    data: {}
    target:
      area_id: c7fa3cdbdc03d86821572172ea621e9e
mode: single

Too lazy to copy/paste the other two buttons. Just listen to zha_event in the developer section and you’ll get it.

Please educate me if there is a better way to integrate it.
Thanks,
Ruediger

1 Like

Events are usually the way to use zigbee remote buttons.

Oh. Ok?
Previously I used this

trigger:
  - device_id: da0d8016b5fdc95c8753b9ccabe644d4
    domain: zha
    platform: device
    type: remote_button_short_press
    subtype: turn_on

for a Zigbee IKEA Tradfri.