Here is a blueprint for the THIRDREALITY Zigbee single-button remote. This blueprint supports single-click, double-click and hold actions for this model remote. Inspired by many other similar Zigbee remote blueprints posted here. This blueprint fires from the single, double, and hold events. The remote fires some other events as well, such as on, off, attribute_update, and release all of which we ignore for this blueprint.
Here is the Blackadder page for this remote.
blueprint:
name: ZHA - THIRDREALITY Single Button Remote
description: Control things with THIRDREALITY Single Buton Remote
domain: automation
input:
remote:
name: Remote
description: THIRDREALITY remote to use
selector:
device:
integration: zha
manufacturer: "Third Reality, Inc"
model: "3RSB22BZ"
button_single_click:
name: Button single-click
description: Action to perform on button single click
default: []
selector:
action: {}
button_double_click:
name: Button double-click
description: Action to perform on button double click
default: []
selector:
action: {}
button_hold:
name: Button hold
description: Action to perform on button hold
default: []
selector:
action: {}
mode: restart
max_exceeded: silent
trigger:
- platform: event
event_type: zha_event
event_data:
device_id: !input remote
action:
- variables:
command: '{{ trigger.event.data.command }}'
- choose:
- conditions:
- '{{ command == ''single'' }}'
sequence: !input button_single_click
- conditions:
- '{{ command == ''double'' }}'
sequence: !input button_double_click
- conditions:
- '{{ command == ''hold'' }}'
sequence: !input button_hold