Z2M IKEA Roller Blind Remote

This is a modification of another blueprint for ZHA, ZHA IKEA Roller Blind Remote, but instead for use with Zigbee2MQTT

blueprint:
  name: Z2M IKEA Open/Close Remote
  description: |
    'Control your roller blind with an IKEA 2 button remote (the square ones).
    this is the remote that's been delivered by the "Fytur" and " Kadrilj"
    roller blinds.'
  domain: automation
  input:
    remote:
      name: Remote
      description: IKEA remote to use
      selector:
        entity:
          domain: sensor
    cover:
      name: Roller Blind
      description: Roller blind to control
      selector:
        target:
          entity:
            domain: cover
mode: single
max_exceeded: silent
trigger:
  - platform: state
    entity_id: !input remote
action:
  - variables:
      command: "{{ trigger.to_state.state }}"
  - choose:
      - conditions:
          - condition: template
            value_template: "{{ command == 'open' }}"
        sequence:
          - service: cover.open_cover
            target: !input cover
      - conditions:
          - condition: template
            value_template: "{{ command == 'close' }}"
        sequence:
          - service: cover.close_cover
            target: !input cover

It does require the use of the action event instead of the click event, as described here: https://www.zigbee2mqtt.io/devices/E1766.html#ikea-e1766

I couldn’t figure out how to limit down the selectors for the sensor. Whenever I added integration: mqtt to the remote selector, the automation did not want to execute.

2 Likes

@dpmpc meant to tag you since you initially asked about it,

Ok, thank you very much.

I’ve tried you modification and it’s working like a charm with zigbee2mqtt.

1 Like

I can use this to make the blinds go up, but not down, and I have disabled legacy in z2m