betaboon / philips-airpurifier-coap

💨 Philips AirPurifier custom component for Home Assistant. With support for new Devices with CoAP protocol. Tested on AC2729/10 (bought early 2020)
70 stars 31 forks source link

component does not load #71

Open daniel1v opened 2 years ago

daniel1v commented 2 years ago

Hi,

I am having an trouble while setting up the integration.

Here is my config.yaml:

fan:
  platform: philips_airpurifier_coap
  host: 192.168.178.66
  model: ac2939
  name: Luftreiniger Wohnzimmer

Here is the log.

2022-03-02 14:56:04 DEBUG (MainThread) [aioairctrl.coap.client] syncing
2022-03-02 14:56:05 DEBUG (MainThread) [coap] Sending request - Token: 7003, Remote: <UDP6EndpointAddress 192.168.178.66>
2022-03-02 14:56:05 DEBUG (MainThread) [coap] Sending message <aiocoap.Message at 0xafd6a550: Type.NON POST (MID 54104, token 7003) remote <UDP6EndpointAddress 192.168.178.66>, 1 option(s), 8 byte(s) payload>
2022-03-02 14:56:06 DEBUG (MainThread) [coap] Incoming message <aiocoap.Message at 0xb10410b8: Type.NON 2.05 Content (MID 54104, token 7003) remote <UDP6EndpointAddress 192.168.178.66 (locally 192.168.178.101%eth0)>, 1 option(s), 8 byte(s) payload>
2022-03-02 14:56:06 DEBUG (MainThread) [coap] Received Response: <aiocoap.Message at 0xb10410b8: Type.NON 2.05 Content (MID 54104, token 7003) remote <UDP6EndpointAddress 192.168.178.66 (locally 192.168.178.101%eth0)>, 1 option(s), 8 byte(s) payload>
2022-03-02 14:56:06 DEBUG (MainThread) [coap] Response <aiocoap.Message at 0xb10410b8: Type.NON 2.05 Content (MID 54104, token 7003) remote <UDP6EndpointAddress 192.168.178.66 (locally 192.168.178.101%eth0)>, 1 option(s), 8 byte(s) payload> matched to request <PlumbingRequest at 0xaf51c910 around <aiocoap.Message at 0xafd6a550: Type.NON POST (MID 54104, token 7003) remote <UDP6EndpointAddress 192.168.178.66>, 1 option(s), 8 byte(s) payload> with 2 callbacks>
2022-03-02 14:56:06 DEBUG (MainThread) [aioairctrl.coap.client] synced: 39B677E2
2022-03-02 14:56:06 DEBUG (MainThread) [aioairctrl.coap.client] retrieving status
2022-03-02 14:56:07 DEBUG (MainThread) [coap] Sending request - Token: 7004, Remote: <UDP6EndpointAddress 192.168.178.66>
2022-03-02 14:56:07 DEBUG (MainThread) [coap] Sending message <aiocoap.Message at 0xafe2dcb8: Type.NON GET (MID 54105, token 7004) remote <UDP6EndpointAddress 192.168.178.66>, 2 option(s)>

It seems like the integration is stuck forever after the last line. Nothing else happens then and Home Assistant reports the component needing longer than 60 seconds to start up.

Any ideas?

Thank you in advance

kongo09 commented 2 years ago

This is most probably due to the CoAP communication breaking down. The problem is known but there is no known fix, really.