Türsensor statt Präsenzmelder

Für ein Gäste-WC sehen meine Automationen folgendermaßen aus:

Licht an beim 1. Öffnen der Tür
alias: Licht Gäste-WC AN
description: ""
triggers:
  - trigger: state
    entity_id:
      - binary_sensor.tur_gaste_wc
    to: "on"
conditions:
  - condition: state
    entity_id: switch.licht_gaste_wc
    state: "off"
actions:
  - action: switch.turn_on
    metadata: {}
    data: {}
    target:
      entity_id: switch.licht_gaste_wc
mode: single
Licht aus beim (2.) Schließen der Tür, falls es > 6 Sek. eingeschaltet war
alias: Licht Gäste-WC AUS
description: ""
triggers:
  - trigger: state
    entity_id:
      - binary_sensor.tur_gaste_wc
    to: "off"
conditions:
  - condition: state
    entity_id: switch.licht_gaste_wc
    for:
      hours: 0
      minutes: 0
      seconds: 6
    state: "on"
actions:
  - action: switch.turn_off
    metadata: {}
    data: {}
    target:
      entity_id: switch.licht_gaste_wc
mode: single