Zigbee2MQTT - Ikea Remote STYRBAR Type E2001/E2002

Blueprint for Ikea Remote STYRBAR Type E2001/E2002

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

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
1 Like

Hi,
thank you for the blueprint.
Are you using the newest Version of Z2M, 1.27.0-1 ?
I can´t get it to work unfortunately…

Hi,
Sorry for my late answer :confused:
I’m always using the last release of Z2M.
Currently 1.28.4-1 and it still works.

I’m trying to use this blueprint, but I’m getting an error.
I’ve got Zigbee2MQTT 1.29.2-1.
The error I’m getting on the trace of the automation I created from this blueprint is:

UndefinedError: 'dict object' has no attribute 'to_state'

It appears to be from the section

action:
  - variables:
    command: "{{ trigger.to_state.state }}"

Unfortunately I don’t know enough to be able to fix it.

Did you manage to solve? I’m having the same error, and even after configuring the blueprint correctly (I have checked a million times) pressing the buttons does nothing.

The log only shows that the action sensor of the remote was turned on but it doesn’t follow through with the selected action.

EDIT: for any other reader who’s struggling with this remote, I had success with this blueprint:

Thanks.
Is there any chance to set color_temp of zigbee2mqtt lights with this? How?

1 Like

Same here.
I would like to use left/right for color-temperature. Seems to be an issue of the bulb integration into zigbee2mqtt (I cannot see any proper action for the device - even the entity control can manage the color-temperature


).

To change the color temperature, I’ve accidentally found that using the “light: turn on” action helps. Then you can configure the brightness and color (temperature).

Hi everybody, how can I use this blueprint to dimming smoothly my LED ?