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

Tags: #<Tag:0x00007f328596a7a8> #<Tag:0x00007f328596a690> #<Tag:0x00007f328596a578> #<Tag:0x00007f328596a3e8>

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!