Blueprint: IKEA Styrbar (E2001/E2002) - control Multiple Light/Switch Entities (Zigbee2MQTT v2.0 Compatible)
This Blueprint is designed for the IKEA E2001/E2002 Styrbar switch remote, tailored to work seamlessly with Zigbee2MQTT v2.0 Actions. It enables you to control multiple lights/switches (on/off and brightness control, if supported by light) with a single Styrbar switch remote.
Features:
- Turn lights/switches on: Short press the top button (large bulb).
- Turn lights/switches off: Long press the bottom button (small bulb).
- Increase brightness: Hold the top button (large bulb).
- Decrease brightness: Hold the bottom button(small bulb).
- Customizable Actions: Assign your own Actions for left/right arrow button hold/release Actions.
- Target switching delay: Adjust the delay after selecting different target Entities.
- Force brightness: Enable this option and set the brightness level in order to have a specific brightness whenever you turn the light on, instead of the last set brightness.
- Brightness change delay: Delay after each brightness level change.
- Brightness repeat count: Maximum number of brightness level changes per Action.
- Brightness step: Brightness change percentage.
- Zigbee2MQTT 2.0.0+ Compatibility: Fully compatible with the latest version; no need to enable the legacy action sensor.
- Single light/switch or Group control: Works with any Light/Switch Entity you select.
Requirements:
- IKEA E2001/E2002 Styrbar remote control integrated with Zigbee2MQTT.
- A single light/switch or group of lights/switches configured in Zigbee2MQTT.
- Home Assistant with MQTT integration enabled.
Future Improvements:
- Bug fixes?
- I’ll probably remove Target switching delay option.
- Might be able to use Text Helper to save selected light/switch Device ID instead of using it’s index number which will avoid controlling the wrong light/switch if you modify light/switch target Entity list.
How to Use:
- Import the blueprint using the link below.
- Create one Number Helpers for each Styrbar remote (details below).
- Configure the required inputs:
- Choose the Styrbar remote control device.
- Select the Light/Switch Entities (single or group).
- Select the Light/Switch Number Helper matching the Styrbar remote.
- Configure the optional inputs:
- Assign Actions to Left/Right Arrow button long press/release clicks.
- Adjust additional settings like target switching delay, force brightness level, brightness change delay and step size, and maximum brightness change repeat count.
- Save and activate the Automation.
- Enjoy controlling your lights and switches with the Styrbar remote!
Number Helper Creation:
- Icon: mdi:numeric
- Minimum value: 0
- Maximum value: 127 (should be sufficient)
- Display mode: Input field
- Step size: 1
- Unit of measurement: Leave blank
Create one Number Helper per Styrbar remote as it will hold the index of the currently selected Light/Switch entity.
This is my first ever Blueprint, so please go easy on me. Feedback and suggestions are welcome.
This Blueprint is based on Z2M - IKEA STYRBAR remote for multiple lights done by @Spanching. I just had an idea to do away with multiple Automations requirement and wanted support for switches.
Share and Enjoy!