Page 1 of 1

Is it possible to capture ARM type? (Night, Away, etc.)

PostPosted: Sat Jan 31, 2015 3:53 pm
by danimal1228
I only use the AD2PI via a custom python script that runs on a headless pi. It is set up to send emails for different events. Its over in the CODE section of the forum. I am getting into home automation and I need to be able to tell the difference between when the system arms in AWAY mode as opposed to NIGHT mode. Admittedly its been a while since I dug through the python code so I am a little rusty. Does anyone know how to do this in python? I tried searching but it seems that everyone uses the webapp. Perhaps its time for me to transition to that...

Thanks

Re: Is it possible to capture ARM type? (Night, Away, etc.)

PostPosted: Mon Feb 02, 2015 3:17 pm
by Scott
I believe LRR should do what you want! ARM_AWAY and ARM_STAY should be the equivalent of what you described.

You'll need to turn on LRR emulation on the AD and enable a few fields on the panel. See http://www.alarmdecoder.com/wiki/index.php/LRR_Support.

After that you'll need to modify your script to bind to the lrr event as shown here: https://github.com/nutechsoftware/alarm ... example.py