Sensor status not updated in ST

General Discussion

Sensor status not updated in ST

Postby jplee3 » Wed Apr 29, 2020 1:45 pm

Hey all,

As of this morning, the sensors stopped reporting to ST and I started digging in. Not sure if this may have something to do with it but when I open the front door sensor to test, I get this in /var/log/daemon.log repeatedly:
Code: Select all
Apr 29 14:42:29 alarmdecoder gunicorn[384]: --------------------------------------------------------------------------------
Apr 29 14:42:29 alarmdecoder gunicorn[384]: INFO in decoder [/opt/alarmdecoder-webapp/ad2web/decoder.py:541]:
Apr 29 14:42:29 alarmdecoder gunicorn[384]: Attempting to reconnect to the AlarmDecoder
Apr 29 14:42:29 alarmdecoder gunicorn[384]: --------------------------------------------------------------------------------
Apr 29 14:42:30 alarmdecoder gunicorn[384]: --------------------------------------------------------------------------------
Apr 29 14:42:30 alarmdecoder gunicorn[384]: INFO in decoder [/opt/alarmdecoder-webapp/ad2web/decoder.py:399]:
Apr 29 14:42:30 alarmdecoder gunicorn[384]: AlarmDecoder device was opened.
Apr 29 14:42:30 alarmdecoder gunicorn[384]: --------------------------------------------------------------------------------
Apr 29 14:42:33 alarmdecoder gunicorn[384]: --------------------------------------------------------------------------------
Apr 29 14:42:33 alarmdecoder gunicorn[384]: INFO in decoder [/opt/alarmdecoder-webapp/ad2web/decoder.py:411]:
Apr 29 14:42:33 alarmdecoder gunicorn[384]: AlarmDecoder device was closed.
Apr 29 14:42:33 alarmdecoder gunicorn[384]: --------------------------------------------------------------------------------
Apr 29 14:42:33 alarmdecoder gunicorn[384]: Exception in thread Thread-346:
Apr 29 14:42:33 alarmdecoder gunicorn[384]: Traceback (most recent call last):
Apr 29 14:42:33 alarmdecoder gunicorn[384]:   File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
Apr 29 14:42:33 alarmdecoder gunicorn[384]:     self.run()
Apr 29 14:42:33 alarmdecoder gunicorn[384]:   File "/opt/alarmdecoder/alarmdecoder/devices/base_device.py", line 148, in run
Apr 29 14:42:33 alarmdecoder gunicorn[384]:     self._device.read_line(timeout=self.READ_TIMEOUT)
Apr 29 14:42:33 alarmdecoder gunicorn[384]:   File "/opt/alarmdecoder/alarmdecoder/devices/socket_device.py", line 356, in read_line
Apr 29 14:42:33 alarmdecoder gunicorn[384]:     self.on_read(data=ret)
Apr 29 14:42:33 alarmdecoder gunicorn[384]:   File "/opt/alarmdecoder/alarmdecoder/event/event.py", line 84, in fire
Apr 29 14:42:33 alarmdecoder gunicorn[384]:     func(self.obj, *args, **kwargs)
Apr 29 14:42:33 alarmdecoder gunicorn[384]:   File "/opt/alarmdecoder/alarmdecoder/decoder.py", line 1041, in _on_read
Apr 29 14:42:33 alarmdecoder gunicorn[384]:     self._handle_message(data)
Apr 29 14:42:33 alarmdecoder gunicorn[384]:   File "/opt/alarmdecoder/alarmdecoder/decoder.py", line 439, in _handle_message
Apr 29 14:42:33 alarmdecoder gunicorn[384]:     msg = self._handle_keypad_message(data)
Apr 29 14:42:33 alarmdecoder gunicorn[384]:   File "/opt/alarmdecoder/alarmdecoder/decoder.py", line 477, in _handle_keypad_message
Apr 29 14:42:33 alarmdecoder gunicorn[384]:     msg = Message(data)
Apr 29 14:42:33 alarmdecoder gunicorn[384]:   File "/opt/alarmdecoder/alarmdecoder/messages/panel_message.py", line 85, in __init__
Apr 29 14:42:33 alarmdecoder gunicorn[384]:     self._parse_message(data)
Apr 29 14:42:33 alarmdecoder gunicorn[384]:   File "/opt/alarmdecoder/alarmdecoder/messages/panel_message.py", line 121, in _parse_message
Apr 29 14:42:33 alarmdecoder gunicorn[384]:     self.system_fault = int(self.bitfield[17], 16)
Apr 29 14:42:33 alarmdecoder gunicorn[384]: ValueError: invalid literal for int() with base 16: '-'
Apr 29 14:42:35 alarmdecoder gunicorn[384]: --------------------------------------------------------------------------------
Apr 29 14:42:35 alarmdecoder gunicorn[384]: INFO in decoder [/opt/alarmdecoder-webapp/ad2web/decoder.py:541]:
Apr 29 14:42:35 alarmdecoder gunicorn[384]: Attempting to reconnect to the AlarmDecoder
Apr 29 14:42:35 alarmdecoder gunicorn[384]: --------------------------------------------------------------------------------
Apr 29 14:42:35 alarmdecoder gunicorn[384]: --------------------------------------------------------------------------------
Apr 29 14:42:35 alarmdecoder gunicorn[384]: INFO in decoder [/opt/alarmdecoder-webapp/ad2web/decoder.py:399]:
Apr 29 14:42:35 alarmdecoder gunicorn[384]: AlarmDecoder device was opened.
Apr 29 14:42:35 alarmdecoder gunicorn[384]: --------------------------------------------------------------------------------


