Mimicking status


#1

I want switch B to “inherit” the status/state of switch A. Basically, if I turn switch A on, switch B turns on and viceversa. I’m able to do it with a couple of conditions and actions, but is there a way to basically do :

on SwitchA status change

SwitchB.state=SwitchA.state


#2
if any of switch 1 or switch 2 changes
 with switch 1 and switch 2
   set switch to $currenteventvalue
 end with
end if