[OBSOLETE] Ridiculously Simple Virtual Garage Door

Does this require a z-wave switch?

I used a regular wifi switch for this setup. Every time, I opened/closed garage door, I had to turn off that wifi switch to make it work next time.

Please guide me where I am wrong.
Thank you