I have an Abode security system for which I wrote a couple of python scripts to allow me to receive state changes for alarm and alarm sensors, and to send commands to the security system. I have a wall mounted ipad that I've configured with a popup keypad to arm/disarm, etc.
I've got the whole rig working pretty well. What I want to do now is when I arm the alarm, if one of the alarm sensors is open (ie a window or door), I want to trigger a popup to warn me about it. The only thing is there's like a dozen sensors to deal with. So I'm trying to come up with some logic to do this without having to resort to having each event need a dozen conditions added to them. My arming events already have 4 pairs of "If this and that" or "If this and that" or ....etc. having to addall the alarm sensor virtual devices into the mix would make for a pretty onerous event.
I suppose I could perhaps create a virtual device that trips on if any of the other devices are open. Though If I use that to trigger the popup, I also would like to find a way to have it list the devices that are open. ie. "The following devices are open: Living Room Window, Back Door." kind of idea. Not sure how to dynamically display that list.
Ideas?
regards,
Paul
I've got the whole rig working pretty well. What I want to do now is when I arm the alarm, if one of the alarm sensors is open (ie a window or door), I want to trigger a popup to warn me about it. The only thing is there's like a dozen sensors to deal with. So I'm trying to come up with some logic to do this without having to resort to having each event need a dozen conditions added to them. My arming events already have 4 pairs of "If this and that" or "If this and that" or ....etc. having to addall the alarm sensor virtual devices into the mix would make for a pretty onerous event.
I suppose I could perhaps create a virtual device that trips on if any of the other devices are open. Though If I use that to trigger the popup, I also would like to find a way to have it list the devices that are open. ie. "The following devices are open: Living Room Window, Back Door." kind of idea. Not sure how to dynamically display that list.
Ideas?
regards,
Paul
Comment