You could setup a pleg timer to start when the door opens run the siren, stop then use the second timer to start the alarm again. With each timer cancelled by the door closing.
This is the closest scenario to what you describe. Really the only difference is that you’d set the “Cancel” action to be triggered by the door closing instead of the user pressing a button on the Minimote.
But try PLEG first. These kinds of tasks are its bread-and-butter.
I would do this with PLEG (Program Logic Event Generator)
You also need the PLC (Program Logic Core … this is software common to PLTS and PLEG)
I would also install the Day our Night Plugin.
This allows you to decide when Day/Night time happen relative to sunrise/sunset respectively. I typically use day as 30 minutes before sunrise to 30 minutes after sunset.
Make sure you have setup your timezone and location properly (Needed in order to determine when sunrise/sunset is at your location).
Next in PLEGs:
Add some Input Triggers: Night When Day or Night device indicates Night Door1 When Door Sensor #1 is tripped Door2 When Door Sensor #2 is tripped
… DoorN When Door N is tripped. AlarmIsOn When the Alarm is On
Add an Input Schedule: EntryDelay SelfTrigger off after interval of 15 (Seconds)
Conditions: Day Not Night EntryExpired NotEntryDelay SensorTrip Door1 or Door2 … or DoorN AlarmOn SensorTrip and (SensorTrip;EntryExpired) DayAlarmOff AlarmIsOn and Day and (not SensorTrip) NightAlarmOff AlarmIsOn and Night and (not SensorTrip) and (AlarmIsOn; Now > 15:00)
Actions: SensorTrip Have the PLEG Start Timer EntryDelay (Need to Used Advanced Tab) AlarmOn Turn On Alarm DayMute Turn Off Alarm NightMute Turn Off Alarm
The 15:00 in the NightAlarmOff condition is for the ontime of the alarm. This is 15 minutes.
This is not a simple example. There are two different time delays … one for delaying before the Siren goes on … and one at night for when the siren should go off.
The tricky parts are the SelfTrigger timer and the Sequence expressions.
Generate a Status report … This will be useful to see what you typed exactly.
Looks like you did not create the AlarmIsOn input trigger.
Note: You may want to change the Door Triggers to Armed Door is triggered.
Then you can ByPass a door if you do not want it to participate in this Logic.
Note2: You also have to ARM the PLEG for it to run any actions.
You called the Input Siren but you use the name AlarmIsOn in the conditions.
You need to be consistent … Change the Input Name or Change the Name in the condition so they match!
Similarly I used the name EntryDelay for the name of the Schedule … and the
condition was NOT EntryDelay.
If you do not use the same names as me … you need to fix all of the references in the conditions.
Also your Schedule is NOT setup properly … It should have a type of SelfTrigger
There should not be a Random On Delay!
It’s OFF Type should be Interval with a time of 30 and NO Random Off Delay.
Upon further research I created this simple motion detect light on and it seems to be functioning. I am still confused on where in the sequence is the amount of time the light stays on.
Also, I am still unclear if/where Vera scenes are corresponding to the PLEG programming in general?
I have attached my status report.
Thanks.
Best Home Automation shopping experience. Shop at Ezlo!