SolarEdge Modbus TCP Locks Up UI

I added the integration and was able to get the inverter added, but I’ve noticed under certain changes or randomly will lock up the UI to the point where I have to hard cycle the machine Home Assistant is running on to get access to the UI. Most everything stops responding as well like NodeRed, etc.

This has been the only major change to HA as of late and If I delete the add on HA work as normal.

Any thoughts here? Anybody have the UI or HA lockup with the addon?

It is possible you are running into something that happened after the conversion to python 3.12 this month There are many custom integrations that are not coded thread safe and will lock up HA by corrupting threads.

Look here if you have HA Discord.

If you cannot log into the HA Home Assistant, let me know, I can copy paste stuff over here for you.

Otherwise kill all your custom integrations and add them 1 by 1 until it comes back. It may or may not be solaredge. I don’t have a list.

I’ll take a look at discord, but something tells me this is part of the problem.

Well that didn’t take long. The Error’s don’t seem to point to SolarEdge, but again it’s one of the last few things I did. The only other errors are around the Shelly Integration, but that is a native integration. Anything Stand out here?

Logger: homeassistant
Source: /usr/src/homeassistant/homeassistant/runner.py:138
First occurred: 7:39:35 PM (5 occurrences)
Last logged: 7:39:35 PM

Error doing job: Task exception was never retrieved: File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/usr/src/homeassistant/homeassistant/__main__.py", line 222, in <module> sys.exit(main()) File "/usr/src/homeassistant/homeassistant/__main__.py", line 210, in main exit_code = runner.run(runtime_conf) File "/usr/src/homeassistant/homeassistant/runner.py", line 189, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File "/usr/local/lib/python3.12/asyncio/base_events.py", line 672, in run_until_complete self.run_forever() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 639, in run_forever self._run_once() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1980, in _run_once handle._run() File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/usr/local/lib/python3.12/site-packages/aiohttp/web_ws.py", line 127, in _send_heartbeat self._loop.create_task(self._writer.ping()) # type: ignore[union-attr]
Error doing job: Task exception was never retrieved: File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/usr/src/homeassistant/homeassistant/__main__.py", line 222, in <module> sys.exit(main()) File "/usr/src/homeassistant/homeassistant/__main__.py", line 210, in main exit_code = runner.run(runtime_conf) File "/usr/src/homeassistant/homeassistant/runner.py", line 189, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File "/usr/local/lib/python3.12/asyncio/base_events.py", line 672, in run_until_complete self.run_forever() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 639, in run_forever self._run_once() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1980, in _run_once handle._run() File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/usr/local/lib/python3.12/site-packages/aiohttp/client_ws.py", line 103, in _send_heartbeat self._loop.create_task(self._writer.ping())
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/aiohttp/http_websocket.py", line 715, in ping
    await self._send_frame(message, WSMsgType.PING)
  File "/usr/local/lib/python3.12/site-packages/aiohttp/http_websocket.py", line 682, in _send_frame
    self._write(header + message)
  File "/usr/local/lib/python3.12/site-packages/aiohttp/http_websocket.py", line 702, in _write
    raise ConnectionResetError("Cannot write to closing transport")
ConnectionResetError: Cannot write to closing transport