Hi -
just installed the RPI hat with an RPI3b+ and the prebuilt image, which i then updated with apt and also updated the alarm decoder stuff thru the web gui. i'm on the stable branch, not dev.
i have a SE panel with a wireless zone extender. i noticed that when any window with a wireless contact switch is open, eventually the logs start showing that the zone has been restored and faulted. this happens seemingly at random, though opening another window seems to trigger a storm of these events. i guess my first question is, is this expected behavior? there seems to have been a recent commit regarding a similar problem but if it was intended to address this issue i guess it didn't fully fix the problem.
i noticed the zone delay and "suppress zone tracker restore" settings in the notification i created, which seems to me like it might be intended to handle this case (and thus it is expected behavior.) unfortunately setting a zone delay other than 0 stops all notifications from occurring and looking at the logs the code in ad2web/notifications/type.pl is unhappy with the delay variable reference in the call to time.mktime. i believe datetime.timedelta(minutes=delay) is a typo and should read (minutes=n.delay). i have made this change in my local copy and it does work - it suppresses most of the spurious notifications from the wireless sensors, though with the cost of a 1 minute delay on the first message. the fact that this code was broken makes me think that the zone spam is unintended.
another anomaly is that i see in the logs messages like this:
Apr 14 21:03:39 AlarmDecoder gunicorn[541]: [2021-04-14 21:03:39,679] DEBUG in types: Event: Zone <unnamed> (-32) has been faulted.
Apr 14 21:03:41 AlarmDecoder gunicorn[541]: [2021-04-14 21:03:41,196] DEBUG in types: Event: Zone <unnamed> (-32) has been restored.
which seems to me there is some problem with parsing the raw messages coming from the panel.
please let me know if there are any particular logs or config files that you might need to see if you have time to look into this issue.
thanks