SHM & virtual momentary switch

Just use a routine. :sunglasses: See the FAQ (this is a clickable link)

BTW, did you really use a “momentary” switch rather than a binary one? If so you are going to need two switches, one to arm and one to disarm.

I’m not feeling well this morning, so other people can answer any follow on questions if that wasn’t clear to you.