Skip to content

Add support for Double press for Bilresa on ZHA #42

Description

@Guyohms

Using bilresa quirk v2 (https://github.com/iamjoshk/home-assistant-collection/blob/main/zha/custom_zha_quirks/bilresa_v2.py) which should be in zigpy shortly (zigpy/zha-device-handlers#4612), I'm getting a double press event like this:

event_type: zha_event
data:
  device_ieee: 10:35:97:00:00:85:27:bd
  device_id: c70a0739dedb5d5e8b884d5b6b126f64
  unique_id: 10:35:97:00:00:85:27:bd:1:0x0005
  endpoint_id: 1
  cluster_id: 5
  command: press
  args:
    - 257
    - 13
    - 0
  params:
    param1: 257
    param2: 13
    param3: 0
origin: LOCAL
time_fired: "2026-03-02T21:45:21.378691+00:00"
context:
  id: 01KJR86KQ2YNXK0D6YFYKD1H1T
  parent_id: null
  user_id: null

So I added this to the blueprint and it works.
I don't know how to make a PR for this but here's the parts added:

in triggers:

- trigger: event
  event_type: zha_event
  event_data:
    command: press
    endpoint_id: 1
    cluster_id: 5
    args:
      - 256
      - 13
      - 0
  id: double-press-on-zha-bilresa
  enabled: '{{ zha_enabled }}'
- trigger: event
  event_type: zha_event
  event_data:
    command: press
    endpoint_id: 1
    cluster_id: 5
    args:
      - 257
      - 13
      - 0

in actions:

  - conditions:
    - condition: trigger
      id:
      - double-press-on-zha-somrig
      - double-press-on-z2m-somrig
      - double-press-on-z2m-bilresa
      - double-press-on-zha-bilresa
    sequence: !input on_double_press_action
  - conditions:
    - condition: trigger
      id:
      - double-press-off-zha-somrig
      - double-press-off-z2m-somrig
      - double-press-off-z2m-bilresa
      - double-press-off-zha-bilresa
    sequence: !input off_double_press_action

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions