How to delay a contact sensor using a simulated sensor

Can someone please help me troubleshoot this code? I want it to open the simulated sensor 10 seconds after the real sensor is opened and then close it again when the real sensor is closed.

I monitor the simulated sensor when the mode it set to Armed Away and the security system is only triggered when the simulated sensor is opened.

However the delayed portion doesnt seem to be working.

Thanks!

It will work if you change “is open” to “changes to open”.