I have a single scene called “Prowl Notifications” that runs all of my… Prowl notifications. Almost all of them have been and continue to run reliably for 4 months or so. Two are not working… these are conditions that come out of a PLEG for entry events. Two conditions, when true, serve as triggers for two LUUP events in the scene. Both are identical, so I’ll just show one:
Garage_Door_2_Left_Open_c8 is the PLEG condition. See the “PLEG Condition” screen shot below. In a real test, I left the garage door open, and the condition went true.
It is also the trigger for the scene, which runs the following LUUP:
luup.inet.wget("http://www.prowlapp.com/publicapi/add?apikey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx&application=Vera+Alert&event=Garage+Door+%232&description=Open+for+20+minutes&priority=2")
return true
Check out the second screen shot. You can see the trigger went true about 20 minutes ago (“Last run: 03/03/2014 16:57:32”). I’ve also tested the LUUP above in the development tab, and it works fine–sends a Prowl notification as expected.
So where’s the disconnect? The PLEG condition works, the trigger shows up, but the LUUP doesn’t get executed. Any thoughts?
The PLEG condition, if it matters, is true when:
Garage_Door_2_Opened_t8 AND (Garage_Door_2_Opened_t8; NOW > 20:00)
The statement looks valid, says the Garage Door2 is open and has been in that state for more than 20 minutes.
you mentioned that the luup works, but you ran the scene with the luup ‘manually’ and it works,right? It sends you the notification as a result of the scene firing?
I just ran the Luup manually, under Test Luup Code, and it fired the notification.
Something strange, though, when I was playing with it yesterday… I had the garage door open and then rebooted Vera. When Vera rebooted, I received the notification. The timeline was like this (in minutes):
t=0, opened garage door
t=6, rebooted Vera
t=7, Vera completed reboot & set notification
Since the PLEG condition specifies 20 minutes, it still represents a malfunction in my mind; but it’s odd that the notification worked in this case & doesn’t work under “normal” circumstances.
if you post the Status Report, perhaps we can see what happened.
The screen shot above is a portion of the status screen… but…
I just received a valid notification a few seconds ago. It’s been 20 minutes since I left the garage door open, and the notification worked. I have no explanation why it hasn’t worked in the last month or so, but I’ve given it lots of opportunities.
Partial status reports get partial insight into what’s happening.
We need to see the full status report to see the current time, the triggers, the schedules, and often it’s good to see what’s in the actions … because that can effect things in some cases.