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

General Discussion

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

Postby danimal1228 » Sat Jan 31, 2015 3:53 pm

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
danimal1228
Junior Nut
Junior Nut
 
Posts: 20
Joined: Sat Jan 11, 2014 9:35 am

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

Postby Scott » Mon Feb 02, 2015 3:17 pm

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
Scott
Expert Nut
Expert Nut
 
Posts: 118
Joined: Thu Dec 12, 2013 11:17 am


Return to General

Who is online

Users browsing this forum: No registered users and 39 guests

cron