Closed philwild closed 2 years ago
Okay I think this is because this line:
https://github.com/kk7ds/pynx584/blob/master/nx584/controller.py#L726
Should be +1'd, like we do here:
https://github.com/kk7ds/pynx584/blob/master/nx584/controller.py#L543
If I push a PR are you able to test this years-later before I push a release?
I can try and do this later this week. However, you've closed this so I assume you've probably tested yourself? Cheers
Yeah, sorry I should have commented. I was able to see locally that my events were out of sync as well and had never noticed it. So, fix is merged and I released 0.8.1 with it.
Thanks!
I'm using the email alerting feature and have noticed that there is a discrepancy in zone number between what the alarm system knows and what is being reported. See logs below.
Aug 20 08:35:47 raspberrypi nx584-event[21388]: {'type': 'zone_status', 'timestamp': '2018-08-20T08:35:47.429511', 'zone': 7, 'zone_state': False, 'zone_flags': ['Inhibit']}
Followed by
Aug 20 08:36:52 raspberrypi nx584-event[21388]: {'type': 'log', 'event': 'Zone 6 Bypass', 'timestamp': '2018-08-20T08:36:00'}
Notice that zone 7 is placed in bypass mode, yet the log message is reporting zone 6. The same issue occurs with notification of alarms. The email logged event for an alarm event is reported on the actual zone - 1. (i.e. zone-1 is reported as zone-0, zone-2 as zone-1, etc)