Getting Cover state on blueprint

Hello, I’ve been strugling with an issue on my blueprint and to be honest I don’t know what I’m doing wrong.

I have the following input:

    cover:
      name: Cover
      description: Controlled Cover
      selector:
        entity:
          filter:
            domain: cover

Which I’m using on the following action:

  - choose:
    - conditions:
        - condition: trigger
          id: "off"
      sequence:
        - if:
            - condition: or
              conditions:
                - condition: state
                  entity_id: !input cover
                  state: closing
                - condition: state
                  entity_id: !input cover
                  state: opening
          then:
            - service: cover.stop_cover
              target: !input cover
              data: {}
          else:
            - service: cover.close_cover
              target: !input cover
              data: {}

When I use this automation I have the following error :slight_smile:

Message malformed: expected a dictionary for dictionary value @ data['action'][0]['choose'][0]['sequence'][0]['then'][0]['target']

Not seeing what I’m doing wrong here to be honest. Maybe someone can help me out :slight_smile:

Thank you so much!

You are using an entity selector, and plugging it into a target service. Use a target selector and it will work.

Thank you so much! It fixed my issue :slight_smile:

1 Like