Cover position - broad link

Hi, I’ve been trying for a good few days to get cover position, closed and open.

Im using a broadlink rm pro to transmit to the blind, I was wanting to use xiaomi door/window sensors via Deconz to get the open/closed state. Any help would be appreciated, I can’t seem to get my head around it. I have read the cover docs and done multiple searches of the forum but can’t make it work.

cover:
  - platform: template
    covers:
      master:
        friendly_name: "Master Blinds"
        open_cover:
          service: broadlink.send
          data:
            host: 192.********
            packet:
              - "sjsyAAkKCAoRCggKCAoJCggKEQoJChEKEQoICggKEQoRChELCAoICggKCAoICgkKCQoRAAFBAAAAAAAA"
        close_cover:
          service: broadlink.send
          data:
            host: 192.******
            packet:
              - "skMyAAkKCAoRCggKCAoICggKEQoIChEKEQoJCggKEQoRChELCAoICggKCAoICggKEQoIAAFCAAAAAAAA"
        stop_cover:
          service: broadlink.send
          data:
            host: 192.*******
            packet:
              - "sjwyAAoKCQkRCgkKCQoJCggKEQoIChEKEQoJCgkKEQoRChEKCAoJCgkKCQoJCQkJEQoRAAE4AAAAAAAA" 
    value_template: >-
     {% if is_state('sensor.window_door', 'closed') %}
     mdi:blinds-closed
     {% else %}
      mdi:blinds
      {% endif %}
1 Like