Last active
April 1, 2024 05:38
-
-
Save jwhb/90c79430d6a6e6f31262bca1e39aca9c to your computer and use it in GitHub Desktop.
IKEA E1524 Tradfri Remote Control - Home Assistant Blueprint
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blueprint: | |
name: Zigbee2MQTT - IKEA E1524/E1810 Tradfri Remote Control | |
description: Control anything using "IKEA E1524/E1810 Tradfri Remote Control" | |
domain: automation | |
input: | |
action_sensor: | |
name: Remote | |
description: Zigbee2MQTT action sensor | |
selector: | |
entity: | |
integration: mqtt | |
domain: sensor | |
multiple: false | |
toggle_action: | |
name: Toggle Action | |
default: [] | |
selector: | |
action: {} | |
arrow_right_action: | |
name: Arrow Right Action | |
default: [] | |
selector: | |
action: {} | |
arrow_left_action: | |
name: Arrow Left Action | |
default: [] | |
selector: | |
action: {} | |
brightness_up_action: | |
name: Brightness Up Action | |
default: [] | |
selector: | |
action: {} | |
brightness_down_action: | |
name: Brightness Down Action | |
default: [] | |
selector: | |
action: {} | |
source_url: https://community.home-assistant.io/t/zigbee2mqtt-ikea-e1810-tradfri-remote-control/308820 | |
mode: restart | |
max_exceeded: silent | |
trigger: | |
platform: state | |
entity_id: !input action_sensor | |
action: | |
- variables: | |
command: '{{ trigger.to_state.state }}' | |
- choose: | |
- conditions: '{{ command == ''toggle'' }}' | |
sequence: !input toggle_action | |
- conditions: '{{ command == ''arrow_right_click'' }}' | |
sequence: !input arrow_right_action | |
- conditions: '{{ command == ''arrow_left_click'' }}' | |
sequence: !input arrow_left_action | |
- conditions: '{{ command == ''brightness_up_click'' }}' | |
sequence: !input brightness_up_action | |
- conditions: '{{ command == ''brightness_down_click'' }}' | |
sequence: !input brightness_down_action |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Awesome! You should change the mode to 'queued' otherwise its a bit flaky
https://www.zigbee2mqtt.io/devices/E1524_E1810.html#troubleshooting-automations-triggered-by-button-presses-throw-exceptions