|
blueprint: |
|
name: ZHA - IKEA five button remote |
|
description: | |
|
Control anything using IKEA five button remote |
|
|
|
domain: automation |
|
input: |
|
remote: |
|
name: Remote |
|
description: IKEA remote to use |
|
selector: |
|
device: |
|
integration: zha |
|
manufacturer: IKEA of Sweden |
|
model: TRADFRI remote control |
|
button_on_off: |
|
name: On off button press |
|
description: Action to run on press of on off button |
|
default: [] |
|
selector: |
|
action: |
|
button_brightness_up_short: |
|
name: Brightness up button - short press |
|
description: Action to run on short brightness up press |
|
default: [] |
|
selector: |
|
action: |
|
button_brightness_up_long: |
|
name: Brightness up button - long press |
|
description: Action to run on long brightness up press |
|
default: [] |
|
selector: |
|
action: |
|
button_brightness_down_short: |
|
name: Brightness down button - short press |
|
description: Action to run on short brightness down press |
|
default: [] |
|
selector: |
|
action: |
|
button_brightness_down_long: |
|
name: Brightness down button - long press |
|
description: Action to run on long brightness down press |
|
default: [] |
|
selector: |
|
action: |
|
button_left_short: |
|
name: Left button - short press |
|
description: Action to run on short left button press |
|
default: [] |
|
selector: |
|
action: |
|
button_left_long: |
|
name: Left button - long press |
|
description: Action to run on long left button press |
|
default: [] |
|
selector: |
|
action: |
|
button_right_short: |
|
name: Right button - short press |
|
description: Action to run on short right button press |
|
default: [] |
|
selector: |
|
action: |
|
button_right_long: |
|
name: Right button - long press |
|
description: Action to run on long right button press |
|
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 }}" |
|
cluster_id: "{{ trigger.event.data.cluster_id }}" |
|
endpoint_id: "{{ trigger.event.data.endpoint_id }}" |
|
args: "{{ trigger.event.data.args }}" |
|
- choose: |
|
- conditions: |
|
- "{{ command == 'toggle' }}" |
|
sequence: !input button_on_off |
|
|
|
- conditions: |
|
- "{{ command == 'step_with_on_off' }}" |
|
sequence: !input button_brightness_up_short |
|
|
|
- conditions: |
|
- "{{ command == 'move_with_on_off' }}" |
|
sequence: !input button_brightness_up_long |
|
|
|
- conditions: |
|
- "{{ command == 'step' }}" |
|
sequence: !input button_brightness_down_short |
|
|
|
- conditions: |
|
- "{{ command == 'move' }}" |
|
sequence: !input button_brightness_down_long |
|
|
|
- conditions: |
|
- "{{ command == 'press' }}" |
|
sequence: !input button_left_short |
|
|
|
- conditions: |
|
- "{{ command == 'hold' }}" |
|
sequence: !input button_left_long |
|
|
|
- conditions: |
|
- "{{ command == 'press' }}" |
|
sequence: !input button_right_short |
|
|
|
- conditions: |
|
- "{{ command == 'hold' }}" |
|
sequence: !input button_right_long |