Automation: Send message and revoke

Hi there,
trying to set up this automation but with the new GUI configurator.

I want a notification on my smartphone if the windows are open for e.g. 30 minutes (at the moment 10 s for testing) and revoke the message if the window has been closed.


I receive the message on my smartphone after 10 s. So the first parts seems to work. But the message is not revoked after closing the window.

Any idea how to solve this?