DSC - Double notifications

General Discussion

DSC - Double notifications

Postby jailbird » Wed Oct 25, 2017 9:55 pm

I'm using the latest commits of alarmdecoder / alarmdecoder-webapp & firmware V2.2a.8.8. I have a notification setup to email me anytime the system is armed and disarmed.

Currently, the notification appears to be getting triggered twice for every event, eg:

2017-10-26 00:41:13,117 INFO: Event: The alarm system has been disarmed. [in /opt/alarmdecoder-webapp/ad2web/notifications/types.py:281]
2017-10-26 00:41:13,450 INFO: Event: The alarm system has been disarmed. [in /opt/alarmdecoder-webapp/ad2web/notifications/types.py:281]
2017-10-26 00:42:58,590 INFO: Event: The alarm system has been armed AWAY. [in /opt/alarmdecoder-webapp/ad2web/notifications/types.py:281]
2017-10-26 00:42:58,849 INFO: Event: The alarm system has been armed AWAY. [in /opt/alarmdecoder-webapp/ad2web/notifications/types.py:281]

In case it helps, output from when I arm the system looks like:

[01010001000000000D--],008,[000200000000000000000000000000],"Exit Delay In Progress "
[01010001000000000D--],008,[000200000000000000000000000000],"Exit Delay In Progress "
[01010001000000000D--],005,[000200000000000000000000000000],"System Armed In Away Mode "
[01010001000000000D--],005,[000200000000000000000000000000],"System Armed In Away Mode "
!LRR:000,1,DSC_00bf,00
!LRR:040,1,CID_3401,00
[01010001000000000D--],005,[000200000000000000000000000000],"System Armed In Away Mode "
[01010001000000000D--],005,[000200000000000000000000000000],"System Armed In Away Mode "

Any ideas?
jailbird
newt
newt
 
Posts: 6
Joined: Fri Aug 25, 2017 5:03 pm

Re: DSC - Double notifications

Postby kevin » Wed Oct 25, 2017 10:07 pm

Yeah, there was a bug recently discovered and possibly patched where events got wired more than once if you went through setup more than once - this may be related
Not an employee of the company. Just here to help and keep things clean.
kevin
Platinum Nut
Platinum Nut
 
Posts: 994
Joined: Fri Aug 16, 2013 10:10 am

Re: DSC - Double notifications

Postby jailbird » Wed Oct 25, 2017 10:16 pm

AH-HA! I probably did, as I thought the config was last on the device after a firmware upgrade? So I wen through setup again to reconfigure it (instead of doing it through telnet like I probably should have!).

Is there a quick fix for that? I assume it's not in GitHub yet, as I don't see it...

Also, maybe it's just me, but the special button popup on the DSC keypad seems really broken. If I click a button, its picture and function seems to become the button next to it. Sort of like there's an off-by-one index somewhere in the code. I'm trying to trace it myself.

Thanks for the quick reply!
jailbird
newt
newt
 
Posts: 6
Joined: Fri Aug 25, 2017 5:03 pm

Re: DSC - Double notifications

Postby kevin » Wed Oct 25, 2017 10:31 pm

Yeah, I didn't get to finish testing that feature on dsc but pushed it out anyway - probably some indexing error indeed - feel free to tackle it and submit a pull request, that's why it's open source :) No idea when I'll have time to work on the code next, which is why things got pushed as is.

I think the fix was in the library side, not 100% sure - not sure on a quick fix other than starting with a fresh database
Not an employee of the company. Just here to help and keep things clean.
kevin
Platinum Nut
Platinum Nut
 
Posts: 994
Joined: Fri Aug 16, 2013 10:10 am


Return to General

Who is online

Users browsing this forum: No registered users and 40 guests

cron