About
A reliable and flexible blueprint for the IKEA STYRBAR (square) remote (Remote Control N2) using ZHA integration.
This setup gives you smooth brightness control and the ability to map custom color presets to the LEFT and RIGHT buttons โ ideal for users who want a simple yet powerful lighting control experience.
Designed for instant dimming response, no delay on release, and easy RGB palette cycling โ perfect for quick, seamless lighting control.
What it does
- UP/DOWN short press: turn lights on or off
- UP/DOWN hold: adjust brightness smoothly while holding
- LEFT/RIGHT short press: cycle through your own RGB color presets (up to six, fully customizable)
- LEFT/RIGHT long press: assign custom actions (optional)
Get it now
Inputs
| Input | Description |
|---|---|
| Remote | Your IKEA STYRBAR device paired via ZHA |
| Light(s) | The light entity (or group) to control |
| Color index helper (1โ6) | input_number helper that stores which palette color is active. Create one with min=1, max=6, step=1 |
| 6 RGB Palette Colors | Choose up to six preset colors to cycle through with LEFT/RIGHT |
| Tick interval (ms) | Time between brightness steps while holding (smaller = faster) |
| Step size (% per tick) | How much brightness changes each tick while holding |
| Left/Right long press (optional) | Assign your own custom actions for long press |
Example setup
Helper (for color cycling on LEFT-RIGHT buttons):
Go to
Settings โ Devices & Services โ Helpers โ Create Helper โ Number ,
then set:
- Min: 1
- Max: 6
- Step: 1
- Name: STYRBAR Color Index(Home Assistant will create: input_number.styrbar_color_index)
Tested with
| Device / Platform | Status |
|---|---|
| IKEA STYRBAR Remote Control N2 (ZHA integration) | |
| Zigbee Coordinator: SONOFF ZBDongle-P (ZHA) | |
| Light entities: Philips Hue, WIZ, Yeelight (via Matter and Zigbee) | |
| Home Assistant 2025.10.0+ | |
| Automation Mode: Restart-safe dimming with instant stop on release |
Changelog
*v1.1 โ Updated for Home Assistant 2024.10+"
- Converted to modern YAML syntax for full HA 2024.10+ compatibility
- Moved all global variables to scoped - variables: actions (no legacy variables: block)
- Replaced all condition: template / value_template: with compact modern conditions: โ{{ โฆ }}โ expressions
- Fixed repeat: until: condition syntax (uses valid condition: template to prevent setup errors)
- Code cleanup for improved readability and future-proofing
- No behavioral changes โ all functions (dimming, color cycling, long-press actions) remain identical
v1.0
- Initial public release
- Stable fast dimming with immediate stop on release
- 6-color palette cycling with wrap-around
- Optional long-press actions for LEFT/RIGHT