Esp32 in deep sleep garding two doors

I want to keep an eye on two doors, with a battery-powered esp32. There are switches on the doors that are closed when the door is closed.
These are the settings. It only works if the door is open long enough. If the door is closed again before the ESP32 wakes up, I don’t see anything. Who has a solution?

deepsleep1

Any particular reason why you think it’s better to upload a blurry picture of text instead of text as it is?

Excuse me, I don’t mean bad.

deep_sleep:
run_duration: 30s
sleep_duration: 120min
esp32_ext1_wakeup:
pins: [14, 15]
mode: ANY_HIGH
wakeup_pin_mode: INVERT_WAKEUP

binary_sensor:

  • platform: status
    name: “ESP32_4 Status”

  • platform: gpio
    filters:

    • delayed_off: 20ms
      pin:
      number: GPIO14
      mode: INPUT_PULLUP
      inverted: False
      name: “door14”
      device_class: door
  • platform: gpio
    filters:

    • delayed_off: 20ms
      pin:
      number: GPIO15
      mode: INPUT_PULLUP
      inverted: False
      name: “door15”
      device_class: door