Generate notification after alarm state detected for XX seconds

I have a freezer sitting in my garage that my wife and I have a habit of forgetting to close, which is problematic since we don’t spend all that much time just hanging out in the garage to notice this state of affairs. I have a plain old window/door magnetic z wave sensor that I have tied into HA, but I’m trying to come up with a way to have it only trip after the door has been open for a specified period of time. I could add a delay, but my understanding is that this would simply delay the notification rather than preventing it entirely if the state of alarm changes. My goal would be to have it never triggered unless the alarm is active for, say, 60 seconds.
Any thoughts? Below is what I have so far, but this is immediate (obviously).

  • action:
    • service: tts.google_say
      entity_id: media_player.living_room_home
      data:
      message: ‘Is this thing on’
      alias: freezerOpen
      condition: []
      id: ‘1517102725487’
      trigger:
    • above: ‘0’
      entity_id: sensor.alarm_level
      platform: numeric_state

Use the pre-formatted text option when posting

Anyways, what you want to accomplish is shown in the documentation


use the
for: 00:01:00

field to specify 1 minute of being in the state.