ONLY WORKS FOR ZHA INTEGRATION!
Blank version of the IKEA five button remote for lights in order to use it for other things. Personally I use it for controlling my Sonos. Brightness = vol up + down. Right/left steps through available radio presets while using TTS to tell which channel is selected.
Get started
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' }}"
- "{{ cluster_id == 6 }}"
- "{{ endpoint_id == 1 }}"
sequence: !input button_on_off
- conditions:
- "{{ command == 'step_with_on_off' }}"
- "{{ cluster_id == 8 }}"
- "{{ endpoint_id == 1 }}"
- "{{ args == [0, 43, 5] }}"
sequence: !input button_brightness_up_short
- conditions:
- "{{ command == 'move_with_on_off' }}"
- "{{ cluster_id == 8 }}"
- "{{ endpoint_id == 1 }}"
- "{{ args == [0, 84] }}"
sequence: !input button_brightness_up_long
- conditions:
- "{{ command == 'move_with_on_off' }}"
- "{{ cluster_id == 8 }}"
- "{{ endpoint_id == 1 }}"
- "{{ args == [0, 83] }}"
sequence: !input button_brightness_up_long
- conditions:
- "{{ command == 'step' }}"
- "{{ cluster_id == 8 }}"
- "{{ endpoint_id == 1 }}"
- "{{ args == [1, 43, 5] }}"
sequence: !input button_brightness_down_short
- conditions:
- "{{ command == 'move' }}"
- "{{ cluster_id == 8 }}"
- "{{ endpoint_id == 1 }}"
- "{{ args == [1, 84] }}"
sequence: !input button_brightness_down_long
- conditions:
- "{{ command == 'move' }}"
- "{{ cluster_id == 8 }}"
- "{{ endpoint_id == 1 }}"
- "{{ args == [1, 83] }}"
sequence: !input button_brightness_down_long
- conditions:
- "{{ command == 'press' }}"
- "{{ cluster_id == 5 }}"
- "{{ endpoint_id == 1 }}"
- "{{ args == [257, 13, 0] }}"
sequence: !input button_left_short
- conditions:
- "{{ command == 'hold' }}"
- "{{ cluster_id == 5 }}"
- "{{ endpoint_id == 1 }}"
- "{{ args == [3329, 0] }}"
sequence: !input button_left_long
- conditions:
- "{{ command == 'press' }}"
- "{{ cluster_id == 5 }}"
- "{{ endpoint_id == 1 }}"
- "{{ args == [256, 13, 0] }}"
sequence: !input button_right_short
- conditions:
- "{{ command == 'hold' }}"
- "{{ cluster_id == 5 }}"
- "{{ endpoint_id == 1 }}"
- "{{ args == [3328, 0] }}"
sequence: !input button_right_long