Using COVER in an Automation correctly

I have this in my configuration.yaml:

cover:
  - platform: template
    covers:
      finger_print_garage_door_status_2:
        device_class: garage
        friendly_name: "Garage Door"
        position_template: "{{ states('sensor.finger_print_garage_door_status_2') }}"
        open_cover:
          - condition: state
            entity_id: sensor.finger_print_garage_door_status_2
            state: "off"
          - action: switch.turn_on
            target:
              entity_id: switch.finger_print_garage_door_status_2
        close_cover:
          - condition: state
            entity_id: sensor.finger_print_garage_door_status_2
            state: "on"
          - action: switch.turn_off
            target:
              entity_id: switch.finger_print_garage_door_status_2
        icon_template: >-
          {% if states('sensor.finger_print_garage_door_status_2')|float > 0 %}
            mdi:garage-open
          {% else %}
            mdi:garage
          {% endif %}

And this in an automation:

alias: Finger Print - Toggle Garage Door 2
description: Finger Print Sensor - Toggle Garage Door 2
triggers:
  - entity_id: sensor.fingerprint_sensor_garage_fingerprint_state
    to: Authorized finger
    trigger: state
conditions: []
actions:
  - action: cover.close
    metadata: {}
    data: {}
    target:
      entity_id: cover.finger_print_garage_door_status_2
  - delay: "00:00:05"
  - data:
      title: Finger Print Sensor Activated !!!
      message: >-
        Warning - The Garage Door(s) were just Activated @ {{
        as_timestamp(now()) | timestamp_custom('%H:%M:%S') }}.
    action: script.notify_garage_controlled_by_fingerprint
  - data:
      message: >-
        Garage Control Alert: {{ states('sensor.fingerprint_last_finger_name')
        }}'s fingerprint was used to put the garage in '{{
        states('cover.finger_print_garage_door_status_2') }}' status.
      data:
        push:
          sound:
            name: default
            critical: 1
            volume: 1
    action: script.notify_users
mode: single

BUT when I run the automation, I get an error:
HA Capture

Can anyone identify my problem?

The action is cover.close_cover.

Cover - Control Actions

1 Like

BIG head slap.

Been looking at this for hours.

Thanks.