Blueprint for Ikea Remote STYRBAR Type E2001/E2002
Integration:
Zigbee2MQTT
Device:
Ikea Remote STYRBAR Type E2001/E2002 (https://www.zigbee2mqtt.io/devices/E2001_E2002.html)
Action:
- Left Arrow Short Press
- Right Arrow Short Press
- Brightness Up Short Press
- Brightness Up Long Press
- Brightness Down Short Press
- Brightness Down Long Press
Blueprint:
blueprint:
name: Zigbee2MQTT - Ikea STYRBAR E2001/E2002 Remote Control
description: Ikea STYRBAR E2001/E2002 Remote Control Blueprint"
domain: automation
input:
action_sensor:
name: Remote
description: Zigbee2mqtt action sensor
selector:
entity:
integration: mqtt
domain: sensor
multiple: false
arrow_right_action:
name: Arrow Right
default: []
selector:
action: {}
arrow_left_action:
name: Arrow Left
default: []
selector:
action: {}
brightness_down_action:
name: Brightness Down
default: []
selector:
action: {}
brightness_up_action:
name: Brightness Up
default: []
selector:
action: {}
brightness_up_long_action:
name: Brightness Up Long Press
default: []
selector:
action: {}
brightness_down_long_action:
name: Brightness Down Long Press
default: []
selector:
action: {}
source_url: https://community.home-assistant.io/t/zigbee2mqtt-ikea-remote-styrbar-type-e2001-e2002/451893
mode: restart
max_exceeded: silent
trigger:
platform: state
entity_id: !input action_sensor
attribute: action
action:
- variables:
command: "{{ trigger.to_state.state }}"
- choose:
- conditions: "{{ command == 'arrow_right_click' }}"
sequence: !input arrow_right_action
- conditions: "{{ command == 'arrow_left_click' }}"
sequence: !input arrow_left_action
- conditions: "{{ command == 'on' }}"
sequence: !input brightness_up_action
- conditions: "{{ command == 'off' }}"
sequence: !input brightness_down_action
- conditions: "{{ command == 'brightness_move_up' }}"
sequence: !input brightness_up_long_action
- conditions: "{{ command == 'brightness_move_down' }}"
sequence: !input brightness_down_long_action