After a couple of days of Home Assistant being up, the Alarm Decoder component stops responding. Everything else continues to work. I have to restart Home Assistant for it to start working again. If I remotely connect directly to the Alarm Decoder, I can still manually send commands and control the alarm panel, so it is Home Assistant that is the failure point.
The logs that correspond to me trying to arm my alarm look like this:
17-05-22 01:20:41 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/home/homeassistant/.homeassistant/deps/alarmdecoder/devices.py”, line 803, in write
self._device.write(data)
File “/home/homeassistant/.homeassistant/deps/serial/serialposix.py”, line 490, in write
if not self._isOpen: raise portNotOpenError
File “/home/homeassistant/.homeassistant/deps/alarmdecoder/devices.py”, line 803, in write
self._device.write(data)
File “/home/homeassistant/.homeassistant/deps/serial/serialposix.py”, line 490, in write
if not self._isOpen: raise portNotOpenError
serial.serialutil.SerialException: Attempting to use a port that is not open
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/lib/python3.4/asyncio/tasks.py”, line 237, in _step
result = next(coro)
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/core.py”, line 1015, in _event_to_service_call
yield from service_handler.func(service_call)
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/alarm_control_panel/init.py”, line 109, in async_alarm_service_handler
yield from getattr(alarm, method)(code)
File “/usr/lib/python3.4/asyncio/coroutines.py”, line 141, in coro
res = func(*args, **kw)
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/alarm_control_panel/alarmdecoder.py”, line 119, in async_alarm_arm_home
self.hass.data[DATA_AD].send(“{!s}3”.format(code))
File “/home/homeassistant/.homeassistant/deps/alarmdecoder/decoder.py”, line 260, in send
self._device.write(data)
File “/home/homeassistant/.homeassistant/deps/alarmdecoder/devices.py”, line 809, in write
raise CommError(‘Error writing to device.’, err)
alarmdecoder.util.CommError: (‘Error writing to device.’, SerialException(‘Attempting to use a port that is not open’,))
Please advise.