Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot connect to CX3120 #246

Open
mo-seph opened this issue Feb 6, 2025 · 2 comments
Open

Cannot connect to CX3120 #246

mo-seph opened this issue Feb 6, 2025 · 2 comments

Comments

@mo-seph
Copy link

mo-seph commented Feb 6, 2025

I've got a CX3120, I can talk to it with aioairctl or the Philips App. If I try with this integration, I get "Cannot Connect to Device":

Image

In the logs, I get:

Logger: custom_components.philips_airpurifier_coap.config_flow
Source: custom_components/philips_airpurifier_coap/config_flow.py:231
integration: Philips AirPurifier (with CoAP) ([documentation](https://github.com/kongo09/philips-airpurifier-coap), [issues](https://github.com/kongo09/philips-airpurifier-coap/issues))
First occurred: 10:41:20 (1 occurrences)
Last logged: 10:41:20

Failed to connect: [Errno 97] Address family not supported by protocol

I get the same if I use 'mxchip' as the device hostname (which works fine if I ping it).

It's pretty instant, so I don't think it's hitting the 30s timeout.

(and just for proof of connection, from the machine running HA:

> ping mxchip
PING mxchip.home (192.168.2.57) 56(84) bytes of data.
64 bytes from mxchip.home (192.168.2.57): icmp_seq=1 ttl=255 time=134 ms

)

@kongo09
Copy link
Owner

kongo09 commented Feb 23, 2025

Can you please enable debug logging and see if you can identify more log entries?

I suspect that this is a problem with ipv6. Some users have reported difficulties before and even though the devices were reachable via ipv4 (as you demonstrate) the libraries still make use of ipv6 (for whatever reason). Can you check if that is disabled in your network, on your home assistant machine or maybe the containers you run HA in?

@mo-seph
Copy link
Author

mo-seph commented Feb 24, 2025

Confirmed - I enabled ipv6 on my HA machine, and now it works!

For info: when I enabled ipv6 initially, the HA integration still failed to connect, but it took longer to fail (2-3 seconds, rather than instantly failing). After I unplugged and re-plugged the heater, it started to work.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants