kk7ds / pynx584

Python library and server for talking to NX584/NX8E interfaces
GNU General Public License v3.0
29 stars 26 forks source link

is it possible to "receive" notification when the alarm has been triggered or a zone has "chime" (if alarm is not armed) #23

Closed yeahman45 closed 6 years ago

yeahman45 commented 6 years ago

is it possible to "receive" notification when the alarm has been triggered or a zone has "chime" (if alarm is not armed)?

I want to send an sms or email when an alarm has been triggered (if system is armed) or there has been a "chime" in a zone (if system is not armed)

kk7ds commented 6 years ago

If you're asking whether or not the code as is can do that, then the answer is no. However, the server side has an event stream, which you can dump with the 'events' thing in the client to see. It's semi-immediate notification of events as they happen. Each zone will report when it is faulted, but you'd have to track the armed state of the partition that it's in yourself if you only want to trigger when the system is disarmed.

yeahman45 commented 6 years ago

even if the system is not armed, a zone will still report when it's faulted (chime in my case) right?

kk7ds commented 6 years ago

Yup. I use it for turning on lights when I walk into the house/garage. It's instant enough for that to be quite satisfying such that I never use the light switch.

yeahman45 commented 6 years ago

cool thx that's what I needed :)

kk7ds commented 6 years ago

Cool, so can I close this issue?