deCONZ - IKEA TRADFRI open/close including press and hold

I wanted to be able to control my FYRTUR shades in a similar fashion to the Ikea default, should also work for KADRILJ. I took @psychozz’s “deCONZ - IKEA Trådfri on/off switch (incl dimmer)” and adjusted the variables to suit the open/close switch and stripped out the brightness adjustment stuff.

blueprint:
  name: deCONZ - IKEA Tradfri open/close switch
  description: |
    "Control Furtur roller blind with IKEA Tradfri open/close switch
    
    Select the Tradfri remote and your blinds.
    You can open or close the blinds all the way with a single click, hold the button down to adjust them, or hit the opposing button while in motion to stop them."
  domain: automation
  input:
    remote:
      name: Remote
      description: The remote that will control the shades
      selector:
        device:
          integration: deconz
          manufacturer: 'IKEA of Sweden'
          model: 'TRADFRI open/close remote'
    cover:
      name: Cover
      description: The cover that will be controlled
      selector:
        target:
          entity:
            domain: cover

mode: restart

trigger:
- platform: event
  event_type: deconz_event
  event_data:
    device_id: !input 'remote'

action:
- variables:
    event: "{{ trigger.event.data.event }}"

- choose:
  - conditions:
    - "{{ event == 1002 }}"
    sequence:
    - service: cover.open_cover
      target: !input 'cover'
  - conditions:
    - "{{ event == 2002 }}"
    sequence:
    - service: cover.close_cover
      target: !input 'cover'
  - conditions:
    - "{{ event == 1003 }}"
    sequence:
    - service: cover.stop_cover
      target: !input 'cover'
  - conditions:
    - "{{ event == 2003 }}"
    sequence:
    - service: cover.stop_cover
      target: !input 'cover'
4 Likes

Do you know what to change to make this run with Z2M?

Sorry, I do not as I am not using Z2M.

how do you tell the blind what is 100% closed.

I got all the blind and remote added to DeConZ and can be seen in HA, but is there a setting in the VNC on Deconz I need to tell it what closed 100% is?

Hmm, I didn’t have to do anything special around this, HA knows nonetheless:

I use Slider Button Card to control them in Lovelace:

and it automatically knew the %.

Just want to say a BIG THANK YOU!
Integrating all my cover blinds to deConz and HA thanks to this Blueprint!

1 Like

I have used this blueprint without any prioblems, but recently the blind only opens/closeds a few centimeters at a time. Then stops. Anyone know what might be wrong? It works if I create an automation manually for open/close.

I had the same question and after reading one of the 6 manuals (!!) there is well hidden the solution. :wink:

You ‘tell’ the cover itself by manual steering the cover to the wanted 100% closing followed by double press the lowest button on the cover itself. By that the cover is ‘programmed’. This position is used in displaying the relative position of the cover.

1 Like

I’m not sure this is related to the blueprint, I have this same problem occasionally.