Set alarm based on time and state

Hi All -

I’m trying to schedule my alarm (DSC) to be set to “Stay” mode at a certain time every night, but only if the current Arm state is “Ready.” The reasoning is my wife and I frequently fall asleep before setting the alarm, and I’d like the Vera to set it for us in those cases. However, if we’re out of town and have set the alarm to “Away,” I don’t want it being switched to “Stay” every night.

I was trying to do this using PLEG, but it seemed to treat the alarm state as a trigger rather than a condition - every time it defaulted to “Ready” (as in closing a door or window), it would immediately arm itself as “Stay.”

Any advice?

Thanks!

  • Alex

You should be able to solve the issue in PLEG by using a sequence expression to ensure the condition only fires if the schedule happens after the alarm is in Ready state. This is the rough idea. I don’t use the same alarm so it may not be quite correct:

Triggers
AlarmReady Alarm is Ready
Away Alarm in Away state

Schedules
AlarmSetTime On: Daily, whatever time, Off: Interval, 1 minute

Conditions
SetAlarm !Away and AlarmReady and AlarmSetTime and (AlarmReady; AlarmSetTime)

Worked great, thanks!