Blueprint: IKEA E2001/E2002 Styrbar Remote Control for Lights (Zigbee2MQTT Compatible)

Blueprint: Styrbar Remote Control for Lights (Zigbee2MQTT Compatible)

Hi everyone! :wave:

I’m excited to share a new blueprint I created for the IKEA E2001/E2002 Styrbar remote control, designed to work seamlessly with Zigbee2MQTT. This blueprint allows you to control your lights with the Styrbar remote, offering basic functionality like turning lights on/off, dimming brightness continuously, and changing color temperature.

Features:

  • Turn Lights On/Off: Use the center button to toggle lights on or off.
  • Adjust Brightness: Hold the top or bottom button to dim the lights up or down with smooth, continuous adjustments.
  • Change Color Temperature: Use the left/right buttons to set the lights to either warm white (2000K) or cool white (6500K).
  • Transition Time Option: Adjust the transition time for brightness changes.
  • Works with Zigbee2MQTT 2.0.0+: Fully compatible with the latest version of Zigbee2MQTT, no need to enable the legacy action sensor.
  • Single Light or Group of Lights: Works with any light entity you select, whether it’s a single bulb or a group of lights.

Requirements:

  • IKEA E2001/E2002 Styrbar remote control integrated with Zigbee2MQTT.
  • A single light or group of lights configured in Zigbee2MQTT.
  • Home Assistant with MQTT integration enabled.

Future Improvements:

I plan to enhance this blueprint by adding more flexible control over the color temperature, allowing you to adjust it incrementally rather than switching between two predefined values. Stay tuned for updates!

How to Use:

  1. Import the blueprint using the link below.
  2. Configure the required inputs:
    • Select the light entity (single light or a group).
    • Choose the Styrbar remote control device.
    • Adjust optional settings like brightness step size and delay if needed.
  3. Save and activate the automation.
  4. Enjoy controlling your lights with the Styrbar remote!

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

Feel free to share any feedback or suggestions—I’d love to hear how this works for you and any features you’d like to see added.

Happy automating! :rocket:

1 Like

Works great for me, thanks a million… Yes colour temp settings would be really good if you can adjust incrementally

1 Like

I will try to add it tommorow

Thanks a lot! It works great :clap:. Yes, the only feature to have it working similar to the Dirigera is the long press on the temperature buttons.

You can now adjust the transition time for brightness changes! This new option lets you set the duration in seconds for smooth and seamless light transitions when adjusting brightness. It helps make the adjustments feel more natural. Stay tuned for future updates, where I’ll be adding the ability to adjust the color temperature soon.

Would be perfect for me if you are also able to select the colour scenes (red, purple, blue, orange, yellow, purple, green) that are offered by default on the IKEA Tradfri colour bulbs when you press the left/right arrows including the cool and warm white options.

Sorry for a question not directly related to the template, but this seemed a good place to ask as you are all using Styrbar on Z2M:

Can you use the left/right button long press action without also triggering a dim up button short press action?

I am using Styrbar remotes through ZHA and wondering whether the above behavior is a bug in the hardware/firmware or in the ZHA quirk/driver…

I will take a look on it, but I dont have color bulb so I will try to make it maybe more general for user with RGB bulb also.

@Mayhem_SWE TBH sometimes It happens also to me, when trying to hold left or right It tries to dim up. When I was checking the state of the styrbar it seems like I’m pressing top button. Looks like to me a hardware/firmaware problem.

Good job ! Color temp adjustment would be a great idea indeed.
I’m having an issue with the on button though :confused:
Error: expected int for dictionary value @ data[‘brightness’]

I also get the same error regarding the expected int. So not a once off issue.

@DaniLecx, @BigJoeFour It should be fixed by now. Thanks for letting me know.

Hi guys!
Unfortunately this integration doesn’t work correctly. Delays and now it doesn’t work at all.
If i downloaded it some time ago, should i download a new vwersion or it upgrades automatically? Htank you for reply

@Romario Try to reimport and let me know If it works.

1 Like

Yep. Thank you for reply. Works but not all the time correctly. Dimming doesn’t work at all (only on and off)/ Color temp has also 2 positions (white and yellow).
I just wanted to exclude IKEA HUB Tradfri, but it worked perfectly.
I am trying to undersdtand what’s wrong(

Not sure what could be wrong. Dimming works for me correctly. About the changing the colors, read my post. As I said there I will add this feature in some time. For now it changes only cold and warm light.

1 Like

Perfect, thank you!

Hello, nice blueprint!
One problem: brightness step adjustment does not seem to work, I think it defaults to 5 regardless of set value?
Even if I set it to “100”, the step size is always 5.
I’m not familiar with writing code, and find it quite hard to fix this only by Google searching…

I will take a look

I managed to get it working by searching Google and testing for a couple hours, here’s my take.
Again, I am not familiar with writing code so there might be a simpler/better way.
I am also new to HA and this community, hope the code comes out readable in this comment.
Edit: also removed color changing for personal use, my fingers are too fumbly with the remote and colors were changed without wanting it happening :smiley:

variables:
  brightness_step: !input 'brightness_step'
trigger:
- platform: device
  device_id: !input mqtt_device
  domain: mqtt
  type: action
  subtype: 'on'
  id: light_on
- platform: device
  device_id: !input mqtt_device
  domain: mqtt
  type: action
  subtype: 'off'
  id: light_off
- platform: device
  device_id: !input mqtt_device
  domain: mqtt
  type: action
  subtype: brightness_move_down
  id: dim_down
- platform: device
  device_id: !input mqtt_device
  domain: mqtt
  type: action
  subtype: brightness_move_up
  id: dim_up
- platform: device
  device_id: !input mqtt_device
  domain: mqtt
  type: action
  subtype: brightness_stop
  id: dim_stop
action:
- choose:
  - conditions:
    - condition: trigger
      id: light_on
    sequence:
    - service: light.turn_on
      target:
        entity_id: !input light_entity
  - conditions:
    - condition: trigger
      id: light_off
    sequence:
    - service: light.turn_off
      target:
        entity_id: !input light_entity
  - conditions:
    - condition: trigger
      id: dim_down
    sequence:
    - repeat:
        sequence:
        - service: light.turn_on
          target:
            entity_id: !input light_entity
          data:
            brightness_step_pct: "-{{ brightness_step | int}}"
            transition: !input transition_seconds
        - delay:
            milliseconds: !input delay_ms
        until:
        - condition: trigger
          id: dim_stop
  - conditions:
    - condition: trigger
      id: dim_up
    sequence:
    - repeat:
        sequence:
        - service: light.turn_on
          target:
            entity_id: !input light_entity
          data:
            brightness_step_pct: !input brightness_step
            transition: !input transition_seconds
        - delay:
            milliseconds: !input delay_ms
        until:
        - condition: trigger
          id: dim_stop
mode: restart