Hi,
I am having an issue for a while now. Every now and then I receive several email alerts from my PI. Below the last event log:
2018-1-30 7:48:57 PM LOW BATTERY Low battery detected.
2018-1-30 7:48:25 PM POWER CHANGED Power status has changed to True.
2018-1-30 7:48:24 PM LOW BATTERY Low battery detected.
2018-1-30 7:48:23 PM POWER CHANGED Power status has changed to False.
2018-1-30 7:47:56 PM FIRE There is a fire!
2018-1-30 7:47:25 PM ALARM RESTORED The alarm system has stopped signaling the alarm for zone (8).
2018-1-30 7:47:24 PM POWER CHANGED Power status has changed to True.
2018-1-30 7:47:23 PM FIRE There is a fire!
2018-1-30 7:47:22 PM ALARM The alarm system has been triggered on zone (109)!
2018-1-30 7:47:21 PM POWER CHANGED Power status has changed to False.
Everything seems to work and I tried to reboot several times.... with no luck. I have the latest firmware
Any ideas?
Thanks
------ APP log -----
File "/opt/alarmdecoder-webapp/ad2web/decoder.py", line 764, in run
self._mailer.send_mail(self.send_from, self.to, self.subject, self.body, files)
File "/opt/alarmdecoder-webapp/ad2web/mailer.py", line 65, in send_mail
s = smtplib.SMTP(self.server, self.port)
File "/usr/lib/python2.7/smtplib.py", line 256, in __init__
(code, msg) = self.connect(host, port)
File "/usr/lib/python2.7/smtplib.py", line 317, in connect
(code, msg) = self.getreply()
File "/usr/lib/python2.7/smtplib.py", line 368, in getreply
raise SMTPServerDisconnected("Connection unexpectedly closed")
SMTPServerDisconnected: Connection unexpectedly closed
2018-01-30 23:13:48,196 INFO: Checking for version updates - last check at: 01-30-2018 23:03:39 [in /opt/alarmdecoder-webapp/ad2web/decoder.py:600]
2018-01-30 23:16:18,350 INFO: Checking if we need to export settings. [in /opt/alarmdecoder-webapp/ad2web/decoder.py:755]
2018-01-30 23:16:18,974 INFO: Sending export email: [u'************@gmail.com'] - [u'/opt/alarmdecoder-webapp/instance/exports/alarmdecoder-export-20180130231618.tar.gz'] [in /opt/alarmdecoder-webapp/ad2web/decoder.py:763]
2018-01-30 23:16:49,084 ERROR: Error in ExportChecker: Connection unexpectedly closed [in /opt/alarmdecoder-webapp/ad2web/decoder.py:782]
Traceback (most recent call last):
File "/opt/alarmdecoder-webapp/ad2web/decoder.py", line 764, in run
self._mailer.send_mail(self.send_from, self.to, self.subject, self.body, files)
File "/opt/alarmdecoder-webapp/ad2web/mailer.py", line 65, in send_mail
s = smtplib.SMTP(self.server, self.port)
File "/usr/lib/python2.7/smtplib.py", line 256, in __init__
(code, msg) = self.connect(host, port)
File "/usr/lib/python2.7/smtplib.py", line 317, in connect
(code, msg) = self.getreply()
File "/usr/lib/python2.7/smtplib.py", line 368, in getreply
raise SMTPServerDisconnected("Connection unexpectedly closed")
SMTPServerDisconnected: Connection unexpectedly closed
2018-01-30 23:23:54,585 INFO: Checking for version updates - last check at: 01-30-2018 23:13:48 [in /opt/alarmdecoder-webapp/ad2web/decoder.py:600]
2018-01-30 23:26:49,113 INFO: Checking if we need to export settings. [in /opt/alarmdecoder-webapp/ad2web/decoder.py:755]
2018-01-30 23:26:49,740 INFO: Sending export email: [u'************@gmail.com'] - [u'/opt/alarmdecoder-webapp/instance/exports/alarmdecoder-export-20180130232649.tar.gz'] [in /opt/alarmdecoder-webapp/ad2web/decoder.py:763]
2018-01-30 23:27:19,883 ERROR: Error in ExportChecker: Connection unexpectedly closed [in /opt/alarmdecoder-webapp/ad2web/decoder.py:782]
Traceback (most recent call last):
File "/opt/alarmdecoder-webapp/ad2web/decoder.py", line 764, in run
self._mailer.send_mail(self.send_from, self.to, self.subject, self.body, files)
File "/opt/alarmdecoder-webapp/ad2web/mailer.py", line 65, in send_mail
s = smtplib.SMTP(self.server, self.port)
File "/usr/lib/python2.7/smtplib.py", line 256, in __init__
(code, msg) = self.connect(host, port)
File "/usr/lib/python2.7/smtplib.py", line 317, in connect
(code, msg) = self.getreply()
File "/usr/lib/python2.7/smtplib.py", line 368, in getreply
raise SMTPServerDisconnected("Connection unexpectedly closed")
SMTPServerDisconnected: Connection unexpectedly closed
2018-01-30 23:34:00,998 INFO: Checking for version updates - last check at: 01-30-2018 23:23:54 [in /opt/alarmdecoder-webapp/ad2web/decoder.py:600]
2018-01-30 23:37:19,916 INFO: Checking if we need to export settings. [in /opt/alarmdecoder-webapp/ad2web/decoder.py:755]
2018-01-30 23:37:20,533 INFO: Sending export email: [u************@gmail.com'] - [u'/opt/alarmdecoder-webapp/instance/exports/alarmdecoder-export-20180130233719.tar.gz'] [in /opt/alarmdecoder-webapp/ad2web/decoder.py:763]
2018-01-30 23:37:50,790 ERROR: Error in ExportChecker: Connection unexpectedly closed [in /opt/alarmdecoder-webapp/ad2web/decoder.py:782]
Traceback (most recent call last):
File "/opt/alarmdecoder-webapp/ad2web/decoder.py", line 764, in run
self._mailer.send_mail(self.send_from, self.to, self.subject, self.body, files)
File "/opt/alarmdecoder-webapp/ad2web/mailer.py", line 65, in send_mail
s = smtplib.SMTP(self.server, self.port)
File "/usr/lib/python2.7/smtplib.py", line 256, in __init__
(code, msg) = self.connect(host, port)
File "/usr/lib/python2.7/smtplib.py", line 317, in connect
(code, msg) = self.getreply()
File "/usr/lib/python2.7/smtplib.py", line 368, in getreply
raise SMTPServerDisconnected("Connection unexpectedly closed")
SMTPServerDisconnected: Connection unexpectedly closed
2018-01-30 23:44:07,644 INFO: Checking for version updates - last check at: 01-30-2018 23:34:00 [in /opt/alarmdecoder-webapp/ad2web/decoder.py:600]
2018-01-30 23:47:50,823 INFO: Checking if we need to export settings. [in /opt/alarmdecoder-webapp/ad2web/decoder.py:755]
2018-01-30 23:47:51,448 INFO: Sending export email: [u'***********@gmail.com'] - [u'/opt/alarmdecoder-webapp/instance/exports/alarmdecoder-export-20180130234750.tar.gz'] [in /opt/alarmdecoder-webapp/ad2web/decoder.py:763]
2018-01-30 23:48:21,599 ERROR: Error in ExportChecker: Connection unexpectedly closed [in /opt/alarmdecoder-webapp/ad2web/decoder.py:782]
Traceback (most recent call last):
File "/opt/alarmdecoder-webapp/ad2web/decoder.py", line 764, in run
self._mailer.send_mail(self.send_from, self.to, self.subject, self.body, files)
File "/opt/alarmdecoder-webapp/ad2web/mailer.py", line 65, in send_mail
s = smtplib.SMTP(self.server, self.port)
File "/usr/lib/python2.7/smtplib.py", line 256, in __init__
(code, msg) = self.connect(host, port)
File "/usr/lib/python2.7/smtplib.py", line 317, in connect
(code, msg) = self.getreply()
File "/usr/lib/python2.7/smtplib.py", line 368, in getreply
raise SMTPServerDisconnected("Connection unexpectedly closed")
SMTPServerDisconnected: Connection unexpectedly closed
2018-01-30 23:54:14,322 INFO: Checking for version updates - last check at: 01-30-2018 23:44:07 [in /opt/alarmdecoder-webapp/ad2web/decoder.py:600]
2018-01-30 23:58:21,632 INFO: Checking if we need to export settings. [in /opt/alarmdecoder-webapp/ad2web/decoder.py:755]
2018-01-30 23:58:22,263 INFO: Sending export email: [u'***********@gmail.com'] - [u'/opt/alarmdecoder-webapp/instance/exports/alarmdecoder-export-20180130235821.tar.gz'] [in /opt/alarmdecoder-webapp/ad2web/decoder.py:763]
2018-01-30 23:58:52,502 ERROR: Error in ExportChecker: Connection unexpectedly closed [in /opt/alarmdecoder-webapp/ad2web/decoder.py:782]
Traceback (most recent call last):
File "/opt/alarmdecoder-webapp/ad2web/decoder.py", line 764, in run
self._mailer.send_mail(self.send_from, self.to, self.subject, self.body, files)
File "/opt/alarmdecoder-webapp/ad2web/mailer.py", line 65, in send_mail
s = smtplib.SMTP(self.server, self.port)
File "/usr/lib/python2.7/smtplib.py", line 256, in __init__
(code, msg) = self.connect(host, port)
File "/usr/lib/python2.7/smtplib.py", line 317, in connect
(code, msg) = self.getreply()
File "/usr/lib/python2.7/smtplib.py", line 368, in getreply
raise SMTPServerDisconnected("Connection unexpectedly closed")
SMTPServerDisconnected: Connection unexpectedly closed
2018-01-31 00:04:20,672 INFO: Checking for version updates - last check at: 01-30-2018 23:54:14 [in /opt/alarmdecoder-webapp/ad2web/decoder.py:600]
2018-01-31 00:08:52,532 INFO: Checking if we need to export settings. [in /opt/alarmdecoder-webapp/ad2web/decoder.py:755]
2018-01-31 00:08:53,163 INFO: Sending export email: [u'***********@gmail.com'] - [u'/opt/alarmdecoder-webapp/instance/exports/alarmdecoder-export-20180131000852.tar.gz'] [in /opt/alarmdecoder-webapp/ad2web/decoder.py:763]
2018-01-31 00:09:23,497 ERROR: Error in ExportChecker: Connection unexpectedly closed [in /opt/alarmdecoder-webapp/ad2web/decoder.py:782]
Traceback (most recent call last):
File "/opt/alarmdecoder-webapp/ad2web/decoder.py", line 764, in run
self._mailer.send_mail(self.send_from, self.to, self.subject, self.body, files)
File "/opt/alarmdecoder-webapp/ad2web/mailer.py", line 65, in send_mail
s = smtplib.SMTP(self.server, self.port)
File "/usr/lib/python2.7/smtplib.py", line 256, in __init__
(code, msg) = self.connect(host, port)
File "/usr/lib/python2.7/smtplib.py", line 317, in connect
(code, msg) = self.getreply()
File "/usr/lib/python2.7/smtplib.py", line 368, in getreply
raise SMTPServerDisconnected("Connection unexpectedly closed")
SMTPServerDisconnected: Connection unexpectedly closed
2018-01-31 00:14:27,449 INFO: Checking for version updates - last check at: 01-31-2018 00:04:20 [in /opt/alarmdecoder-webapp/ad2web/decoder.py:600]
2018-01-31 00:19:23,523 INFO: Checking if we need to export settings. [in /opt/alarmdecoder-webapp/ad2web/decoder.py:755]
2018-01-31 00:19:24,140 INFO: Sending export email: [u'***********@gmail.com'] - [u'/opt/alarmdecoder-webapp/instance/exports/alarmdecoder-export-20180131001923.tar.gz'] [in /opt/alarmdecoder-webapp/ad2web/decoder.py:763]
2018-01-31 00:19:54,291 ERROR: Error in ExportChecker: Connection unexpectedly closed [in /opt/alarmdecoder-webapp/ad2web/decoder.py:782]
Traceback (most recent call last):
File "/opt/alarmdecoder-webapp/ad2web/decoder.py", line 764, in run
self._mailer.send_mail(self.send_from, self.to, self.subject, self.body, files)
File "/opt/alarmdecoder-webapp/ad2web/mailer.py", line 65, in send_mail
s = smtplib.SMTP(self.server, self.port)
File "/usr/lib/python2.7/smtplib.py", line 256, in __init__
(code, msg) = self.connect(host, port)
File "/usr/lib/python2.7/smtplib.py", line 317, in connect
(code, msg) = self.getreply()
File "/usr/lib/python2.7/smtplib.py", line 368, in getreply
raise SMTPServerDisconnected("Connection unexpectedly closed")
SMTPServerDisconnected: Connection unexpectedly closed
2018-01-31 00:24:33,250 INFO: Checking for version updates - last check at: 01-31-2018 00:14:27 [in /opt/alarmdecoder-webapp/ad2web/decoder.py:600]
2018-01-31 00:29:54,323 INFO: Checking if we need to export settings. [in /opt/alarmdecoder-webapp/ad2web/decoder.py:755]
2018-01-31 00:29:54,963 INFO: Sending export email: [u'************@gmail.com'] - [u'/opt/alarmdecoder-webapp/instance/exports/alarmdecoder-export-20180131002954.tar.gz'] [in /opt/alarmdecoder-webapp/ad2web/decoder.py:763]
2018-01-31 00:30:25,157 ERROR: Error in ExportChecker: Connection unexpectedly closed [in /opt/alarmdecoder-webapp/ad2web/decoder.py:782]
Traceback (most recent call last):
File "/opt/alarmdecoder-webapp/ad2web/decoder.py", line 764, in run
self._mailer.send_mail(self.send_from, self.to, self.subject, self.body, files)
File "/opt/alarmdecoder-webapp/ad2web/mailer.py", line 65, in send_mail
s = smtplib.SMTP(self.server, self.port)
File "/usr/lib/python2.7/smtplib.py", line 256, in __init__
(code, msg) = self.connect(host, port)
File "/usr/lib/python2.7/smtplib.py", line 317, in connect
(code, msg) = self.getreply()
File "/usr/lib/python2.7/smtplib.py", line 368, in getreply
raise SMTPServerDisconnected("Connection unexpectedly closed")
SMTPServerDisconnected: Connection unexpectedly closed
2018-01-31 00:34:39,633 INFO: Checking for version updates - last check at: 01-31-2018 00:24:33 [in /opt/alarmdecoder-webapp/ad2web/decoder.py:600]
2018-01-31 00:40:25,180 INFO: Checking if we need to export settings. [in /opt/alarmdecoder-webapp/ad2web/decoder.py:755]
2018-01-31 00:40:25,798 INFO: Sending export email: [u'************@gmail.com']- [u'/opt/alarmdecoder-webapp/instance/exports/alarmdecoder-export-20180131004025.tar.gz'] [in /opt/alarmdecoder-webapp/ad2web/decoder.py:763]
2018-01-31 00:40:55,968 ERROR: Error in ExportChecker: Connection unexpectedly closed [in /opt/alarmdecoder-webapp/ad2web/decoder.py:782]
Traceback (most recent call last):
File "/opt/alarmdecoder-webapp/ad2web/decoder.py", line 764, in run
self._mailer.send_mail(self.send_from, self.to, self.subject, self.body, files)
File "/opt/alarmdecoder-webapp/ad2web/mailer.py", line 65, in send_mail
s = smtplib.SMTP(self.server, self.port)
File "/usr/lib/python2.7/smtplib.py", line 256, in __init__
(code, msg) = self.connect(host, port)
File "/usr/lib/python2.7/smtplib.py", line 317, in connect
(code, msg) = self.getreply()
File "/usr/lib/python2.7/smtplib.py", line 368, in getreply
raise SMTPServerDisconnected("Connection unexpectedly closed")
SMTPServerDisconnected: Connection unexpectedly closed
2018-01-31 00:44:45,446 INFO: Checking for version updates - last check at: 01-31-2018 00:34:39 [in /opt/alarmdecoder-webapp/ad2web/decoder.py:600]
2018-01-31 00:47:21,053 INFO: Event: Power status has changed to False. [in /opt/alarmdecoder-webapp/ad2web/notifications/types.py:281]
2018-01-31 00:47:22,239 INFO: Event: The alarm system has been triggered on zone <unnamed> (109)! [in /opt/alarmdecoder-webapp/ad2web/notifications/types.py:281]
2018-01-31 00:47:22,371 ERROR: Error while broadcasting event. [in /opt/alarmdecoder-webapp/ad2web/decoder.py:448]
Traceback (most recent call last):
File "/opt/alarmdecoder-webapp/ad2web/decoder.py", line 441, in _handle_event
errors = self._notifier_system.send(ftype, **kwargs)
File "/opt/alarmdecoder-webapp/ad2web/notifications/types.py", line 86, in send
if n and n.subscribes_to(type, **kwargs):
File "/opt/alarmdecoder-webapp/ad2web/notifications/types.py", line 256, in subscribes_to
if int(kwargs.get('zone', -1)) in self._zone_filters:
TypeError: int() argument must be a string or a number, not 'NoneType'
2018-01-31 00:47:22,998 INFO: Event: There is a fire! [in /opt/alarmdecoder-webapp/ad2web/notifications/types.py:281]
2018-01-31 00:47:24,170 INFO: Event: Power status has changed to True. [in /opt/alarmdecoder-webapp/ad2web/notifications/types.py:281]
2018-01-31 00:47:24,946 INFO: Event: The alarm system has stopped signaling the alarm for zone <unnamed> (8). [in /opt/alarmdecoder-webapp/ad2web/notifications/types.py:281]
2018-01-31 00:47:25,081 ERROR: Error while broadcasting event. [in /opt/alarmdecoder-webapp/ad2web/decoder.py:448]
Traceback (most recent call last):
File "/opt/alarmdecoder-webapp/ad2web/decoder.py", line 441, in _handle_event
errors = self._notifier_system.send(ftype, **kwargs)
File "/opt/alarmdecoder-webapp/ad2web/notifications/types.py", line 86, in send
if n and n.subscribes_to(type, **kwargs):
File "/opt/alarmdecoder-webapp/ad2web/notifications/types.py", line 256, in subscribes_to
if int(kwargs.get('zone', -1)) in self._zone_filters:
TypeError: int() argument must be a string or a number, not 'NoneType'
2018-01-31 00:47:56,261 INFO: Event: There is a fire! [in /opt/alarmdecoder-webapp/ad2web/notifications/types.py:281]
2018-01-31 00:48:23,859 INFO: Event: Power status has changed to False. [in /opt/alarmdecoder-webapp/ad2web/notifications/types.py:281]
2018-01-31 00:48:24,655 INFO: Event: Low battery detected. [in /opt/alarmdecoder-webapp/ad2web/notifications/types.py:281]
2018-01-31 00:48:25,623 INFO: Event: Power status has changed to True. [in /opt/alarmdecoder-webapp/ad2web/notifications/types.py:281]
2018-01-31 00:48:57,817 INFO: Event: Low battery detected. [in /opt/alarmdecoder-webapp/ad2web/notifications/types.py:281]
2018-01-31 00:50:56,000 INFO: Checking if we need to export settings. [in /opt/alarmdecoder-webapp/ad2web/decoder.py:755]
2018-01-31 00:50:56,627 INFO: Sending export email: [u'************@gmail.com'] - [u'/opt/alarmdecoder-webapp/instance/exports/alarmdecoder-export-20180131005056.tar.gz'] [in /opt/alarmdecoder-webapp/ad2web/decoder.py:763]
2018-01-31 00:51:26,767 ERROR: Error in ExportChecker: Connection unexpectedly closed [in /opt/alarmdecoder-webapp/ad2web/decoder.py:782]
Traceback (most recent call last):
File "/opt/alarmdecoder-webapp/ad2web/decoder.py", line 764, in run
self._mailer.send_mail(self.send_from, self.to, self.subject, self.body, files)
File "/opt/alarmdecoder-webapp/ad2web/mailer.py", line 65, in send_mail
s = smtplib.SMTP(self.server, self.port)
File "/usr/lib/python2.7/smtplib.py", line 256, in __init__
(code, msg) = self.connect(host, port)
File "/usr/lib/python2.7/smtplib.py", line 317, in connect
(code, msg) = self.getreply()
File "/usr/lib/python2.7/smtplib.py", line 368, in getreply
raise SMTPServerDisconnected("Connection unexpectedly closed")
SMTPServerDisconnected: Connection unexpectedly closed
2018-01-31 00:54:51,954 INFO: Checking for version updates - last check at: 01-31-2018 00:44:45 [in /opt/alarmdecoder-webapp/ad2web/decoder.py:600]