Ok, so the sequence seems to have solved my issues… so:
_TurnOnFoyerLightFromPin FrontDoorUnlockedByPin1 AND !FoyerLightsOn AND (!FoyerLightsOn;FrontDoorUnlockedByPin1)
worked, which reads:
Run this action if The front door is unlocked by any pin, and the foyer lights are NOT on and the foyer lights were turned off BEFORE the front door was unlocked by any pin.
My next fix will be to put a condition and action which turns off my multiswitch if the light is turned off manually and the multiswitch button is on.
So, of you @erkme73, I think this will do what you want with a few modifications. I think if you use a Virtual Switch or MultiSwitch, you will have better luck.
VS is Virtual Switch, or you could do what I do and use Multiswitch, which would give you 8 Virtual Switches to do such logic with.
Triggers
LightOn Light is turned on
ManualOff VS is turned on
Conditions
KillAutoOff (!LightOn; LightOn < 10)
ClearVS !LightOn
AutoOff LightOn and (LightOn; Now > 10:00) and !ManualOff
Actions
KillAutoIff Turn VS on
ClearVS Turn VS off
AutoOff Turn Light off
Basicallly this says When you turn the light Off and back on within 10 seconds (note that if it is already off, you’ll have to do On, Off, then On again), it will not automatically turn off the light.
If you Just turn the light on (with more than 10 seconds between it being turned off), the timer will kill the light after 10 minutes.
Note that the above will not work without Instant Status switches (that I know of). I think there is some kind of hack to work with GE switches. If course if you do all of this from the Vera Interface, it will work regardless of instant status (so you can test).
I am about to test this for you now using a new PLEG I am setting up for testing logic like this. I will report back if it works.