ZHA - IKEA four button remote (Styrbar) for lights (E2001, E2002)

No worries. I modified transition variable in the blueprint to implement wanted behavior. Thanks for sharing once again.

Thanks, good blueprint. But I had a problem with my Eglo light. Turn off didn’t work. It set the light to 1% and “turn off” as for automation, nut in fact it was 1% light. Had to change the code above to

  - conditions:
      - "{{ command == 'off' }}"
      - "{{ cluster_id == 6 }}"
      - "{{ endpoint_id == 1 }}"
    sequence:
      - service: light.turn_off
        target: !input "light"

Seems from version 01/2024 it stopped working or can this be a firmware update ?

Ikea Styrbar 1.0.024 > 2.4.5

Cannot confirm that it’s not working. The firmware for my remote shows to be the most current one (0x02040005). Have you tried re-pairing?

Yes I have, multiple times. Connects and then it stops working
ScreenHunter 4477

I don’t want to sound rude but if you have not done so you might wanna try with a different battery. Due to the remote being unavailable this does not seem to have anything to do with this blueprint but is rather a general connection issue.

Did you manage to control colour with left and right? I have the same requirement. Just can’t work out how to do it with my limited knowledge.

I’m trying to get the left and right buttons to control colour temp. Sorry for the noob question. Where do I stick your yaml code? Is it the blueprint?

No. HA automations are just too complicated for me. My dream would be Apple-like UX but open source.
Anyways, I’m using this blueprint (Controller - IKEA E2001/E2002 STYRBAR Remote control | Awesome HA Blueprints) but it does not work well for color changing. In the end I don’t really have a need for manual color changing from the switch as I mostly rely on Adaptive lightning for automated color changing.

I haven’t cracked how to get a smooth transition with long presses, but I’m using the following scripts to use the single left/right presses to change the color temperature of my IKEA lights

(Make sure to change the entity names / max / min / step values to what makes sense in your case)

Script for the left button:

service: light.turn_on
target:
  entity_id: light.silicon_labs_ezsp_hall_lights_group
data_template:
  color_temp_kelvin: >-
    {% set suggested =
    states.light.silicon_labs_ezsp_hall_lights_group.attributes.color_temp_kelvin
    | default( 0, True) | int - 250 %} {% if suggested > 2250 %} {{ suggested }}
    {% else %} 2250 {% endif %}
  transition: 0.5

For the right button:

service: light.turn_on
target:
  entity_id: light.silicon_labs_ezsp_hall_lights_group
data_template:
  color_temp_kelvin: >-
    {% set suggested =
    states.light.silicon_labs_ezsp_hall_lights_group.attributes.color_temp_kelvin
    | default( 0, True) | int + 250 %} {% if suggested < 4000 %} {{ suggested }}
    {% else %} 4000 {% endif %}
  transition: 0.5
2 Likes

I’ve created an other automation for “Turn on” pressed event to make a custom event. It is working with the button and with the blueprint.

But unfortunately If I press and hold the left or right button, the ‘Turn on’ pressed event gets triggered. It is triggering my other automation. Can you help me pls?

There is sadly nothing I can do about that. That’s the default behavior of the IKEA remote.

1 Like

Is there a workaround with this left / right issue that also fires an “turn on” event? I wanted to use this remote to controll my covers. Wanted to mount it with 90° turned and then also controll the lights. But allways when I push left or right long then it also fires an “turn on” event.

Would it be possible to detect double tapping on the left or right button to trigger an event? If yes, how would I implement that in the blueprint?

This is currently not possible. You’d need a helper that stores which button was pressed last and when. Double tapping is certainly not on my todo list and I don’t intend to implement it because I want to keep this blueprint somewhat clean meaning no additional helpers and such.

I have created a system using Node Red that allows 3 lights to be controlled from any of 3 Styrbar remotes for 1-4 press operations currently controlling on/off brightness and color temperature using many things I found in the community to put it together.

The constant issue I hope someone can help with is that the Styrbar remotes seem to “attach” themselves to a bulb and have to be power cycled to get them back to working as I require, horrible WAF, and sometimes the bulbs refuse any commands from HA and must be reset and reconnected to Zigbee2mqtt.

Anyone experiencing this and have found a solution?

Thanks.

I found that randomly I was getting one of the 4 hold messages without getting or maybe nodered seeing the release message (timeing, sunspots, who knows) add a smidgen of code to timeout the held action and this has been solved.

Hi Malte

Thank you for sharing this fantastic blueprint. I am a new HA user, having migrated my TUYA setup to HA.

I managed to connect the button to ZHA and was able to use the blueprint to turn on/off the target entity lights however when i was holding the “on” button, the brightness of the lights did not change.

Is there any information i can provide?


UPDATE:

I guess i was using an older blueprint version downloaded from a youtube video… after uninstalling and reinstalling using the link in this thread, it is working as intended!

Thank you!

Hey all,

Sorry for being new and not being able to read all comments here, but is it not possible for me to have my IKEA bulbs in ZHA and thus controllable through my HA dashboard, WHILE pairing STYRBAR remote to each bulb? Do we have to add STYRBAR in ZHA?

Yes.
You can’t pair a remote with both a bulb and ZHA.