PLEG - Manual override action?/Polling?

I have a condition that turns off a light when it’s either 6AM or when the alarm is set to stay or is disarmed:

TurnOffLights
ArmedStay or AlarmReady or (ArmedNightStay and (ArmedNightStay;Timer6AM))

TurnOnLights
ArmedInstant or (ArmedNightStay and (Timer6AM; ArmedNightStay)) or ArmedAway or ArmedMaximum or AlarmActive or AlarmExitDelay

Now, say I have the alarm disarmed, so that TurnOffLights fires, and turns off the light. Then I manually run the action TurnOnLights.

The lights turn on and after a few minutes, TurnOffLights fires by itself.

My question is two-fold:

  • How could I make this able to be manually overridden?
  • What is the logic that is checking thse conditions? I thought it was event based, but it seems to be polling based.

You must have something else turning of the lights or your alarm status is bouncing.

Check your status report to see what is causing the off condition to fire.

[quote=“johnes, post:1, topic:190811”]I have a condition that turns off a light when it’s either 6AM or when the alarm is set to stay or is disarmed:

TurnOffLights
ArmedStay or AlarmReady or (ArmedNightStay and (ArmedNightStay;Timer6AM))

TurnOnLights
ArmedInstant or (ArmedNightStay and (Timer6AM; ArmedNightStay)) or ArmedAway or ArmedMaximum or AlarmActive or AlarmExitDelay

Now, say I have the alarm disarmed, so that TurnOffLights fires, and turns off the light. Then I manually run the action TurnOnLights.

The lights turn on and after a few minutes, TurnOffLights fires by itself.

My question is two-fold:

  • How could I make this able to be manually overridden?
  • What is the logic that is checking thse conditions? I thought it was event based, but it seems to be polling based.[/quote]

Yeah Posting a status report would be what is needed. Do you have repeat checked on?

OK, so here’s a better way to illustrate what is happening… So given the following scenario from status report. I walk in the bathroom, lights go on, and they dim to 50%. I decide to turn them down to 30%. Moments later, they go back up to 50%.

[code]
Schedule:
Name On Type Random On Delay Off After Type Off Time Random Off Delay
TimerMasterBathroom Self ReTrigger None Interval 00:04:30 None

Triggers
Name Description
MasterBathroomMotionTripped Whenever Master Bathroom Motion is armed and stops detecting motion
MasterBathroomShowerLightOn Whenever the Master Bathroom Shower Light is turned on

Conditions
Name Repeat Expression
TurnMasterBathroomLightOn No !MasterBathroomLightOn and MasterBathroomMotionTripped and (!MasterBathroomLightOn; MasterBathroomMotionTripped > 10)
KeepMasterBathroomLightOn No (MasterBathroomLightOn and MasterBathroomMotionTripped and (MasterBathroomLightOn; MasterBathroomMotionTripped)) or TurnMasterBathroomLightOn
TurnMasterBathroomLightOff No MasterBathroomLightOn and !TimerMasterBathroom and (MasterBathroomLightOn; !TimerMasterBathroom) and (!MasterBathroomLightOn; MasterBathroomLightOn > 10)

Actions for Condition: KeepMasterBathroomLightOn
Device Actions:
Immediate
Device Action Arguments
PLEG Upstairs StartTimer timerName=TimerMasterBathroom intervalTime=

Actions for Condition: TurnMasterBathroomLightOff
Device Actions:
Immediate
Device Action Arguments
Master Bathroom Light SetLoadLevelTarget newLoadlevelTarget=0

Actions for Condition: TurnMasterBathroomLightOn
Device Actions:
Immediate
Device Action Arguments
Master Bathroom Light SetLoadLevelTarget newLoadlevelTarget={(IsNight ? 50 : 100)}[/code]