Thanks in advance for any suggestions…
I’m trying to do what I thought would be fairly simple (simple thanks to the very useful PLEG plugins!)
I am running 5.0 with the patch RTS posted recently for the armed state of sensors.
What I would like to do is one of the following:
If it is night time, and the garage door is open for more than 1 minute, send a notification (I have this set to 1 for testing…).
If nest reports cooling, and the front door is open for more than 5 minutes, send a notification.
If nest reports cooling, and the front door is open for more than 5 minutes, send a notification.
If the front door is open and has been for more than 10 minutes, send a notification.
I’ve been through what seems like a hundred iterations so far with fairly poor results.
I was hoping someone would take a look at what I am doing and tell me what I am missing.
Here is my status output… I don’t understand why the day or night is not true. I don’t understand why 3 of the 4 conditions are all true when the only trigger that is true right now is NestCooling.
Triggers
Name Description Last Trigger State
NestCooling NestMain is cooling 2013-09-01 21:23:59.145 true
FrontDoorOpen Front Door armed is tripped 2013-09-01 20:54:03.714 false
SlidingDoorOpen SlidingDoor armed is tripped 0 false
GarageDoorOpen Garage Door Sensor armed is tripped 0 false
Night1 Day or Night indicates Night time. 0 false
Conditions
Name Expression Last True State
_GarageNotify Night1 AND (GarageDoorOpen ; NOW > 1:00) 2013-09-01 20:49:57.366 false
_CoolingOutsideWorld NestCooling AND (SlidingDoorOpen ; NOW > 05:00) 2013-09-01 21:23:59.149 true
_FrontDoor (FrontDoorOpen; NOW > 10:00) 2013-09-01 21:23:49.105 true
_CoolingOutsideWorld2 NestCooling AND (FrontDoorOpen ; NOW > 05:00) 2013-09-01 21:23:59.158 true
Notifications
Name Description Users Last Sent
Front Door Open PLEG has satisfied condition: _FrontDoor 2013-09-01 21:23:49.105
Garage Door Open At Night PLEG has satisfied condition: _GarageNotify 2013-09-01 20:49:57.366
AC Running with Sliding Door Open PLEG has satisfied condition: _CoolingOutsideWorld 2013-09-01 21:23:59.149
So, to put it in english to see if I’m actually understanding the logic:
Night1 AND (GarageDoorOpen ; NOW > 1:00) AND GarageDoorOpen
translates to
It’s Night AND
The garage door open trigger last fired more than one minute ago AND
The garage door is open right now
I modified my conditions but I’m still not having any luck. To take my simplest example:
_FrontDoor (FrontDoorOpen; NOW > 10:00) AND FrontDoorOpen
FrontDoorOpen Front Door armed is tripped 2013-09-02 13:28:00.699 true
It’s been 20 minutes and the condition still shows false.
likewise, my front door condition for having the AC on is also not working
NestCooling NestMain is cooling 2013-09-02 13:27:19.982 true
FrontDoorOpen Front Door armed is tripped 2013-09-02 13:28:00.699 true
_CoolingOutsideWorld2 NestCooling AND (FrontDoorOpen ; NOW > 05:00) AND FrontDoorOpen 2013-09-02 13:27:19.993 false
The status page will NOT show the results of any value that is changed as a result of the NOW condition triggering the state change.
This is because NOW is evaluated every minute … and saving the changes to the Database (which typically do not happen) cause entries in the log files. Entries in the log file cause Vera to restart sooner for those that do not have a USB connected thumb drive enabled for logging.
If you want to see the conditions that change as a result of NOW then add a dummy trigger to some light switch. Toggle the light then do a status command. The Switch trigger will force the data to be written so the Status command will be able to access all of the other variables … including those that change state as a result of the NOW trigger.
Or change the state of ANY of your Input Triggers (Like the Day or Night Plugin) then do a Status command.
Best Home Automation shopping experience. Shop at Ezlo!