Help with Webcore creating virtual button to toggle security system

Hi everyone,

First post and I’m definitely new to Smartthings and Webcore. I’m trying to create a virtual toggle button to turn my ‘alarm system’ on/off via phone when I leave. I have trouble with my phone presence (Pixel 1) so prefer at least a manual button to turn off/on when I leave.

My alarm sensors are 3 Visonic contact sensors that work fine. I tested the toggle button and it works for a simple command like turning on lights. But for some reason my piston isn’t working. Any advice is greatly appreciated…

Thank you very much - that worked like a charm!! It has to be “IF switch IS on” as you wrote…can’t be “IF switch CHANGES TO” on. I can now manually control this ‘security system,’ which is great!