๐Ÿ’ก ZHA โ€“ IKEA STYRBAR all Controls + 6 Custom Color Palette

:receipt: 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.


:wrench: 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)

:receipt: Get it now

Import Blueprint to My Home Assistant


:gear: 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

:jigsaw: 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)

:test_tube: Tested with

Device / Platform Status
IKEA STYRBAR Remote Control N2 (ZHA integration) :white_check_mark: Fully functional
Zigbee Coordinator: SONOFF ZBDongle-P (ZHA) :white_check_mark: Tested
Light entities: Philips Hue, WIZ, Yeelight (via Matter and Zigbee) :white_check_mark: Working
Home Assistant 2025.10.0+ :white_check_mark: Compatible
Automation Mode: Restart-safe dimming with instant stop on release :white_check_mark: Stable

:receipt: 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
2 Likes

Heya,
first of all - great blueprint, didnt find another one that would be able to suit my usecase and was close to just build a oneoff automation - but this one just works for the most part.

However: Its fixed RGB only and i kinda have to get around that by using the Longpress Left/Right for custom scenes that have some color temps preset. (RGB-White does not translate to actual white on most lights, and Color temp is impossible this way either way)

That gets me to the point: it might be a viable option to use scenes instead of RGB values, wouldnt it? This way one can make scenes for the colors they like and cycle through them - which btw works very well and i really do like the Color Crycling.

Anyways - i prolly wont try to implement it myself as the workaround works for now, but i just wanted to leave the idea here ^^

Happy Holidays

This was what i was looking for. Thanks :slight_smile:

Only thing i would like is when changing color is the brightness holds its brightness :slight_smile: