I also have this integration working for some time, i notice the following since latest releases.
Issue 1 after I restart homeassistant it hangs on loading the integration until i do something with the airpurifier, change mode on the device or turn off or onā¦ then the integration loads and homeassistant startsā¦ otherwise it just hangs until a timeout and the device is greyed out.
Issue 2 After latest releases it looses state, Ha (or node red) turns it ā¦ the device turns on but then after few seconds the button turns off (not the device) and the state is out of syncā¦
See Logging:
2022-05-21 09:54:52 DEBUG (MainThread) [aioairctrl.coap.client] REQUEST: {"state": {"desired": {"CommandType": "app", "DeviceId": "", "EnduserId": "", "pwr": "1"}}}
2022-05-21 09:54:52 DEBUG (MainThread) [coap] Sending request - Token: 8cbd, Remote: <UDP6EndpointAddress 192.168.1.74>
2022-05-21 09:54:52 DEBUG (MainThread) [coap] Sending message <aiocoap.Message at 0x7f90ac3100: Type.NON POST (MID 42295, token 8cbd) remote <UDP6EndpointAddress 192.168.1.74>, 1 option(s), 264 byte(s) payload>
2022-05-21 09:54:52 DEBUG (MainThread) [coap] Incoming message <aiocoap.Message at 0x7f91c795e0: Type.NON 2.05 Content (MID 42295, token 8cbd) remote <UDP6EndpointAddress 192.168.1.74 (locally 192.168.1.75%eth0)>, 1 option(s), 19 byte(s) payload>
2022-05-21 09:54:52 DEBUG (MainThread) [coap] Received Response: <aiocoap.Message at 0x7f91c795e0: Type.NON 2.05 Content (MID 42295, token 8cbd) remote <UDP6EndpointAddress 192.168.1.74 (locally 192.168.1.75%eth0)>, 1 option(s), 19 byte(s) payload>
2022-05-21 09:54:52 DEBUG (MainThread) [coap] Response <aiocoap.Message at 0x7f91c795e0: Type.NON 2.05 Content (MID 42295, token 8cbd) remote <UDP6EndpointAddress 192.168.1.74 (locally 192.168.1.75%eth0)>, 1 option(s), 19 byte(s) payload> matched to request <PlumbingRequest at 0x7f90823160 around <aiocoap.Message at 0x7f90ac3100: Type.NON POST (MID 42295, token 8cbd) remote <UDP6EndpointAddress 192.168.1.74>, 1 option(s), 264 byte(s) payload> with 2 callbacks>
2022-05-21 09:54:52 DEBUG (MainThread) [aioairctrl.coap.client] RESPONSE: b'{"status":"failed"}'
2022-05-21 09:54:52 DEBUG (MainThread) [aioairctrl.coap.client] set_control_value failed. resyncing...
2022-05-21 09:54:52 DEBUG (MainThread) [aioairctrl.coap.client] syncing
2022-05-21 09:54:52 DEBUG (MainThread) [coap] Sending request - Token: 8cbe, Remote: <UDP6EndpointAddress 192.168.1.74>
2022-05-21 09:54:52 DEBUG (MainThread) [coap] Sending message <aiocoap.Message at 0x7f91c79940: Type.NON POST (MID 42296, token 8cbe) remote <UDP6EndpointAddress 192.168.1.74>, 1 option(s), 8 byte(s) payload>
2022-05-21 09:54:52 DEBUG (MainThread) [coap] Incoming message <aiocoap.Message at 0x7f91c79400: Type.NON 2.05 Content (MID 42296, token 8cbe) remote <UDP6EndpointAddress 192.168.1.74 (locally 192.168.1.75%eth0)>, 1 option(s), 8 byte(s) payload>
2022-05-21 09:54:52 DEBUG (MainThread) [coap] Received Response: <aiocoap.Message at 0x7f91c79400: Type.NON 2.05 Content (MID 42296, token 8cbe) remote <UDP6EndpointAddress 192.168.1.74 (locally 192.168.1.75%eth0)>, 1 option(s), 8 byte(s) payload>
2022-05-21 09:54:52 DEBUG (MainThread) [coap] Response <aiocoap.Message at 0x7f91c79400: Type.NON 2.05 Content (MID 42296, token 8cbe) remote <UDP6EndpointAddress 192.168.1.74 (locally 192.168.1.75%eth0)>, 1 option(s), 8 byte(s) payload> matched to request <PlumbingRequest at 0x7f90823340 around <aiocoap.Message at 0x7f91c79940: Type.NON POST (MID 42296, token 8cbe) remote <UDP6EndpointAddress 192.168.1.74>, 1 option(s), 8 byte(s) payload> with 2 callbacks>
2022-05-21 09:54:52 DEBUG (MainThread) [aioairctrl.coap.client] synced: 161A0377
2022-05-21 09:54:52 DEBUG (MainThread) [aioairctrl.coap.client] set_control_value failed. retrying...
2022-05-21 09:54:52 DEBUG (MainThread) [aioairctrl.coap.client] REQUEST: {"state": {"desired": {"CommandType": "app", "DeviceId": "", "EnduserId": "", "pwr": "1"}}}
2022-05-21 09:54:52 DEBUG (MainThread) [coap] Sending request - Token: 8cbf, Remote: <UDP6EndpointAddress 192.168.1.74>
2022-05-21 09:54:52 DEBUG (MainThread) [coap] Sending message <aiocoap.Message at 0x7f91c79700: Type.NON POST (MID 42297, token 8cbf) remote <UDP6EndpointAddress 192.168.1.74>, 1 option(s), 264 byte(s) payload>
2022-05-21 09:54:52 DEBUG (MainThread) [coap] Incoming message <aiocoap.Message at 0x7f9a2bab50: Type.NON 2.05 Content (MID 42297, token 8cbf) remote <UDP6EndpointAddress 192.168.1.74 (locally 192.168.1.75%eth0)>, 1 option(s), 20 byte(s) payload>
2022-05-21 09:54:52 DEBUG (MainThread) [coap] Received Response: <aiocoap.Message at 0x7f9a2bab50: Type.NON 2.05 Content (MID 42297, token 8cbf) remote <UDP6EndpointAddress 192.168.1.74 (locally 192.168.1.75%eth0)>, 1 option(s), 20 byte(s) payload>
2022-05-21 09:54:52 DEBUG (MainThread) [coap] Response <aiocoap.Message at 0x7f9a2bab50: Type.NON 2.05 Content (MID 42297, token 8cbf) remote <UDP6EndpointAddress 192.168.1.74 (locally 192.168.1.75%eth0)>, 1 option(s), 20 byte(s) payload> matched to request <PlumbingRequest at 0x7f91c79b20 around <aiocoap.Message at 0x7f91c79700: Type.NON POST (MID 42297, token 8cbf) remote <UDP6EndpointAddress 192.168.1.74>, 1 option(s), 264 byte(s) payload> with 2 callbacks>
2022-05-21 09:54:52 DEBUG (MainThread) [aioairctrl.coap.client] RESPONSE: b'{"status":"success"}'
Hopefully this can be fixedā¦ did not have this behaviour beforeā¦
Greetings
AC4236 My Device
Philips AirPurifier (with CoAP)
v0.10.7