Hi I share with you my 1st blueprints, its for Airam CTR.U remote
blueprint:
name: Airam CTR.U remote
description: >
Airam CTR.U remote
domain: automation
input:
button_sensor:
name: remote
description: Select remote
selector:
entity:
domain: sensor
remote_button_single_press:
name: Press on
description: Action to On
default: []
selector:
action:
remote_button_double_press:
name: Press off
description: Action to Off
default: []
selector:
action:
remote_button_triple_press:
name: Press brightness step up
description: Action to brightness step up
default: []
selector:
action:
remote_button_quadruple_press:
name: Press brightness step down
description: Action to brightness step down
default: []
selector:
action:
remote_button_multiple_press:
name: Press recall_1
description: Action to recall_1
default: []
selector:
action:
mode: restart
max_exceeded: silent
press.
trigger:
- platform: state
entity_id: !input button_sensor
to: 'on'
- platform: state
entity_id: !input button_sensor
to: 'off'
- platform: state
entity_id: !input button_sensor
to: 'brightness_step_up'
- platform: state
entity_id: !input button_sensor
to: 'brightness_step_down'
- platform: state
entity_id: !input button_sensor
to: 'recall_1'
action:
- variables:
action: "{{ trigger.to_state.state }}"
- choose:
- conditions: "{{ action == 'on' }}"
sequence: !input remote_button_single_press
- conditions: "{{ action == 'off' }}"
sequence: !input remote_button_double_press
- conditions: "{{ action == 'brightness_step_up' }}"
sequence: !input remote_button_triple_press
- conditions: "{{ action == 'brightness_step_down' }}"
sequence: !input remote_button_quadruple_press
- conditions: "{{ action == 'recall_1' }}"
sequence: !input remote_button_multiple_press
( its inspirer by Zigbee2MQTT - Xiaomi Mijia Round Wireless Remote Switch (WXKG01LM) actions )