Hi Richard, your script has been working like a rock, up until recently. I noticed my Home Alarm instance in Home assistant kept turning 'unavailable' and when I traced it back, the base unit was connecting okay (I pinged it 1k times and it didn't drop any packets), the mqtt broker was ok, but the script kept reporting disconnections.
2021-07-20 20:51:33 INFO (MainThread) [lifesospy.baseunit] Device discovery completed and got initial state
2021-07-20 20:53:22 ERROR (MainThread) [lifesospy.baseunit] Connection was lost. Will attempt to reconnect in 30 seconds
Traceback (most recent call last):
File "/usr/lib/python3.7/asyncio/selector_events.py", line 801, in _read_ready__data_received
data = self._sock.recv(self.max_size)
ConnectionResetError: [Errno 104] Connection reset by peer
2021-07-20 20:53:53 INFO (MainThread) [lifesospy.baseunit] Connected successfully
Hi Richard, your script has been working like a rock, up until recently. I noticed my Home Alarm instance in Home assistant kept turning 'unavailable' and when I traced it back, the base unit was connecting okay (I pinged it 1k times and it didn't drop any packets), the mqtt broker was ok, but the script kept reporting disconnections.
2021-07-20 20:51:33 INFO (MainThread) [lifesospy.baseunit] Device discovery completed and got initial state 2021-07-20 20:53:22 ERROR (MainThread) [lifesospy.baseunit] Connection was lost. Will attempt to reconnect in 30 seconds Traceback (most recent call last): File "/usr/lib/python3.7/asyncio/selector_events.py", line 801, in _read_ready__data_received data = self._sock.recv(self.max_size) ConnectionResetError: [Errno 104] Connection reset by peer 2021-07-20 20:53:53 INFO (MainThread) [lifesospy.baseunit] Connected successfully