qolsysGW started rebooting, loosing connection every few hours

Good Morning,

I been running qolsysgw with Appdemon / MQtt and now I’m getting something weird going on. I will get tons of notifications that are set up in my automation and when i look in my home assistant logs I get “qolsys Panel last error become unavailable” then it comes back online and sends every available automation that is set up with the panel.

Then looking at the appdeamon logs:

File “/config/appdaemon/apps/qolsysgw/qolsys/socket.py”, line 81, in listen
line = await reader.readline()
^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3.11/asyncio/streams.py”, line 545, in readline
line = await self.readuntil(sep)
^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3.11/asyncio/streams.py”, line 637, in readuntil
await self._wait_for_data(‘readuntil’)
File “/usr/lib/python3.11/asyncio/streams.py”, line 522, in _wait_for_data
await self._waiter
File “/usr/lib/python3.11/asyncio/selector_events.py”, line 970, in _read_ready__get_buffer
nbytes = self._sock.recv_into(buf)
^^^^^^^^^^^^^^^^^^^^^^^^^
ConnectionResetError: [Errno 104] Connection reset by peer
2023-07-31 06:04:51.467384 ERROR qolsys_panel: unable to wait for writer to be fully closed; this might not be an issue if the connection was closed on the other side
Traceback (most recent call last):
File “/config/appdaemon/apps/qolsysgw/qolsys/socket.py”, line 125, in listen
await writer.wait_closed()
File “/usr/lib/python3.11/asyncio/streams.py”, line 350, in wait_closed
await self._protocol._get_close_waiter(self)
File “/usr/lib/python3.11/asyncio/selector_events.py”, line 970, in _read_ready__get_buffer
nbytes = self._sock.recv_into(buf)
^^^^^^^^^^^^^^^^^^^^^^^^^
ConnectionResetError: [Errno 104] Connection reset by peer
2023-07-31 06:04:51.468730 INFO qolsys_panel: sleeping 1 second(s) before reconnecting
2023-07-31 06:04:52.473682 INFO qolsys_panel: Establishing connection to 10.xx.xx.xx:12345
2023-07-31 11:12:51.841007 ERROR qolsys_panel: error while listening
Traceback (most recent call last):
File “/config/appdaemon/apps/qolsysgw/qolsys/socket.py”, line 81, in listen
line = await reader.readline()
^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3.11/asyncio/streams.py”, line 545, in readline
line = await self.readuntil(sep)
^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3.11/asyncio/streams.py”, line 637, in readuntil
await self._wait_for_data(‘readuntil’)
File “/usr/lib/python3.11/asyncio/streams.py”, line 522, in _wait_for_data
await self._waiter
File “/usr/lib/python3.11/asyncio/selector_events.py”, line 970, in _read_ready__get_buffer
nbytes = self._sock.recv_into(buf)
^^^^^^^^^^^^^^^^^^^^^^^^^

MQTT logs:
2023-07-31 07:57:04: New connection from 172.xx.xx.xx:60510 on port 1883.
2023-07-31 07:57:04: Client closed its connection.

It looks like its drooping connection for some reason. This been going on since I had it set up but first it has been every few days now its every few hours. Maybe I have something set up wrong. Anybody can help?

I’d open an issue in their github and see if you can get some help there.

I just started going down this rabbit hole. My ADT/Alarm.com subscription ended (For 3 years Alarm.com couldn’t fix their issue with the correct weather in my area) and I’m just trying to make the Qolsys Panel 2 to work with Home Assistant. I’ve installed MQTT, upgraded my Qolsys Panel 2 to the lastest version, and enabled Control4 on the Qolsys panel. It’s a work in progress for sure. Hopefully you got your issues fixed but I’m a lot farther away from getting where you are. Thanks for your input.

@skull791 - Were you able to solve the disconnection issues using Qolsysgw? I’ve been successful with my MQTT connection to the Qolsys IQ Pro Panel, but the panel reboots after 10min. It’s like the keep alive (sent every 4 min) is not being accepted by the Panel.

Please disregard. After upgrading to v4.3.0n on my IQ Pro Panel, everything worked fine again.

No problem I stop using this and start using this with out any issues and super easy set up.