ZHA - IKEA open/close switch for covers (e.g KADRILJ, FYRTUR)

This is a blueprint to control covers like the IKEA KADRILJ/FYRTUR roller blinders with the IKEA open/close switch.
It opens, closes and stops the cover like the original button.
It could works with any other covers supporting the open/close/stop commands.

Ikea open/close remote pic

blueprint:
  name: Cover control with Tradfri open/close remote
  description: |
    Control a cover with an Ikea Tradfri open/close button remote over ZHA

    Short press on ☼ button will open the cover.
    Short press on ☰ button will close the cover.
    Long press on ☼ or ☰  will stop the cover.
  domain: automation
  input:
    remote:
      name: Remote
      description: "IKEA open/close remote to use"
      selector:
        device:
          integration: zha
          manufacturer: "IKEA of Sweden"
          model: "TRADFRI open/close remote"
    cover:
      name: Cover
      description: The cover to control
      selector:
        target:
          entity:
            domain: cover
trigger:
- platform: event
  event_type: zha_event
  event_data:
    device_id: !input remote
action:
- choose:
  - conditions:
    - '{{ trigger.event.data.command == "up_open" }}'
    sequence:
    - service: cover.open_cover
      target: !input cover
  - conditions:
    - '{{ trigger.event.data.command == "down_close" }}'
    sequence:
    - service: cover.close_cover
      target: !input cover
  - conditions:
    - '{{ trigger.event.data.command in ("stop", "stop_opening", "stop_closing") }}'
    sequence:
    - service: cover.stop_cover
      target: !input cover
mode: restart
7 Likes

I had to change the manufacturer to “IKEA of Sweden” to be able to select the remote. Then it worked like a charm. Thank you very much!

Whether I end up using your blueprint or make my own with other tweaks, THANK YOU for the correct manufacturer string for the remote. How on earth did you find that unprintable character?

1 Like

Sniffing then I figure I was not alone reading the quirks code here :

2 Likes

Can this be made to work with Zigbee2MTQQ? I have not been able to find any information on this.

I tried your code with ZHA and my IKEA blinds, but couldn’t get them to react. Now I am on Z2M on my test server.

Thanks!

Thanks for this. I was using another one that didn’t quite work and it was making my wife angry. Since the one I was using only had the “stop” part missing, I added that to it. It would be helpful to not have so many of these. :frowning:

Is there a way to modify this to allow it to only open to a certain position? I know you can in typical automations, but not sure if you can with this blueprint.

How did you change this? I think I need to do that as well, I can’t select the remote now and I believe because it is also reporting as ‘IKEA of Sweden’ as manufacturer

I believe it was “manufacturer: “\x02KE”” in the blueprint, that needed to be changed.
I have moved to Zigbee2MQTT in the meantime, so I can’t even verify. Sorry.

I get this error:

unknown tag !<!input> at line 36, column 29:
device_id: !input ‘remote’
^

Help pease!

Is anyone here able to port this to Z2M?

I want to use the normal functions for the remote like stopping within when button is pressed again.

A double Tap to open 50% would be the cherry on the gelato

:wink:

Thanks

Just a quick thank you to @seblu for this. I moved the blinds over to ZHA from Deconz after repeated stability issues. The blinds worked better right away, and I had no issues pairing the remote, but I couldn’t figure out how to capture the remote events. This worked perfectly out of the box and made my day.

Thank you!

does this blueprint still works?

Yes, since I setup my remote using this I haven’t touched the configuration or anything to do with it. It’s been working perfectly.

I can’t recall if it was this blueprint or another one that I was trying, but you may have to edit it slightly so that you can select your cover (perhaps my covers are in a cover group?). Sorry can’t quite recall and can’t login to my instance from where I am right now.

Anyone would be kind enough to let me know how they integrated their Fyrtur in HA?
I’ve tried to include it directly in ZHA with no success, as a matter of fact, now my button doesn’t talk to my cover any more. I may need to link back to the Fyrtur repeater or something. Or are you guys using the Ikea hub?

I just set one up. Im using zha, go to the zha integration and hit add device. Then on your blinds press both the buttons at the same time until a white light starts pulsing. I had to try a couple times, and make sure you have a router devices reasonably close by, but it worked fine.

Out of the box the remote, blinds, and the usb repeater are all paired to work together independant of any actual system. But when you’re using home assistant you will instead be pairing each of these devices to HA instead of to each other.

Then you use a blue print or automation to make the button work again.

1 Like

Thanks, that helped a lot. I am not sure I was doing wrong before.
Partial success. I was able to connect the remote switch with no issues and it seems to be working, but the Fyrtur cover itself, although it was recognized right away cannot be controlled and does not report battery level. More digging to do.

Hi @nicesocks , I am a bit new to using Blueprints so would appreciate some help.
I connected 2 blinds for 2 windows and a single remote all independently to HA. As expected, now the remote can’t control the blinds until I create an automation. See photo attached, using the blueprint as is, I can’t find the remote in the drop down, therefore: How do I go about changing the “manufacturer” in the “blueprint” to be “IKEA of Sweden”? so that I can use the Blueprint as defined?
Also, using the automation, how do you ensure that the blinds close to the exact position at the bottom of the window vs. open all the way down?

Having exactly the same issue, help would be much appriciated :slight_smile:

@merlinacious & @stefan.pettersson79 I created a github Gist for the folks who need the manufacturer to be “IKEA of Sweden” with the same blueprint:

Hope that helps, cheers

1 Like