I my grand scheme to move my old Stargate X10 system to modern protocols and controls I have finally replicated the last stumbling block in WebCore. How to deal with manual switch changes when you can’t rely on the programmatic vs. manual setting for a switch device.
In this piston I have 3 distinct sections, one for manual operations, one for programmatic operations, and the last for the room to be unoccupied. Flags, time of day, etc can trigger the programmatic and a call to a room scene piston to keep the logic of the piston constrained. With that said I have a a single switch for the room, a keypad with 4 keys mapped to setting the scenes and resetting back to programmatic settings.
Below is the primary piston and the room scene piston: