@jwehr sure.
Not doing anything really exciting, I send my self a notifcation using prowl api in agent, and prowl app on my iphone everytime the door opens or closes.
My kids(college age and beyond) are famous for opening the garage door after I’ve shut it for the night, so I was going to send myself a prowl notification if the door was open after 10:00 PM.
Then I thought, heck why notify me, just close it, then tell me it did it.
Then I realized I can’t just close it after 10:00 PM, as if someone came home after 10, it would close the door as soon as it opened, so I needed make sure the door was open for at least X duration after 10PM, then close it.
So that is why I’m timing the door open time.
Anyhow when my door input toggles, I
agent.send(“buttonOpen”, temp); or agent.send(“buttonClose”, temp);
I also have a temp sensor hooked up, so I can see the temp of the garage anytime the door opens or closes, or I query the states.
On the agent side, I store otime = time(); when the door opens, and I then calculate duration when the door closes and send the Open time in the door closed notification.
It’s cool to see “garage opened at 2:30PM temp=71F”, 5 to 10 minutes later I then get “garage closed, Open Time was 8m”.
That’s my son coming home and letting the dogs out after school.
Also I was doing this through a HTTP POST, via a webpage, but did not like it exposed. I saw your app, and it works perfect. I also integrated the agent handling json input from the little devil app, so I now have 2 different ways to query my garage door or close it.
Let me know if you want to see anything.