Ankündigung

Einklappen
Keine Ankündigung bisher.

Verliere immer wieder Connection zum KNX Gateway

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    HASS Verliere immer wieder Connection zum KNX Gateway

    Hallo zusammen,

    ich habe hier Home Assistant und ioBroker laufen. Beide Komponenten verlieren leider immer mal wieder die Verbindung zum KNX Gateway. Im Fall von HA ist es sogar so, dass der extrem langsam wird in der Nutzung. Alle restlichen Connectoren laufen jedoch problemlos weiter (Tasmota, SMA usw.)

    Aber mal zu den Details:
    HomeAssistant läuft auf einer Linux VM auf einem HyperV Server. Auslastung geht maximal auf 10% CPU, Speicher kann er auch nehmen, was er will.
    Alle anderen VMs laufen monatelang ohne Probleme, teils Linux, teils Windows und auch diese VM geht problemlos, das System benötigt jedoch manchmal nen Restart.

    IOBroker ebenso auf einer VM, anderes Subnetz, anderer Server, gleiche Rahmenparameter. Restart der KNX Integration behebt das Problem zuverlässig.

    Netzwerk: Ubiquity, 6 Switche, mehrere Subnetze usw. - funktioniert mit allen Servern (Windows, Cloud Connect, Webserer usw.) performant und problemlos.

    KNX Gateway: KNX IP Linemaster 760

    Bei HomeAssistant zeigt es sich derart, dass er Werte verliert über 30-60 Minuten und dann irgendwann ganz abbricht. D.h. Graphen werden erst löchrig und dann kommt gar nichts mehr bis zum System-Reboot.

    image.png

    Hat jemand ne Idee, wieso die KNX Anbindung immer mal wieder nen Anschubser braucht?

    Oder habt ihr ne Idee, wie ich das erkennen kann und dann ggf. automatisiert das neu starten kann?

    #2
    Hi 👋!
    Wirf mal einen Blick in die Logs. https://my.home-assistant.io/redirect/logs/?

    Zitat von Shadowblues Beitrag anzeigen
    Beide Komponenten verlieren leider immer mal wieder die Verbindung zum KNX Gateway.
    (...) das System benötigt jedoch manchmal nen Restart.
    Probiere HA mal auf einem eigenen Gerät - Raspberrypi oder so - um das VM Zeug auszuschließen.

    Zitat von Shadowblues Beitrag anzeigen
    Werte verliert über 30-60 Minuten und dann irgendwann ganz abbricht.
    Was sind das für Werte? Kommen die von KNX?

    Kommentar


      #3
      Hallo meti,
      heute wars wieder so weit :-(
      HA hatte ich mal auf nem Raspberry, hatte ich da weggenommen wegen irgendwas. Aber ja, ist nen Versuch wert.
      Es fällt halt nur auf, dass 2 Geräte hier Probleme machen und beide NUR mit KNX.
      Ich versuch gleich mal die Logs zu finden.

      EDIT: Zufall oder nicht, aber es tritt grade wieder auf:
      2024-12-13 22:40:23.227 WARNING (MainThread) [homeassistant.components.unifi] Exception on update Call https://192.168.99.1:443/proxy/netwo...t/trafficrules received 401 Unauthorized
      2024-12-13 22:40:33.251 WARNING (MainThread) [homeassistant.components.unifi] Exception on update Call https://192.168.99.1:443/proxy/netwo...t/trafficrules received 401 Unauthorized
      2024-12-13 22:40:43.236 WARNING (MainThread) [homeassistant.components.unifi] Exception on update Call https://192.168.99.1:443/proxy/netwo...t/trafficrules received 401 Unauthorized
      2024-12-13 22:40:47.363 ERROR (MainThread) [custom_components.tesla_custom] Unexpected error fetching tesla_custom data
      Traceback (most recent call last):
      File "/usr/local/lib/python3.13/site-packages/httpx/_transports/default.py", line 72, in map_httpcore_exceptions
      yield
      File "/usr/local/lib/python3.13/site-packages/httpx/_transports/default.py", line 377, in handle_async_request
      resp = await self._pool.handle_async_request(req)
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/local/lib/python3.13/site-packages/httpcore/_async/connection_pool.py", line 216, in handle_async_request
      raise exc from None
      File "/usr/local/lib/python3.13/site-packages/httpcore/_async/connection_pool.py", line 196, in handle_async_request
      response = await connection.handle_async_request(
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      pool_request.request
      ^^^^^^^^^^^^^^^^^^^^
      )
      ^
      File "/usr/local/lib/python3.13/site-packages/httpcore/_async/connection.py", line 99, in handle_async_request
      raise exc
      File "/usr/local/lib/python3.13/site-packages/httpcore/_async/connection.py", line 76, in handle_async_request
      stream = await self._connect(request)
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/local/lib/python3.13/site-packages/httpcore/_async/connection.py", line 122, in _connect
      stream = await self._network_backend.connect_tcp(**kwargs)
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/local/lib/python3.13/site-packages/httpcore/_backends/auto.py", line 30, in connect_tcp
      return await self._backend.connect_tcp(
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      ...<5 lines>...
      )
      ^
      File "/usr/local/lib/python3.13/site-packages/httpcore/_backends/anyio.py", line 114, in connect_tcp
      with map_exceptions(exc_map):
      ~~~~~~~~~~~~~~^^^^^^^^^
      File "/usr/local/lib/python3.13/contextlib.py", line 162, in __exit__
      self.gen.throw(value)
      ~~~~~~~~~~~~~~^^^^^^^
      File "/usr/local/lib/python3.13/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
      raise to_exc(exc) from exc
      httpcore.ConnectError: [Errno 98] Address in use
      The above exception was the direct cause of the following exception:
      Traceback (most recent call last):
      File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 379, in _async_refresh
      self.data = await self._async_update_data()
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/config/custom_components/tesla_custom/__init__.py", line 443, in _async_update_data
      data = await controller.update(
      ^^^^^^^^^^^^^^^^^^^^^^^^
      ...<3 lines>...
      )
      ^
      File "/usr/local/lib/python3.13/site-packages/teslajsonpy/controller.py", line 730, in update
      self._product_list = await self.get_product_list()
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/local/lib/python3.13/site-packages/teslajsonpy/controller.py", line 296, in get_product_list
      return (await self.api("PRODUCT_LIST"))["response"]
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/local/lib/python3.13/site-packages/teslajsonpy/controller.py", line 1325, in api
      return await self.__post_with_retries_except_unavailable(
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      "", method=method, data=kwargs, url=uri
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      )
      ^
      File "/usr/local/lib/python3.13/site-packages/tenacity/asyncio/__init__.py", line 189, in async_wrapped
      return await copy(fn, *args, **kwargs)
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/local/lib/python3.13/site-packages/tenacity/asyncio/__init__.py", line 111, in __call__
      do = await self.iter(retry_state=retry_state)
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/local/lib/python3.13/site-packages/tenacity/asyncio/__init__.py", line 153, in iter
      result = await action(retry_state)
      ^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/local/lib/python3.13/site-packages/tenacity/_utils.py", line 99, in inner
      return call(*args, **kwargs)
      File "/usr/local/lib/python3.13/site-packages/tenacity/__init__.py", line 418, in exc_check
      raise retry_exc.reraise()
      ~~~~~~~~~~~~~~~~~^^
      File "/usr/local/lib/python3.13/site-packages/tenacity/__init__.py", line 185, in reraise
      raise self.last_attempt.result()
      ~~~~~~~~~~~~~~~~~~~~~~~~^^
      File "/usr/local/lib/python3.13/concurrent/futures/_base.py", line 449, in result
      return self.__get_result()
      ~~~~~~~~~~~~~~~~~^^
      File "/usr/local/lib/python3.13/concurrent/futures/_base.py", line 401, in __get_result
      raise self._exception
      File "/usr/local/lib/python3.13/site-packages/tenacity/asyncio/__init__.py", line 114, in __call__
      result = await fn(*args, **kwargs)
      ^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/local/lib/python3.13/site-packages/teslajsonpy/controller.py", line 1357, in __post_with_retries_except_unavailable
      return await self.__connection.post(command, method=method, data=data, url=url)
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/local/lib/python3.13/site-packages/teslajsonpy/connection.py", line 165, in post
      return await self.__open(url, method=method, headers=self.head, data=data)
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^
      File "/usr/local/lib/python3.13/site-packages/teslajsonpy/connection.py", line 206, in __open
      resp: httpx.Response = await getattr(self.websession, method)(
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      str(url), headers=headers, cookies=cookies
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      )
      ^
      File "/usr/local/lib/python3.13/site-packages/httpx/_client.py", line 1814, in get
      return await self.request(
      ^^^^^^^^^^^^^^^^^^^
      ...<9 lines>...
      )
      ^
      File "/usr/local/lib/python3.13/site-packages/httpx/_client.py", line 1585, in request
      return await self.send(request, auth=auth, follow_redirects=follow_redirects)
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^
      File "/usr/local/lib/python3.13/site-packages/httpx/_client.py", line 1674, in send
      response = await self._send_handling_auth(
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      ...<4 lines>...
      )
      ^
      File "/usr/local/lib/python3.13/site-packages/httpx/_client.py", line 1702, in _send_handling_auth
      response = await self._send_handling_redirects(
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      ...<3 lines>...
      )
      ^
      File "/usr/local/lib/python3.13/site-packages/httpx/_client.py", line 1739, in _send_handling_redirects
      response = await self._send_single_request(request)
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/local/lib/python3.13/site-packages/httpx/_client.py", line 1776, in _send_single_request
      response = await transport.handle_async_request(request)
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/local/lib/python3.13/site-packages/httpx/_transports/default.py", line 376, in handle_async_request
      with map_httpcore_exceptions():
      ~~~~~~~~~~~~~~~~~~~~~~~^^
      File "/usr/local/lib/python3.13/contextlib.py", line 162, in __exit__
      self.gen.throw(value)
      ~~~~~~~~~~~~~~^^^^^^^
      File "/usr/local/lib/python3.13/site-packages/httpx/_transports/default.py", line 89, in map_httpcore_exceptions
      raise mapped_exc(message) from exc
      httpx.ConnectError: [Errno 98] Address in use
      2024-12-13 22:40:49.182 WARNING (KNX Interface) [xknx.log] No active communication channel.
      2024-12-13 22:40:49.186 WARNING (KNX Interface) [xknx.log] No active communication channel.
      2024-12-13 22:40:49.186 WARNING (KNX Interface) [xknx.log] No active communication channel.
      2024-12-13 22:40:49.187 WARNING (KNX Interface) [xknx.log] No active communication channel.
      2024-12-13 22:40:49.187 WARNING (KNX Interface) [xknx.log] No active communication channel.
      2024-12-13 22:40:49.187 WARNING (KNX Interface) [xknx.log] No active communication channel.
      2024-12-13 22:40:49.187 WARNING (KNX Interface) [xknx.log] No active communication channel.
      2024-12-13 22:40:49.187 WARNING (KNX Interface) [xknx.log] No active communication channel.
      2024-12-13 22:40:49.187 WARNING (KNX Interface) [xknx.log] No active communication channel.
      2024-12-13 22:40:49.187 WARNING (KNX Interface) [xknx.log] No active communication channel.
      2024-12-13 22:40:49.187 WARNING (KNX Interface) [xknx.log] No active communication channel.
      2024-12-13 22:40:49.187 WARNING (KNX Interface) [xknx.log] No active communication channel.
      2024-12-13 22:40:49.188 WARNING (KNX Interface) [xknx.log] No active communication channel.
      2024-12-13 22:40:49.188 WARNING (KNX Interface) [xknx.log] No active communication channel.
      2024-12-13 22:40:49.188 WARNING (KNX Interface) [xknx.log] No active communication channel.
      2024-12-13 22:40:49.188 WARNING (KNX Interface) [xknx.log] No active communication channel.
      2024-12-13 22:40:49.189 WARNING (KNX Interface) [xknx.log] No active communication channel.
      2024-12-13 22:40:49.190 WARNING (KNX Interface) [xknx.log] No active communication channel.
      2024-12-13 22:40:49.191 WARNING (KNX Interface) [xknx.log] No active communication channel.
      2024-12-13 22:40:49.196 WARNING (KNX Interface) [xknx.log] No active communication channel.
      2024-12-13 22:40:49.199 WARNING (KNX Interface) [xknx.log] No active communication channel.
      2024-12-13 22:40:49.201 WARNING (KNX Interface) [xknx.log] No active communication channel.
      2024-12-13 22:40:49.202 WARNING (KNX Interface) [xknx.log] No active communication channel.
      2024-12-13 22:40:49.204 WARNING (KNX Interface) [xknx.log] No active communication channel.
      2024-12-13 22:40:49.206 WARNING (KNX Interface) [xknx.log] No active communication channel.
      2024-12-13 22:40:49.209 WARNING (KNX Interface) [xknx.log] No active communication channel.
      2024-12-13 22:40:49.210 WARNING (KNX Interface) [xknx.log] No active communication channel.
      2024-12-13 22:40:49.212 WARNING (KNX Interface) [xknx.log] No active communication channel.​
      geht dann so hunderte Einträge weiter ..
      Zuletzt geändert von Shadowblues; 13.12.2024, 22:46.

      Kommentar


        #4
        Naja, da ist jetzt wenig über KNX zu sehen... aber das sieht schon sehr nach generellen Netzwerkproblemen aus.

        Kommentar


          #5
          Also eines kann ich Dir sicher sagen, das Netzwerk ist es nicht :-) Da laufen diverse Server problemlos. Und es ist ja auch immer nach nem Reboot wieder weg.

          Ich habe es zwischenzeitlich umgangen aber nicht gelöst durch folgende Automatisierung:
          image.png
          Zuletzt geändert von Shadowblues; 22.01.2025, 22:05.

          Kommentar

          Lädt...
          X