kongo09 / philips-airpurifier-coap

💨 Philips AirPurifier custom component for Home Assistant. Supports local CoAP protocol.
175 stars 27 forks source link

Lost connection to AC2729/10 #162

Open GAS85 opened 2 days ago

GAS85 commented 2 days ago

Hey, like your project very much, thanks for it!

Today I turn on my purifier that I didn't use for a few weeks and it is not shown in HA. I tries to restart integration, downgraded to 0.18.7, but no success. The error is still there [Errno 97] Address family not supported by protocol

Here is my debug log ``` 2024-10-20 00:28:42.095 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration flightradar24 which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-10-20 00:28:42.096 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration philips_airpurifier_coap which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-10-20 00:28:42.097 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-10-20 00:28:42.097 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration phonetrack which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-10-20 00:28:42.097 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration dreame_vacuum which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-10-20 00:28:49.101 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'philips_airpurifier_coap' calls hass.http.register_static_path which is deprecated because it does blocking I/O in the event loop, instead call `await hass.http.async_register_static_paths([StaticPathConfig("/philips_airpurifier_coap/main.js", "/config/custom_components/philips_airpurifier_coap/main.js", True)])`; This function will be removed in 2025.7 at custom_components/philips_airpurifier_coap/__init__.py, line 64: hass.http.register_static_path(LOADER_URL, hass.config.path(LOADER_PATH), True), please create a bug report at https://github.com/kongo09/philips-airpurifier-coap/issues 2024-10-20 00:28:49.115 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to walk with args ('/config/custom_components/philips_airpurifier_coap/icons/pap',) inside the event loop by custom integration 'philips_airpurifier_coap' at custom_components/philips_airpurifier_coap/__init__.py, line 72: for dirpath, _dirnames, filenames in walk(iconpath): (offender: /config/custom_components/philips_airpurifier_coap/__init__.py, line 72: for dirpath, _dirnames, filenames in walk(iconpath):), please create a bug report at https://github.com/kongo09/philips-airpurifier-coap/issues For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#walk Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/src/homeassistant/homeassistant/__main__.py", line 223, in sys.exit(main()) File "/usr/src/homeassistant/homeassistant/__main__.py", line 209, 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 674, in run_until_complete self.run_forever() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever self._run_once() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, 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/src/homeassistant/homeassistant/setup.py", line 165, in async_setup_component result = await _async_setup_component(hass, domain, config) File "/usr/src/homeassistant/homeassistant/setup.py", line 416, in _async_setup_component result = await task File "/config/custom_components/philips_airpurifier_coap/__init__.py", line 72, in async_setup for dirpath, _dirnames, filenames in walk(iconpath): 2024-10-20 00:28:49.124 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to scandir with args ('/config/custom_components/philips_airpurifier_coap/icons/pap',) inside the event loop by custom integration 'philips_airpurifier_coap' at custom_components/philips_airpurifier_coap/__init__.py, line 72: for dirpath, _dirnames, filenames in walk(iconpath): (offender: , line 366: ?), please create a bug report at https://github.com/kongo09/philips-airpurifier-coap/issues For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#scandir Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/src/homeassistant/homeassistant/__main__.py", line 223, in sys.exit(main()) File "/usr/src/homeassistant/homeassistant/__main__.py", line 209, 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 674, in run_until_complete self.run_forever() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever self._run_once() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, 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/src/homeassistant/homeassistant/setup.py", line 165, in async_setup_component result = await _async_setup_component(hass, domain, config) File "/usr/src/homeassistant/homeassistant/setup.py", line 416, in _async_setup_component result = await task File "/config/custom_components/philips_airpurifier_coap/__init__.py", line 72, in async_setup for dirpath, _dirnames, filenames in walk(iconpath): 2024-10-20 00:28:49.129 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'philips_airpurifier_coap' calls hass.http.register_static_path which is deprecated because it does blocking I/O in the event loop, instead call `await hass.http.async_register_static_paths([StaticPathConfig("/philips_airpurifier_coap/icons/pap", "/config/custom_components/philips_airpurifier_coap/icons/pap", True)])`; This function will be removed in 2025.7 at custom_components/philips_airpurifier_coap/__init__.py, line 89: hass.http.register_static_path(ICONS_URL + "/" + iset, iconpath, True), please create a bug report at https://github.com/kongo09/philips-airpurifier-coap/issues 2024-10-20 00:28:49.174 WARNING (ImportExecutor_0) [homeassistant.components.device_tracker] SOURCE_TYPE_GPS was used from phonetrack, this is a deprecated constant which will be removed in HA Core 2025.1. Use SourceType.GPS instead, please report it to the author of the 'phonetrack' custom integration 2024-10-20 00:28:49.177 WARNING (ImportExecutor_0) [homeassistant.components.device_tracker] SOURCE_TYPE_GPS was used from phonetrack, this is a deprecated constant which will be removed in HA Core 2025.1. Use SourceType.GPS instead, please report it to the author of the 'phonetrack' custom integration 2024-10-20 00:28:49.241 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to load_default_certs with args (, ) inside the event loop by integration 'homematicip_cloud' at homeassistant/components/homematicip_cloud/hap.py, line 191: hmip_events = await self.home.enable_events() (offender: /usr/local/lib/python3.12/ssl.py, line 713: context.load_default_certs(purpose)), please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+homematicip_cloud%22 For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#load_default_certs Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/src/homeassistant/homeassistant/__main__.py", line 223, in sys.exit(main()) File "/usr/src/homeassistant/homeassistant/__main__.py", line 209, 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 674, in run_until_complete self.run_forever() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever self._run_once() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, 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/src/homeassistant/homeassistant/components/homematicip_cloud/hap.py", line 191, in async_connect hmip_events = await self.home.enable_events() 2024-10-20 00:28:50.984 WARNING (MainThread) [custom_components.philips_airpurifier_coap] Failed to connect to host 192.168.0.91: [Errno 97] Address family not supported by protocol 2024-10-20 00:29:07.166 WARNING (MainThread) [custom_components.philips_airpurifier_coap.config_flow] Failed to connect: [Errno 97] Address family not supported by protocol 2024-10-20 00:29:07.198 ERROR (SyncWorker_4) [homeassistant] Error doing job: Task exception was never retrieved (None) Traceback (most recent call last): File "/config/custom_components/philips_airpurifier_coap/config_flow.py", line 68, in async_step_dhcp client = await CoAPClient.create(self._host) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/aioairctrl/coap/client.py", line 41, in create await obj._init() File "/usr/local/lib/python3.12/site-packages/aioairctrl/coap/client.py", line 34, in _init self._client_context = await Context.create_client_context() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/aiocoap/protocol.py", line 183, in create_client_context await self._append_tokenmanaged_messagemanaged_transport( File "/usr/local/lib/python3.12/site-packages/aiocoap/protocol.py", line 140, in _append_tokenmanaged_messagemanaged_transport transport = await message_interface_constructor(mman) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/aiocoap/transports/udp6.py", line 356, in create_client_transport_endpoint sock = socket.socket(family=socket.AF_INET6, type=socket.SOCK_DGRAM) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/socket.py", line 233, in __init__ _socket.socket.__init__(self, family, type, proto, fileno) OSError: [Errno 97] Address family not supported by protocol The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/discovery_flow.py", line 135, in _async_start await gather_with_limited_concurrency(FLOW_INIT_LIMIT, *init_coros) File "/usr/src/homeassistant/homeassistant/util/async_.py", line 114, in gather_with_limited_concurrency return await gather( ^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/util/async_.py", line 112, in sem_task return await task ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1287, in async_init flow, result = await self._async_init(flow_id, handler, context, data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1322, in _async_init result = await self._async_handle_step(flow, flow.init_step, data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 520, in _async_handle_step result: _FlowResultT = await getattr(flow, method)(user_input) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/philips_airpurifier_coap/config_flow.py", line 92, in async_step_dhcp raise exceptions.ConfigEntryNotReady from ex homeassistant.exceptions.ConfigEntryNotReady: [Errno 97] Address family not supported by protocol 2024-10-20 00:29:07.373 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved (None) Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/dhcp/__init__.py", line 149, in _async_initialize await aiodhcpwatcher.async_init() File "/usr/local/lib/python3.12/site-packages/aiodhcpwatcher/__init__.py", line 217, in async_init await asyncio.get_running_loop().run_in_executor(None, _init_scapy) File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/aiodhcpwatcher/__init__.py", line 242, in _init_scapy from scapy.layers.dhcp import ( File "/usr/local/lib/python3.12/site-packages/scapy/layers/dhcp.py", line 43, in from scapy.layers.inet import UDP, IP File "/usr/local/lib/python3.12/site-packages/scapy/layers/inet.py", line 2541, in import scapy.layers.inet6 File "/usr/local/lib/python3.12/site-packages/scapy/layers/inet6.py", line 110, in import scapy.route6 # noqa: F401 ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/route6.py", line 333, in conf.route6 = Route6() ^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/route6.py", line 47, in __init__ self.resync() File "/usr/local/lib/python3.12/site-packages/scapy/route6.py", line 64, in resync self.routes = read_routes6() ^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/arch/linux/rtnetlink.py", line 961, in read_routes6 cset = scapy.utils6.construct_source_candidate_set(prefix, plen, devaddrs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/utils6.py", line 75, in construct_source_candidate_set if in6_isgladdr(addr) or in6_isuladdr(addr): ^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/utils6.py", line 784, in in6_isgladdr return in6_isincluded(str, '2000::', 3) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/utils6.py", line 714, in in6_isincluded temp = inet_pton(socket.AF_INET6, addr) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/pton_ntop.py", line 92, in inet_pton return socket.inet_pton(af, addr) ^^^^^^^^^^^^^^^^^^^^^^^^^^ OSError: illegal IP address string passed to inet_pton 2024-10-20 00:29:08.188 WARNING (MainThread) [custom_components.philips_airpurifier_coap] Failed to connect to host 192.168.0.91: [Errno 97] Address family not supported by protocol 2024-10-20 00:29:19.506 WARNING (MainThread) [custom_components.philips_airpurifier_coap] Failed to connect to host 192.168.0.91: [Errno 97] Address family not supported by protocol 2024-10-20 00:29:40.816 WARNING (MainThread) [custom_components.philips_airpurifier_coap] Failed to connect to host 192.168.0.91: [Errno 97] Address family not supported by protocol 2024-10-20 00:30:22.112 WARNING (MainThread) [custom_components.philips_airpurifier_coap] Failed to connect to host 192.168.0.91: [Errno 97] Address family not supported by protocol 2024-10-20 00:30:45.773 DEBUG (MainThread) [custom_components.philips_airpurifier_coap] async_setup_entry called for host 192.168.0.91 2024-10-20 00:30:45.777 WARNING (MainThread) [custom_components.philips_airpurifier_coap] Failed to connect to host 192.168.0.91: [Errno 97] Address family not supported by protocol ```

