Run a script... shell command?

no, not really. I just wanted to see how I can wire a wifi switch and control it via HA - if that’s possible.

I used a sonoff sv set as a dry contact switch. I already had a garage door remote control setup for it so I just piggybacked to the same terminal on the alarm board which just closed the circuit and triggers the on/off.

Alright thank you