Hi...
Hope someone can help a newbie here figure out the best way to accomplish an automation.
Basically: if any window in the room is open for more than 5 minutes, I want to automatically turn off the air conditioner... also, when the door closes, if there is no motion in the room for the next half hour turn off the air conditioner.
My biggest problem is figuring out if this needs to be a cron job... or is there another app or which API should I base it on?
It seems if I do a cron job that I have to save event times in a file to use the next time it runs... or am I missing something that will make this simpler.
Thanks,
Jim