I can ping it very well:

ping 192.168.0.91

Pinging 192.168.0.91 with 32 bytes of data:
Reply from 192.168.0.91: bytes=32 time=115ms TTL=255
Reply from 192.168.0.91: bytes=32 time=6ms TTL=255
Reply from 192.168.0.91: bytes=32 time=38ms TTL=255

Idk why it is simply dropped from the HA. I tried to remove it completely and add again, but now stuck with Cannot connect to device message.

kongo09 commented 1 day ago

Can you talk to the device from the command line as described in the README?

GAS85 commented 1 day ago

Yes, seems cli works well.


aioairctrl --host 192.168.0.91 status --json | json_pp
{
   "ConnectType" : "Online",
   "DeviceId" : "235013ee246011eb9678d2dcc948f974",
   "ProductId" : "85bc26fae62611e8a1e3061302926720",
   "Runtime" : 132446959,
   "StatusType" : "status",
   "WifiVersion" : "AWS_Philips_AIR@91.1",
   "aqil" : 100,
   "aqit" : 7,
   "aqit_ext" : 0,
   "cl" : false,
   "ddp" : "1",
   "dt" : 0,
   "dtrs" : 0,
   "err" : 49408,
   "fltsts0" : 37,
   "fltsts1" : 4477,
   "fltsts2" : 4477,
   "fltt1" : "A3",
   "fltt2" : "C7",
   "free_memory" : 60368,
   "func" : "P",
   "iaql" : 2,
   "mode" : "A",
   "modelid" : "AC2729/10",
   "name" : "Wohnzimmer",
   "om" : "1",
   "otacheck" : false,
   "pm25" : 8,
   "pwr" : "1",
   "range" : "MicroMario",
   "rddp" : "1",
   "rh" : 61,
   "rhset" : 50,
   "rssi" : -39,
   "swversion" : "0.2.1",
   "temp" : 21,
   "type" : "AC2729",
   "uil" : "1",
   "wicksts" : 4477,
   "wifilog" : false,
   "wl" : 0
}
``
GAS85 commented 1 day ago