I'm also seeing this pop-up from time to time while browsing around in the webapp:
Code: Select all
Apr 29 14:44:51 alarmdecoder gunicorn[384]: INFO in decoder [/opt/alarmdecoder-webapp/ad2web/decoder.py:399]:
Apr 29 14:44:51 alarmdecoder gunicorn[384]: AlarmDecoder device was opened.
Apr 29 14:44:51 alarmdecoder gunicorn[384]: --------------------------------------------------------------------------------
Apr 29 14:44:53 alarmdecoder gunicorn[384]: 127.0.0.1 - - [2020-04-29 14:44:53] "GET /static/img/spinner.gif HTTP/1.1" 200 1094 0.149828
Apr 29 14:44:53 alarmdecoder gunicorn[384]: 127.0.0.1 - - [2020-04-29 14:44:53] "GET /static/img/spinner.gif HTTP/1.1" 200 1094 0.140137
Apr 29 14:44:54 alarmdecoder gunicorn[384]: Exception in thread Thread-404:
Apr 29 14:44:54 alarmdecoder gunicorn[384]: Traceback (most recent call last):
Apr 29 14:44:54 alarmdecoder gunicorn[384]:   File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
Apr 29 14:44:54 alarmdecoder gunicorn[384]:     self.run()
Apr 29 14:44:54 alarmdecoder gunicorn[384]:   File "/opt/alarmdecoder/alarmdecoder/devices/base_device.py", line 148, in run
Apr 29 14:44:54 alarmdecoder gunicorn[384]:     self._device.read_line(timeout=self.READ_TIMEOUT)
Apr 29 14:44:54 alarmdecoder gunicorn[384]:   File "/opt/alarmdecoder/alarmdecoder/devices/socket_device.py", line 323, in read_line
Apr 29 14:44:54 alarmdecoder gunicorn[384]:     read_ready, _, _ = select.select([self._device], [], [], 0.5)
Apr 29 14:44:54 alarmdecoder gunicorn[384]:   File "/usr/local/lib/python2.7/dist-packages/gevent/select.py", line 77, in select
Apr 29 14:44:54 alarmdecoder gunicorn[384]:     raise error(*ex.args)
Apr 29 14:44:54 alarmdecoder gunicorn[384]: error: (9, 'Bad file descriptor')



Has anyone seen these errors or know what might be going on?
jplee3
Junior Nut
Junior Nut
 
Posts: 29
Joined: Thu Aug 05, 2010 8:13 am

Return to General

Who is online

Users browsing this forum: No registered users and 8 guests

cron