So can any one tell me how to do this scene ?
Since i have small children and dont want to wake them up when i go downstairs i have the alarm turned off when we are at home.
However now that i have my vera lite connected to my networx alarm system it would be nice if i get a text message when a sensor is tripped during night time when the alarm is turned of. Even better when a certain sensor has not been tripped (upstairs when i go down) and the other one(s) are tripped first.
I would say i create a scene, set triggers for the mentioned sensors bu then. How do i make this work only during a certain time period and how to check if the sensor upstaits has not been trippped before the one downstairs were tripped.
The Program Logic Event Generator plugin can help you with this scenario.
You would setup the the following input triggers:
US1: When Upstairs Sensor 1 Trips
…
USN: When Upstairs Sensor N Trips
DS1: When Downstairs Sensor 1 Trips
…
DSN: When Downstairs Sensor N Trips
Then you can have the following conditions:
LastUp = US1 or US2 ... or USN
LastDown = DS1 or DS2 ... or DSN
NightInstrusion: (DS1 ... or DSN) and (LastUp;LastDown > 30:00) and (NOT (07:00:00; NOW; 22:00:00))
In this case LastUp will hold the time stamp of the last Upstairs Sensor Trip and similarly LastDown will hold the time stamp of the last Downstairs Sensor Trip.
You will trigger the NightInstrusion condition when you have any downstairs activity bewteen before 7AM and after 10PM if the Downstairs activity happened 30 minutes after the last upstairs activity. So if you get up and go down stairs; the down stairs sensors are ignore for 30 minutes.
Then you can add a Notification for when the NightInstrusion condition s satisfied.
I tried to install that one (and the program logic core)
but i couldn’t add triggers in the first place.
I tried to deinstall it but that didn’t work (delivery failed)
So i rebooted the vera (lite) and then i got yellow messages that LUUP was taking longer to load etc.
After 5 tries everything was fine and i could deinstall these plugins.
So im not really waiting to have that kind of trouble again.
Update: i reinstalled it, same thing, no way i can add triggers as your supposed to do on your site. Uninstall difficult etc.
Besides that look at the attached screens and vera keeps doing something (unit busy)
Others have reported that … but I am away from home and not in a good position to debug.
You might try the previous version of each of the plugins. I am not sure which one is causing the problem.
Can maybe someone tell me how to code a time read out so i can make is simple version (combined with trigger)
I added this code to the scene so the trigger in the scene will only work at night
[code]local t = os.date(‘*t’)
local current_second = t.hour * 3600 + t.min * 60 + t.sec – number of seconds since midnight
if (current_second > 0) and (current_second < 21600) then
return true
else
return false
end[/code]
I forgot to cross post … the PLEG thread I have posted a work around for the PLEG install problem. I hope to hear from MCV tomorrow about fixing the APP store.
I figured it out.
What i did is the following.
1 Scene that triggers when motion upstairs i trigger a virtual switch that turns off after 5 minutes. (me going downtairs)
2 Scene that triggers when motion downstairs and turns on another switch, but not when the above mentioned switch is active.
3 Scene that triggers and alerts when swicth in scene 2 is activated. (which is only used in that scene).