Ok that's very strange, the first success command was executed directly from my laptop and it works. Now I moved to the Server that hosts Home Assistant and executed same command there and have an error:

aioairctrl --host 192.168.0.91 status --json
Traceback (most recent call last):
  File "/home/gas/env/bin/aioairctrl", line 8, in <module>
    sys.exit(main())
  File "/home/gas/env/lib/python3.10/site-packages/aioairctrl/cli.py", line 139, in main
    asyncio.run(async_main())
  File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/usr/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
    return future.result()
  File "/home/gas/env/lib/python3.10/site-packages/aioairctrl/cli.py", line 97, in async_main
    client = await CoAPClient.create(host=args.host, port=args.port)
  File "/home/gas/env/lib/python3.10/site-packages/aioairctrl/coap/client.py", line 41, in create
    await obj._init()
  File "/home/gas/env/lib/python3.10/site-packages/aioairctrl/coap/client.py", line 34, in _init
    self._client_context = await Context.create_client_context()
  File "/home/gas/env/lib/python3.10/site-packages/aiocoap/protocol.py", line 183, in create_client_context
    await self._append_tokenmanaged_messagemanaged_transport(
  File "/home/gas/env/lib/python3.10/site-packages/aiocoap/protocol.py", line 140, in _append_tokenmanaged_messagemanaged_transport
    transport = await message_interface_constructor(mman)
  File "/home/gas/env/lib/python3.10/site-packages/aiocoap/transports/udp6.py", line 356, in create_client_transport_endpoint
    sock = socket.socket(family=socket.AF_INET6, type=socket.SOCK_DGRAM)
  File "/usr/lib/python3.10/socket.py", line 232, in __init__
    _socket.socket.__init__(self, family, type, proto, fileno)
OSError: [Errno 97] Address family not supported by protocol

And this is an error if I execute command under the Home Assistant docker container:

docker exec homeassistant aioairctrl --host 192.168.0.91 status --json
Traceback (most recent call last):
  File "/usr/local/bin/aioairctrl", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aioairctrl/cli.py", line 139, in main
    asyncio.run(async_main())
  File "/usr/local/lib/python3.12/asyncio/runners.py", line 194, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aioairctrl/cli.py", line 97, in async_main
    client = await CoAPClient.create(host=args.host, port=args.port)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aioairctrl/coap/client.py", line 41, in create
    await obj._init()
  File "/usr/local/lib/python3.12/site-packages/aioairctrl/coap/client.py", line 34, in _init
    self._client_context = await Context.create_client_context()
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiocoap/protocol.py", line 183, in create_client_context
    await self._append_tokenmanaged_messagemanaged_transport(
  File "/usr/local/lib/python3.12/site-packages/aiocoap/protocol.py", line 140, in _append_tokenmanaged_messagemanaged_transport
    transport = await message_interface_constructor(mman)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiocoap/transports/udp6.py", line 356, in create_client_transport_endpoint
    sock = socket.socket(family=socket.AF_INET6, type=socket.SOCK_DGRAM)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/socket.py", line 233, in __init__
    _socket.socket.__init__(self, family, type, proto, fileno)
OSError: [Errno 97] Address family not supported by protocol

I thought it could be firewall issue, but shelly works very well with CoLoT:

sudo tcpdump | grep "5683"
23:46:57.353826 IP shellyswitch25-AAAAAA123.fritz.box.5683 > pi.hole.5683: UDP, length 288
23:46:58.744317 IP shellyswitch25-AAAAAA123.fritz.box.5683 > pi.hole.5683: UDP, length 266
23:47:00.423080 IP shellyswitch25-AAAAAA123.fritz.box.5683 > pi.hole.5683: UDP, length 266
23:47:00.871069 IP shellyswitch25-AAAAAA123.fritz.box.5683 > pi.hole.5683: UDP, length 291
23:47:00.876146 IP shellyswitch25-AAAAAA123.fritz.box.5683 > pi.hole.5683: UDP, length 286
23:47:01.922278 IP shellyplug-s-AAAAAA123.fritz.box.5683 > pi.hole.5683: UDP, length 164
23:47:02.865220 IP shelly1-AAAAAA123.fritz.box.5683 > pi.hole.5683: UDP, length 106
23:47:05.169097 IP shelly1-AAAAAA123.fritz.box.5683 > pi.hole.5683: UDP, length 106

Besides I do not see any activity on when execute command. If I do the same on a laptop, I will see packages. But from the server there is zero of them.

sudo tcpdump | grep philips
23:48:39.916883 ARP, Request who-has philipsluftreiniger.fritz.box tell yana-Dell-G15-5515.fritz.box, length 28
23:48:39.926415 ARP, Reply philipsluftreiniger.fritz.box is-at b0:f8:93:ef:be:b7 (oui Unknown), length 46
23:48:40.191615 IP pi.hole.domain > yana-Dell-G15-5515.fritz.box.50284: 58018* 2/1/1 PTR philipsluftreiniger.fritz.box., PTR mxchip.fritz.box. (137)
23:48:40.515080 IP yana-Dell-G15-5515.fritz.box.37883 > philipsluftreiniger.fritz.box.5683: UDP, length 28
23:48:40.526055 IP philipsluftreiniger.fritz.box.5683 > yana-Dell-G15-5515.fritz.box.37883: UDP, length 16
23:48:40.528329 IP yana-Dell-G15-5515.fritz.box.37883 > philipsluftreiniger.fritz.box.5683: UDP, length 22
kongo09 commented 1 day ago

Which version of Python do you run on the laptop? I notice 3.12 inside the container and 3.10 on the server otherwise. Could that be the difference?

kongo09 commented 1 day ago

Or could it be the ipv6 config? I'm not sure why ipv6 would be used but the situation might be similar to this: https://github.com/chrysn/aiocoap/issues/222

GAS85 commented 1 day ago

It is 3.12.3 on Laptop (works) and 3.12.4 in HA container (stop working), server itself has 3.10.12. I will check IPv6 tomorrow, basically it is disabled on a interface. I also check messages on laptop where it works and communication is purely IPv4:

sudo tcpdump -n | grep "192.168.0.91"
00:29:58.442604 IP 192.168.0.68.52595 > 192.168.0.91.5683: UDP, length 28
00:29:58.451769 IP 192.168.0.91.5683 > 192.168.0.68.52595: UDP, length 16
00:29:58.453477 IP 192.168.0.68.52595 > 192.168.0.91.5683: UDP, length 22
00:30:00.005022 IP 192.168.0.91.5683 > 192.168.0.68.52595: UDP, length 1462