Node-Red: Periodic notifications while door open

I’d like to get periodic notifications while a door is open. Ideally with an increasing backoff (e.g. after 5min, 15min, 60min, 2hrs).

Any suggestions for implementing in Node-Red?

I was thinking

  delay 5min -> get state (halt if closed) -> notify ->
  delay 15min -> get state (halt if closed) -> notify ->
  ...

but it seems like a lot duplication and might get false notifications if the door closes and re-opens in the middle of a delay.

Why not use the alert component?

@metbril that is perfect thanks!

What is the Alert Component?

Thanks Jim, I thought he was relating it to a node red component.