Automation for Ratgdo

I am trying to create an automation that if its after 9:30 pm and my garage door has been open for more than 30 min, hen close the garage door. This does not seem to work. When I run the automation manually it will close the door, so it likely has to do with how I test the cover state.

Appreciate the help.

alias: Garage Door Open - Mark’s
description: ""
trigger:
  - platform: state
    entity_id:
      - cover.ratgdo_mark_door
    to: open
    for:
      hours: 0
      minutes: 30
      seconds: 0
condition:
  - condition: time
    before: "23:59:00"
    after: "21:30:00"
action:
  - service: notify.pushover
    data:
      message: Mark's Garage Door is Open
      title: Mark’s Garage Door is Open
      target: iphoneX
  - service: cover.close_cover
    metadata: {}
    data: {}
    target:
      device_id: 9c711d42908828ea852e8cf5241a6286
mode: single

You get anywhere with this? I’m having same issue where I can’t get it to trigger but running the automation manually, it’ll close the door.

I noticed it worked fine when using MQTT vs ESPHome. I may swap back.

No i have never gotten it to work. I am using mqtt. If you get it to work please send me a message.