Hi everyone
I am trying to get my head around Private Booleans in RM.
I am currently migrating our House from STT (webCoRE) across to this excellent platform.
I do think that Private Boolean will simplify what I am trying to achieve but my brain just cant resolve.
So can anyone out there help?
What I am trying to do is differentiate between physical and programmatic switch activity in rules as opposed to device level.
For example, we have sidelights in all the bedrooms that are programmatically activated by motion in a room after a time threshold. Physically switching off the sidelight then activates a SleepMode virtual switch which prevents motion activating lights in that room. Next morning physically turning on the sidelights turns off the SleepMode virtual switch thus enabling motion-activated lighting again.
(When I get my head around Private Booleans I am sure I will be able to remove the SleepMode virtual switch to prevent the Motion-activated lights).
I have got this working by using the physical switch (Sidelight_Dev) & 2 separate virtual switches; 1 for programmatically turning on/off the physical switch (Sidelight_Prog) which also follows the physical switch and another acting as a Flag/Guard (Sidelight_Flag). The Sidelight_Flag is enabled to Auto off in 5 secs which gives these rules time to fire 
Then I have defined 5 RM rules to implement.
- Sidelight_Prog ON Triggered Rule
- Sidelight_Prog OFF Triggered Rule
- Sidelight_Flag ON Triggered Rule
- Sidelight_Dev ON Triggered Rule
- Sidelight_Dev OFF Triggered Rule
This all means that in separate rules I can test for the state of the Sidelight_Flag to determine if the switch has been physically used; OFF = physical, ON = programmatic.
Here is an example -
Are you still with me?
Can this be implemented with a Private Boolean to remove the need for the Sidelight_Flag virtual switch?
I would appreciate your inputs -
