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: "\x02KE"
          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
4 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!