Loop until an event state changes

Hello,
So I have this automation, that checks if the wardrobe door is open.
If it is open and it is before bed time there is a TTS message.
The message is said only once, but I want it to loop every 3 seconds, until the state of the door sensor changes to close.

Will appreciate any help with this

Loop timer

image