1) Give a description of the problem
I’m trying some new coding tricks, and I was hoping to use this choice statement to have a virtual switch turn on an actual switch. This would make my piston a lot smaller and quicker, and easier to say with Alexa. “Office Light” is the virtual switch, and “Fan Office Light” is the actual switch
[Office Light : switch] == ‘on’ ? [Fan Office Light : switch] ‘on’ : [Fan Office Light : switch] ‘off’
I’m not sure how to link the command to the switch. Is this possible?
2) What is the expected behaviour?
The change in the virtual switch should change the actual switch
3) What is happening/not happening?
I know the ‘’ marks act like quotations, but I’ve tried curly and square brackets and it’s not working.
**4) Post a Green Snapshot of the piston![image|45x37]