Question on my first automation

Hi everyone, new to Home Assistant and was wondering what the best way to do something like this. I have a group of window/door sensors on my refrigerator/freezer doors. Basically if any of the sensors are open for more than 5 mins I want a notification sent to my notification group. I am not getting any notifications even when testing and leaving one of the doors open. This is my first automation with multiple entities so I am wondering if I did this right based on what I found in the documentation.

`alias: Fridge/Freezer Open (5 min)
description: ""
trigger:
  - platform: state
    entity_id:
      - binary_sensor.refrigerator_left_contact
      - binary_sensor.stand_up_freezer_contact
      - binary_sensor.refrigerator_right_contact
      - binary_sensor.upstairs_freezer_contact
      - binary_sensor.downstairs_freezer_contact
      - binary_sensor.downstairs_refrigerator_contact
    from: "off"
    to: "on"
    for:
      hours: 0
      minutes: 5
      seconds: 0
condition: []
action:
  - service: notify.notificationgroup
    data:
      message: The {{ trigger.to_state.name }} has been open for 5 minutes!
      title: Fridge/Freezer Alert
      data:
        color: Red
        notification_icon: mdi:fridge-alert
        push:
          interruption-level: critical
mode: single
1 Like

Post the automation’s latest trace.

That’s a Trace Timeline (a trace can be downloaded as a text file containing all the details about the automation’s operations) but it will do. It shows the automation finished executing its one action.

For testing purposes, replace all of this:

  - service: notify.notificationgroup
    data:
      message: The {{ trigger.to_state.name }} has been open for 5 minutes!
      title: Fridge/Freezer Alert
      data:
        color: Red
        notification_icon: mdi:fridge-alert
        push:
          interruption-level: critical

with this:

  - service: notify.persistent_notification
    data:
      message: 'The {{ trigger.to_state.name }} has been open for 5 minutes!'
      title: Fridge/Freezer Alert

A persistent notification appears in Home Assistant’s UI (the bell icon in the lower left corner).