Door not closing with NFC Tag Automation

Hey there,
I created a new automation in HA, the trigger is the scanning of a NFC tag, if the garage door is open it should close.
The automation works, but the garage door won’t close. I hear the beep but it won’t shut. If I use the buttons in HA the door closes as it should. Also the other way around, opening the garage if closed when scanning the tag, works perfectly.

I also have an automation with an NFC tag. My automation calls a script that toggles the door.

sequence:
  - choose:
      - conditions:
          - condition: state
            entity_id: cover.konnected_garage_door
            state: closed
            alias: Is closed
        sequence:
          - action: cover.open_cover
            metadata: {}
            data: {}
            target:
              entity_id: cover.konnected_garage_door
            alias: Open
      - conditions:
          - condition: state
            entity_id: cover.konnected_garage_door
            state: open
            alias: Is open
        sequence:
          - action: cover.close_cover
            metadata: {}
            data: {}
            target:
              entity_id: cover.konnected_garage_door
            alias: Close
alias: "Garage Door: Toggle cover"
description: ""
icon: mdi:garage

This works reliably for me for both opening and closing the door.

What does your automation look like?

I use this really basic automation:

alias: Tag Garage Door is Open
description: “”
triggers:
  - trigger: tag
    tag_id: e491afc8-35fd-462c-8695-31ad6f447712
conditions:
  - condition: device
    device_id: c1f7ab3436dcb794b0a1b20fdb8baaaf
    domain: cover
    entity_id: 6f71cf99338e0edbd567dcaf8ecb9c3f
    type: is_open
actions:
  - action: cover.close_cover
    metadata: {}
    target:
      entity_id: cover.konnected_52394c_garage_door
    data: {}
    mode: single

Try changing your condition to a state condition:

conditions:
  - condition: state
    entity_id: cover.konnected_52394c_garage_door
    state: open
1 Like

I don’t think the state was the problem, since the automation worked, it just made the warning sounds before closing but never closed.

I used @drothenberger’s script, and so far it works like a charm!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.