kongo09 / philips-airpurifier-coap

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

Philips CX5120/11 new Heater - add support #95

Closed Anashost closed 8 months ago

Anashost commented 10 months ago

Hey, There's this new affordable space heater from Philips: Philips 5000 Serie - CX5120/11 It connects to WiFi and uses Philips Air+ app just like the supported devices in this repo.

It has functions like:

So is there a chance to add support for it, if i provide the needed logs and info you ask for. Would appreciate that.

Link to product: https://amzn.eu/d/6H4bPyD

Image of product: 61fNHS4Fi0L _AC_SL1500_

kongo09 commented 10 months ago

You can try to get the response as described in the readme

Anashost commented 10 months ago

Thanks @kongo09 for this wonderful integration,

Here's the json responses, hope it helps to bring this device to Home Assistant.

Would appreciate even if i can only turn it off/on from HA, as that would be so useful for automations.

Notes:


Turn on (while last mode was low)

{
  "D01102": 6,
  "D01S03": "Living room",
  "D01S04": "Apollo",
  "D01S05": "CX5120/11",
  "D01107": 0,
  "D01108": 3,
  "D01109": 3,
  "D0110A": 0,
  "D0110B": 1,
  "D0110C": 33,
  "D0110F": 3,
  "D01S12": "0.2.9",
  "D01213": 0,
  "ProductId": "b41d6ad4d91911edb6720217247a73aa",
  "DeviceId": "f3a432c587cd11ee99be5171da9d1490",
  "MCUBoot": true,
  "Runtime": 7638723,
  "rssi": -41,
  "wifilog": false,
  "free_memory": 59048,
  "WifiVersion": "AWS_Philips_AIR@84",
  "StatusType": "status",
  "ConnectType": "Online",
  "D03102": 1,
  "D03105": 100,
  "D03106": 0,
  "D0310A": 3,
  "D0310C": 66,
  "D0310D": 1,
  "D0310E": 37,
  "D0320F": 17920,
  "D03110": 0,
  "D03224": 220,
  "D03130": 100,
  "D03240": 0,
  "D03180": 0,
  "D03182": 2
}

Mode to high

{
  "D01102": 6,
  "D01S03": "Living room",
  "D01S04": "Apollo",
  "D01S05": "CX5120/11",
  "D01107": 0,
  "D01108": 3,
  "D01109": 3,
  "D0110A": 0,
  "D0110B": 1,
  "D0110C": 33,
  "D0110F": 3,
  "D01S12": "0.2.9",
  "D01213": 0,
  "ProductId": "b41d6ad4d91911edb6720217247a73aa",
  "DeviceId": "f3a432c587cd11ee99be5171da9d1490",
  "MCUBoot": true,
  "Runtime": 7762027,
  "rssi": -42,
  "wifilog": false,
  "free_memory": 59104,
  "WifiVersion": "AWS_Philips_AIR@84",
  "StatusType": "status",
  "ConnectType": "Online",
  "D03102": 1,
  "D03105": 100,
  "D03106": 0,
  "D0310A": 3,
  "D0310C": 65,
  "D0310D": 1,
  "D0310E": 37,
  "D0320F": 17920,
  "D03110": 0,
  "D03224": 220,
  "D03130": 100,
  "D03240": 0,
  "D03180": 0,
  "D03182": 2
}

Mode to auto

{
  "D01102": 6,
  "D01S03": "Living room",
  "D01S04": "Apollo",
  "D01S05": "CX5120/11",
  "D01107": 0,
  "D01108": 3,
  "D01109": 3,
  "D0110A": 0,
  "D0110B": 1,
  "D0110C": 33,
  "D0110F": 3,
  "D01S12": "0.2.9",
  "D01213": 0,
  "ProductId": "b41d6ad4d91911edb6720217247a73aa",
  "DeviceId": "f3a432c587cd11ee99be5171da9d1490",
  "MCUBoot": true,
  "Runtime": 7823798,
  "rssi": -41,
  "wifilog": false,
  "free_memory": 58664,
  "WifiVersion": "AWS_Philips_AIR@84",
  "StatusType": "status",
  "ConnectType": "Online",
  "D03102": 1,
  "D03105": 100,
  "D03106": 0,
  "D0310A": 3,
  "D0310C": 0,
  "D0310D": 1,
  "D0310E": 26,
  "D0320F": 17920,
  "D03110": 0,
  "D03224": 220,
  "D03130": 100,
  "D03240": 0,
  "D03180": 0,
  "D03182": 2
}

Mode to ventilation

{
  "D01102": 6,
  "D01S03": "Living room",
  "D01S04": "Apollo",
  "D01S05": "CX5120/11",
  "D01107": 0,
  "D01108": 3,
  "D01109": 3,
  "D0110A": 0,
  "D0110B": 1,
  "D0110C": 33,
  "D0110F": 3,
  "D01S12": "0.2.9",
  "D01213": 0,
  "ProductId": "b41d6ad4d91911edb6720217247a73aa",
  "DeviceId": "f3a432c587cd11ee99be5171da9d1490",
  "MCUBoot": true,
  "Runtime": 7885606,
  "rssi": -40,
  "wifilog": false,
  "free_memory": 58688,
  "WifiVersion": "AWS_Philips_AIR@84",
  "StatusType": "status",
  "ConnectType": "Online",
  "D03102": 1,
  "D03105": 100,
  "D03106": 0,
  "D0310A": 1,
  "D0310C": -127,
  "D0310D": 1,
  "D0310E": 37,
  "D0320F": 17920,
  "D03110": 0,
  "D03224": 220,
  "D03130": 100,
  "D03240": 0,
  "D03180": 0,
  "D03182": 2
}

Turn off swing and lights

{
  "D01102": 6,
  "D01S03": "Living room",
  "D01S04": "Apollo",
  "D01S05": "CX5120/11",
  "D01107": 0,
  "D01108": 3,
  "D01109": 3,
  "D0110A": 0,
  "D0110B": 1,
  "D0110C": 33,
  "D0110F": 3,
  "D01S12": "0.2.9",
  "D01213": 0,
  "ProductId": "b41d6ad4d91911edb6720217247a73aa",
  "DeviceId": "f3a432c587cd11ee99be5171da9d1490",
  "MCUBoot": true,
  "Runtime": 7966935,
  "rssi": -36,
  "wifilog": false,
  "free_memory": 58640,
  "WifiVersion": "AWS_Philips_AIR@84",
  "StatusType": "status",
  "ConnectType": "Online",
  "D03102": 1,
  "D03105": 0,
  "D03106": 0,
  "D0310A": 1,
  "D0310C": -127,
  "D0310D": 1,
  "D0310E": 37,
  "D0320F": 0,
  "D03110": 0,
  "D03224": 220,
  "D03130": 100,
  "D03240": 0,
  "D03180": 0,
  "D03182": 2
}

Turn off (it turns off after 15 seconds)

{
  "D01102": 6,
  "D01S03": "Living room",
  "D01S04": "Apollo",
  "D01S05": "CX5120/11",
  "D01107": 0,
  "D01108": 3,
  "D01109": 3,
  "D0110A": 0,
  "D0110B": 1,
  "D0110C": 33,
  "D0110F": 3,
  "D01S12": "0.2.9",
  "D01213": 0,
  "ProductId": "b41d6ad4d91911edb6720217247a73aa",
  "DeviceId": "f3a432c587cd11ee99be5171da9d1490",
  "MCUBoot": true,
  "Runtime": 8109898,
  "rssi": -36,
  "wifilog": false,
  "free_memory": 58688,
  "WifiVersion": "AWS_Philips_AIR@84",
  "StatusType": "status",
  "ConnectType": "Online",
  "D03102": 0,
  "D03105": 0,
  "D03106": 0,
  "D0310A": 1,
  "D0310C": -127,
  "D0310D": 1,
  "D0310E": 37,
  "D0320F": 0,
  "D03110": 0,
  "D03224": 210,
  "D03130": 100,
  "D03240": 0,
  "D03180": 0,
  "D03182": 2
}

(logs after 15 seconds ends)

{
  "D01102": 6,
  "D01S03": "Living room",
  "D01S04": "Apollo",
  "D01S05": "CX5120/11",
  "D01107": 0,
  "D01108": 3,
  "D01109": 3,
  "D0110A": 0,
  "D0110B": 1,
  "D0110C": 33,
  "D0110F": 3,
  "D01S12": "0.2.9",
  "D01213": 0,
  "ProductId": "b41d6ad4d91911edb6720217247a73aa",
  "DeviceId": "f3a432c587cd11ee99be5171da9d1490",
  "MCUBoot": true,
  "Runtime": 8151992,
  "rssi": -36,
  "wifilog": false,
  "free_memory": 58640,
  "WifiVersion": "AWS_Philips_AIR@84",
  "StatusType": "status",
  "ConnectType": "Online",
  "D03102": 0,
  "D03105": 0,
  "D03106": 0,
  "D0310A": 1,
  "D0310C": -127,
  "D0310D": 1,
  "D0310E": 37,
  "D0320F": 0,
  "D03110": 0,
  "D03224": 210,
  "D03130": 100,
  "D03240": 0,
  "D03180": 0,
  "D03182": 2
}

Turn off with timer set to 0 Note: timer can be set to: [0,1,2,3,4,5,6,7,8,9,10,11,12] hours

{
  "D01102": 6,
  "D01S03": "Living room",
  "D01S04": "Apollo",
  "D01S05": "CX5120/11",
  "D01107": 0,
  "D01108": 3,
  "D01109": 3,
  "D0110A": 0,
  "D0110B": 1,
  "D0110C": 33,
  "D0110F": 3,
  "D01S12": "0.2.9",
  "D01213": 0,
  "ProductId": "b41d6ad4d91911edb6720217247a73aa",
  "DeviceId": "f3a432c587cd11ee99be5171da9d1490",
  "MCUBoot": true,
  "Runtime": 8049266,
  "rssi": -36,
  "wifilog": false,
  "free_memory": 57104,
  "WifiVersion": "AWS_Philips_AIR@84",
  "StatusType": "control",
  "ConnectType": "Online",
  "D03102": 1,
  "D03105": 0,
  "D03106": 0,
  "D0310A": 1,
  "D0310C": -127,
  "D0310D": 1,
  "D0310E": 37,
  "D0320F": 0,
  "D03110": 0,
  "D03224": 220,
  "D03130": 100,
  "D03240": 0,
  "D03180": 0,
  "D03182": 2
}

Extra logs:

Turn on (while last mode was ventilation)

{
  "D01102": 6,
  "D01S03": "Living room",
  "D01S04": "Apollo",
  "D01S05": "CX5120/11",
  "D01107": 0,
  "D01108": 3,
  "D01109": 3,
  "D0110A": 0,
  "D0110B": 1,
  "D0110C": 33,
  "D0110F": 3,
  "D01S12": "0.2.9",
  "D01213": 0,
  "ProductId": "b41d6ad4d91911edb6720217247a73aa",
  "DeviceId": "f3a432c587cd11ee99be5171da9d1490",
  "MCUBoot": true,
  "Runtime": 8212654,
  "rssi": -36,
  "wifilog": false,
  "free_memory": 58640,
  "WifiVersion": "AWS_Philips_AIR@84",
  "StatusType": "status",
  "ConnectType": "Online",
  "D03102": 1,
  "D03105": 0,
  "D03106": 0,
  "D0310A": 1,
  "D0310C": -127,
  "D0310D": 1,
  "D0310E": 37,
  "D0320F": 0,
  "D03110": 0,
  "D03224": 220,
  "D03130": 100,
  "D03240": 0,
  "D03180": 0,
  "D03182": 2
}

Turn off (while current mode is low)

{
  "D01102": 6,
  "D01S03": "Living room",
  "D01S04": "Apollo",
  "D01S05": "CX5120/11",
  "D01107": 0,
  "D01108": 3,
  "D01109": 3,
  "D0110A": 0,
  "D0110B": 1,
  "D0110C": 33,
  "D0110F": 3,
  "D01S12": "0.2.9",
  "D01213": 0,
  "ProductId": "b41d6ad4d91911edb6720217247a73aa",
  "DeviceId": "f3a432c587cd11ee99be5171da9d1490",
  "MCUBoot": true,
  "Runtime": 8274399,
  "rssi": -36,
  "wifilog": false,
  "free_memory": 58640,
  "WifiVersion": "AWS_Philips_AIR@84",
  "StatusType": "status",
  "ConnectType": "Online",
  "D03102": 0,
  "D03105": 0,
  "D03106": 0,
  "D0310A": 3,
  "D0310C": 66,
  "D0310D": 1,
  "D0310E": 37,
  "D0320F": 0,
  "D03110": 0,
  "D03224": 210,
  "D03130": 100,
  "D03240": 0,
  "D03180": 0,
  "D03182": 2
}

Turn on (while last mode was low)

{
  "D01102": 6,
  "D01S03": "Living room",
  "D01S04": "Apollo",
  "D01S05": "CX5120/11",
  "D01107": 0,
  "D01108": 3,
  "D01109": 3,
  "D0110A": 0,
  "D0110B": 1,
  "D0110C": 33,
  "D0110F": 3,
  "D01S12": "0.2.9",
  "D01213": 0,
  "ProductId": "b41d6ad4d91911edb6720217247a73aa",
  "DeviceId": "f3a432c587cd11ee99be5171da9d1490",
  "MCUBoot": true,
  "Runtime": 8356758,
  "rssi": -36,
  "wifilog": false,
  "free_memory": 58640,
  "WifiVersion": "AWS_Philips_AIR@84",
  "StatusType": "status",
  "ConnectType": "Online",
  "D03102": 1,
  "D03105": 0,
  "D03106": 0,
  "D0310A": 3,
  "D0310C": 66,
  "D0310D": 1,
  "D0310E": 37,
  "D0320F": 0,
  "D03110": 0,
  "D03224": 210,
  "D03130": 100,
  "D03240": 0,
  "D03180": 0,
  "D03182": 2
}

Turn off (while current mode is low)

{
  "D01102": 6,
  "D01S03": "Living room",
  "D01S04": "Apollo",
  "D01S05": "CX5120/11",
  "D01107": 0,
  "D01108": 3,
  "D01109": 3,
  "D0110A": 0,
  "D0110B": 1,
  "D0110C": 33,
  "D0110F": 3,
  "D01S12": "0.2.9",
  "D01213": 0,
  "ProductId": "b41d6ad4d91911edb6720217247a73aa",
  "DeviceId": "f3a432c587cd11ee99be5171da9d1490",
  "MCUBoot": true,
  "Runtime": 8437971,
  "rssi": -36,
  "wifilog": false,
  "free_memory": 58184,
  "WifiVersion": "AWS_Philips_AIR@84",
  "StatusType": "status",
  "ConnectType": "Online",
  "D03102": 0,
  "D03105": 0,
  "D03106": 0,
  "D0310A": 3,
  "D0310C": 66,
  "D0310D": 1,
  "D0310E": 37,
  "D0320F": 0,
  "D03110": 0,
  "D03224": 210,
  "D03130": 100,
  "D03240": 0,
  "D03180": 0,
  "D03182": 2
}
kongo09 commented 10 months ago

Oh wow, impressive, thanks.

Now I only need some time...

Anashost commented 10 months ago

Take your time mate.

pgx29 commented 9 months ago

great !

Stoffiiii commented 8 months ago

Would love wenn the Model will be supported <3

kongo09 commented 8 months ago

The codes seem similar to #63

Anashost commented 8 months ago

Yeah, maybe less complicated as it's a space heater and there's no much going on. I would be glad to test some beta's and provide data you need, take your time.

kongo09 commented 8 months ago

I'll work on the AMF765 first as that is better documented. But as the codes look similar, I'll try to keep an eye on this and do some simple stuff that is the same between both models. I'll let you know when there is something to try.

kongo09 commented 8 months ago

I've done a first beta: v0.17-amfcx-beta.1

It can't do much but it should talk to the device, allow you to switch it on and off and also make the lights available. The device entity should also have some few attributes.

Can you please test and let me know if that works?

Anashost commented 8 months ago

I've just tried the beta, couldn't add the device & got some errors:

Screenshot_20240110_004821_Home Assistant

Home Assistant Logs:

Edit: Error 1 seems to only occur if the Air+ app is open or running in the background.

Error 1 ``` Logger: aiohttp.server Source: /usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py:421 First occurred: 12:38:09 AM (1 occurrences) Last logged: 12:38:09 AM Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py", line 452, in _handle_request resp = await request_handler(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/aiohttp/web_app.py", line 543, in _handle resp = await handler(request) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/aiohttp/web_middlewares.py", line 114, in impl return await handler(request) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 85, in security_filter_middleware return await handler(request) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware return await handler(request) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware return await handler(request) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 80, in ban_middleware return await handler(request) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 233, in auth_middleware return await handler(request) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 31, in headers_middleware response = await handler(request) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 149, in handle result = await handler(request, **request.match_info) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/http/decorators.py", line 63, in with_admin return await func(self, request, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 177, in post return await super().post(request, flow_id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 72, in wrapper result = await method(view, request, data, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 110, in post result = await self._flow_mgr.async_configure(flow_id, data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 320, in async_configure result = await self._async_handle_step( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 416, in _async_handle_step result: FlowResult = await getattr(flow, method)(user_input) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/philips_airpurifier_coap/config_flow.py", line 219, in async_step_user self._model = list( ^^^^^ IndexError: list index out of range ```
Error 2 ``` Logger: coap Source: runner.py:188 First occurred: 12:39:33 AM (1 occurrences) Last logged: 12:39:33 AM Connection loss was not expected. ```
Warning ``` This error originated from a custom integration. Logger: custom_components.philips_airpurifier_coap.config_flow Source: custom_components/philips_airpurifier_coap/config_flow.py:209 Integration: Philips AirPurifier (documentation, issues) First occurred: 12:39:15 AM (2 occurrences) Last logged: 12:48:02 AM Timeout, host 192.168.1.36 doesn't answer, aborting ```
kongo09 commented 8 months ago

Please make sure debug logging is enabled and try: v0.17-amfcx-beta.2

Anashost commented 8 months ago

Edit: I restarted home assistant, now i see the device added but no entities.

Also time out error in v0.17-amfcx-beta.2

Logs:

DEBUG logs from home-assistant.log ``` 2024-01-10 11:44:41.308 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.config_flow] async_step_dhcp: called, found: DhcpServiceInfo(ip='192.168.1.36', hostname='mxchip', macaddress='849dc2d81ef3') 2024-01-10 11:44:41.310 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.config_flow] trying to configure host: 192.168.1.36 2024-01-10 11:44:41.394 DEBUG (MainThread) [aioairctrl.coap.client] syncing 2024-01-10 11:44:41.400 DEBUG (MainThread) [coap] Sending request - Token: e938, Remote: 2024-01-10 11:44:41.401 DEBUG (MainThread) [coap] Sending message , 1 option(s), 8 byte(s) payload> 2024-01-10 11:44:41.525 DEBUG (MainThread) [coap] Incoming message , 1 option(s), 8 byte(s) payload> 2024-01-10 11:44:41.526 DEBUG (MainThread) [coap] Received Response: , 1 option(s), 8 byte(s) payload> 2024-01-10 11:44:41.527 DEBUG (MainThread) [coap] Response , 1 option(s), 8 byte(s) payload> matched to request , 1 option(s), 8 byte(s) payload> with 2 callbacks> 2024-01-10 11:44:41.528 DEBUG (MainThread) [aioairctrl.coap.client] synced: 6F6CCA75 2024-01-10 11:44:41.528 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.config_flow] got a valid client for host 192.168.1.36 2024-01-10 11:44:41.529 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.config_flow] trying to get status 2024-01-10 11:44:41.529 DEBUG (MainThread) [aioairctrl.coap.client] retrieving status 2024-01-10 11:44:41.533 DEBUG (MainThread) [coap] Sending request - Token: e939, Remote: 2024-01-10 11:44:41.534 DEBUG (MainThread) [coap] Sending message , 2 option(s)> 2024-01-10 11:44:57.016 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'list object' has no attribute 'value' when rendering '{{ value_json.value }}' 2024-01-10 11:45:11.529 WARNING (MainThread) [custom_components.philips_airpurifier_coap.config_flow] Timeout, host 192.168.1.36 looks like a Philips AirPurifier but doesn't answer, aborting 2024-01-10 11:45:42.327 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.config_flow] trying to configure host: 192.168.1.36 2024-01-10 11:45:42.334 DEBUG (MainThread) [aioairctrl.coap.client] syncing 2024-01-10 11:45:42.338 DEBUG (MainThread) [coap] Sending request - Token: 825c, Remote: 2024-01-10 11:45:42.338 DEBUG (MainThread) [coap] Sending message , 1 option(s), 8 byte(s) payload> 2024-01-10 11:45:42.445 DEBUG (MainThread) [coap] Incoming message , 1 option(s), 8 byte(s) payload> 2024-01-10 11:45:42.446 DEBUG (MainThread) [coap] Received Response: , 1 option(s), 8 byte(s) payload> 2024-01-10 11:45:42.447 DEBUG (MainThread) [coap] Response , 1 option(s), 8 byte(s) payload> matched to request , 1 option(s), 8 byte(s) payload> with 2 callbacks> 2024-01-10 11:45:42.448 DEBUG (MainThread) [aioairctrl.coap.client] synced: 0D4EA1EE 2024-01-10 11:45:42.448 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.config_flow] got a valid client 2024-01-10 11:45:42.448 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.config_flow] trying to get status 2024-01-10 11:45:42.448 DEBUG (MainThread) [aioairctrl.coap.client] retrieving status 2024-01-10 11:45:42.451 DEBUG (MainThread) [coap] Sending request - Token: 825d, Remote: 2024-01-10 11:45:42.452 DEBUG (MainThread) [coap] Sending message , 2 option(s)> 2024-01-10 11:46:12.449 WARNING (MainThread) [custom_components.philips_airpurifier_coap.config_flow] Timeout, host 192.168.1.36 doesn't answer, aborting 2024-01-10 11:46:17.978 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'list object' has no attribute 'value' when rendering '{{ value_json.value }}' 2024-01-10 11:47:38.964 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'list object' has no attribute 'value' when rendering '{{ value_json.value }}' 2024-01-10 11:48:59.938 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'list object' has no attribute 'value' when rendering '{{ value_json.value }}' ```
from HA logs ``` This error originated from a custom integration. Logger: custom_components.philips_airpurifier_coap.config_flow Source: custom_components/philips_airpurifier_coap/config_flow.py:209 Integration: Philips AirPurifier (documentation, issues) First occurred: 11:46:12 AM (1 occurrences) Last logged: 11:46:12 AM Timeout, host 192.168.1.36 doesn't answer, aborting ```
Stoffiiii commented 8 months ago

IMG_3574

kongo09 commented 8 months ago

Ok, there are two flows, one with dhcp based autodiscovery. It often fails so I didn't put the new models into this. I've fixed that now in v0.17-amfcx-beta.3 So please try again.

The manual flow was where I had the first code pieces. It looks like something is happening, but we're not quite there yet. Will look into beta 4 later. @Stoffiiii Please share debug logs.

Stoffiiii commented 8 months ago

oh sorry :-) here the log:

Log 2024-01-10 13:34:34.580 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.config_flow] trying to configure host: 192.168.0.7 2024-01-10 13:34:34.707 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.config_flow] got a valid client 2024-01-10 13:34:34.708 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.config_flow] trying to get status 2024-01-10 13:34:46.819 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.config_flow] got status 2024-01-10 13:34:46.823 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.config_flow] model_map retrieved: 2024-01-10 13:34:46.826 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.config_flow] model_filter applied: 2024-01-10 13:34:46.829 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.config_flow] model_list built: ['CX5120/11'] 2024-01-10 13:34:46.829 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.config_flow] first model selected: CX5120/11 2024-01-10 13:34:46.829 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.config_flow] model type extracted: CX5120/11 2024-01-10 13:34:46.829 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.config_flow] Detected host 192.168.0.7 as model CX5120/11 with name: Praxis 2024-01-10 13:34:46.829 INFO (MainThread) [custom_components.philips_airpurifier_coap.config_flow] Model CX5120/11 not supported. Trying model family 2024-01-10 13:34:46.830 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.config_flow] async_step_user: unique_id=caeab06d857311ee8227c99cbb1b379e 2024-01-10 13:34:46.830 DEBUG (MainThread) [custom_components.philips_airpurifier_coap] async_setup_entry called for host 192.168.0.7 2024-01-10 13:34:46.846 DEBUG (MainThread) [custom_components.philips_airpurifier_coap] got a valid client for host 192.168.0.7 2024-01-10 13:34:46.846 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] init: Creating and autostarting timer for host 192.168.0.7 2024-01-10 13:34:46.846 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] init: finished for host 192.168.0.7 2024-01-10 13:34:46.847 DEBUG (MainThread) [custom_components.philips_airpurifier_coap] got a valid coordinator for host 192.168.0.7 2024-01-10 13:34:46.847 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] async_first_refresh for host 192.168.0.7 2024-01-10 13:34:46.847 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s 2024-01-10 13:34:51.847 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] finished first refresh for host 192.168.0.7 2024-01-10 13:34:51.847 DEBUG (MainThread) [custom_components.philips_airpurifier_coap] coordinator did first refresh for host 192.168.0.7 2024-01-10 13:34:51.855 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Timer cancelled: ('RESET',) 2024-01-10 13:34:51.857 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s 2024-01-10 13:34:51.863 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.fan] async_setup_entry called for platform fan 2024-01-10 13:34:51.863 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] PhilipsEntity __init__ called 2024-01-10 13:34:51.863 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] coordinator.status is: {'D01102': 6, 'D01S03': 'Praxis Heizstrahler ', 'D01S04': 'Apollo', 'D01S05': 'CX5120/11', 'D01107': 0, 'D01108': 3, 'D01109': 3, 'D0110A': 0, 'D0110B': 1, 'D0110C': 33, 'D0110F': 3, 'D01S12': '0.2.9', 'D01213': 0, 'ProductId': 'b41d6ad4d91911edb6720217247a73aa', 'DeviceId': 'caeab06d857311ee8227c99cbb1b379e', 'MCUBoot': True, 'Runtime': 18101293, 'rssi': -50, 'wifilog': False, 'free_memory': 58880, 'WifiVersion': 'AWS_Philips_AIR@84', 'StatusType': 'control', 'ConnectType': 'Online', 'D03102': 1, 'D03105': 100, 'D03106': 0, 'D0310A': 3, 'D0310C': 0, 'D0310D': 1, 'D0310E': 15, 'D0320F': 17920, 'D03110': 0, 'D03224': 160, 'D03130': 0, 'D03240': 0, 'D03180': 1, 'D03182': 2} 2024-01-10 13:34:51.863 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.sensor] async_setup_entry called for platform sensor 2024-01-10 13:34:51.863 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] PhilipsEntity __init__ called 2024-01-10 13:34:51.863 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] coordinator.status is: {'D01102': 6, 'D01S03': 'Praxis Heizstrahler ', 'D01S04': 'Apollo', 'D01S05': 'CX5120/11', 'D01107': 0, 'D01108': 3, 'D01109': 3, 'D0110A': 0, 'D0110B': 1, 'D0110C': 33, 'D0110F': 3, 'D01S12': '0.2.9', 'D01213': 0, 'ProductId': 'b41d6ad4d91911edb6720217247a73aa', 'DeviceId': 'caeab06d857311ee8227c99cbb1b379e', 'MCUBoot': True, 'Runtime': 18101293, 'rssi': -50, 'wifilog': False, 'free_memory': 58880, 'WifiVersion': 'AWS_Philips_AIR@84', 'StatusType': 'control', 'ConnectType': 'Online', 'D03102': 1, 'D03105': 100, 'D03106': 0, 'D0310A': 3, 'D0310C': 0, 'D0310D': 1, 'D0310E': 15, 'D0320F': 17920, 'D03110': 0, 'D03224': 160, 'D03130': 0, 'D03240': 0, 'D03180': 1, 'D03182': 2} 2024-01-10 13:34:51.864 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.switch] async_setup_entry called for platform switch 2024-01-10 13:34:51.864 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.light] async_setup_entry called for platform light 2024-01-10 13:34:51.864 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] PhilipsEntity __init__ called 2024-01-10 13:34:51.864 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] coordinator.status is: {'D01102': 6, 'D01S03': 'Praxis Heizstrahler ', 'D01S04': 'Apollo', 'D01S05': 'CX5120/11', 'D01107': 0, 'D01108': 3, 'D01109': 3, 'D0110A': 0, 'D0110B': 1, 'D0110C': 33, 'D0110F': 3, 'D01S12': '0.2.9', 'D01213': 0, 'ProductId': 'b41d6ad4d91911edb6720217247a73aa', 'DeviceId': 'caeab06d857311ee8227c99cbb1b379e', 'MCUBoot': True, 'Runtime': 18101293, 'rssi': -50, 'wifilog': False, 'free_memory': 58880, 'WifiVersion': 'AWS_Philips_AIR@84', 'StatusType': 'control', 'ConnectType': 'Online', 'D03102': 1, 'D03105': 100, 'D03106': 0, 'D0310A': 3, 'D0310C': 0, 'D0310D': 1, 'D0310E': 15, 'D0320F': 17920, 'D03110': 0, 'D03224': 160, 'D03130': 0, 'D03240': 0, 'D03180': 1, 'D03182': 2} 2024-01-10 13:34:51.864 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.select] async_setup_entry called for platform select 2024-01-10 13:34:51.867 ERROR (MainThread) [homeassistant.components.fan] Error while setting up philips_airpurifier_coap platform for fan Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 360, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/philips_airpurifier_coap/fan.py", line 34, in async_setup_entry device = model_class( ^^^^^^^^^^^^ File "/config/custom_components/philips_airpurifier_coap/philips.py", line 290, in __init__ super().__init__(coordinator, model, name) File "/config/custom_components/philips_airpurifier_coap/philips.py", line 250, in __init__ super().__init__(coordinator) File "/config/custom_components/philips_airpurifier_coap/philips.py", line 183, in __init__ self._name = list( ^^^^^ IndexError: list index out of range 2024-01-10 13:34:51.875 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up philips_airpurifier_coap platform for sensor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 360, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/philips_airpurifier_coap/sensor.py", line 58, in async_setup_entry sensors.append(PhilipsSensor(coordinator, name, model, sensor)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/philips_airpurifier_coap/sensor.py", line 81, in __init__ super().__init__(coordinator) File "/config/custom_components/philips_airpurifier_coap/philips.py", line 183, in __init__ self._name = list( ^^^^^ IndexError: list index out of range 2024-01-10 13:34:51.882 ERROR (MainThread) [homeassistant.components.light] Error while setting up philips_airpurifier_coap platform for light Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 360, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/philips_airpurifier_coap/light.py", line 65, in async_setup_entry lights.append(PhilipsLight(coordinator, name, model, light)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/philips_airpurifier_coap/light.py", line 82, in __init__ super().__init__(coordinator) File "/config/custom_components/philips_airpurifier_coap/philips.py", line 183, in __init__ self._name = list( ^^^^^ IndexError: list index out of range 2024-01-10 13:35:10.538 ERROR (MainThread) [coap] Connection loss was not expected. 2024-01-10 13:37:51.858 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Calling timeout callback 2024-01-10 13:37:51.858 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] reconnect: called for host 192.168.0.7 2024-01-10 13:37:51.859 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] reconnect: creating new reconnect task for host 192.168.0.7 2024-01-10 13:37:51.859 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Timeout callback finished! 2024-01-10 13:37:51.859 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s 2024-01-10 13:37:51.859 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] Reconnecting 2024-01-10 13:37:51.916 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Timer cancelled: ('RESET',) 2024-01-10 13:37:51.916 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s 2024-01-10 13:40:51.918 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Calling timeout callback 2024-01-10 13:40:51.918 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] reconnect: called for host 192.168.0.7 2024-01-10 13:40:51.918 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] reconnect: cancelling reconnect task for host 192.168.0.7 2024-01-10 13:40:51.918 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] reconnect: creating new reconnect task for host 192.168.0.7 2024-01-10 13:40:51.919 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Timeout callback finished! 2024-01-10 13:40:51.919 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s 2024-01-10 13:40:51.919 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] Reconnecting 2024-01-10 13:40:52.041 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Timer cancelled: ('RESET',) 2024-01-10 13:40:52.041 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s
Anashost commented 8 months ago

Still no entities in v0.17-amfcx-beta.3

DEBUG logs ``` 2024-01-10 13:28:33.858 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: roborock 2024-01-10 13:28:34.485 DEBUG (MainThread) [custom_components.philips_airpurifier_coap] async_setup called 2024-01-10 13:28:34.717 DEBUG (MainThread) [custom_components.philips_airpurifier_coap] async_setup_entry called for host 192.168.1.36 2024-01-10 13:28:34.874 DEBUG (MainThread) [aioairctrl.coap.client] syncing 2024-01-10 13:28:36.039 DEBUG (MainThread) [coap] Sending request - Token: 35e7, Remote: 2024-01-10 13:28:36.039 DEBUG (MainThread) [coap] Sending message , 1 option(s), 8 byte(s) payload> 2024-01-10 13:28:36.177 DEBUG (MainThread) [coap] Incoming message , 1 option(s), 8 byte(s) payload> 2024-01-10 13:28:36.178 DEBUG (MainThread) [coap] Received Response: , 1 option(s), 8 byte(s) payload> 2024-01-10 13:28:36.178 DEBUG (MainThread) [coap] Response , 1 option(s), 8 byte(s) payload> matched to request , 1 option(s), 8 byte(s) payload> with 2 callbacks> 2024-01-10 13:28:36.420 DEBUG (MainThread) [aioairctrl.coap.client] synced: 0BFCC791 2024-01-10 13:28:36.436 DEBUG (MainThread) [custom_components.philips_airpurifier_coap] got a valid client for host 192.168.1.36 2024-01-10 13:28:36.436 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] init: Creating and autostarting timer for host 192.168.1.36 2024-01-10 13:28:36.436 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] init: finished for host 192.168.1.36 2024-01-10 13:28:36.437 DEBUG (MainThread) [custom_components.philips_airpurifier_coap] got a valid coordinator for host 192.168.1.36 2024-01-10 13:28:36.437 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] async_first_refresh for host 192.168.1.36 2024-01-10 13:28:36.437 DEBUG (MainThread) [aioairctrl.coap.client] retrieving status 2024-01-10 13:28:36.456 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s 2024-01-10 13:28:36.837 DEBUG (MainThread) [coap] Sending request - Token: 35e8, Remote: 2024-01-10 13:28:36.837 DEBUG (MainThread) [coap] Sending message , 2 option(s)> 2024-01-10 13:31:35.704 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: philips_airpurifier_coap 2024-01-10 13:31:36.461 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Calling timeout callback 2024-01-10 13:31:36.461 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] reconnect: called for host 192.168.1.36 2024-01-10 13:31:36.461 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] reconnect: creating new reconnect task for host 192.168.1.36 2024-01-10 13:31:36.462 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Timeout callback finished! 2024-01-10 13:31:36.462 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s 2024-01-10 13:31:36.462 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] Reconnecting 2024-01-10 13:31:36.462 DEBUG (MainThread) [coap] Shutting down context 2024-01-10 13:31:36.464 DEBUG (MainThread) [coap] Shutting down any outgoing connections on on 2024-01-10 13:31:36.473 DEBUG (MainThread) [coap] Shutting down any outgoing connections on on 2024-01-10 13:31:36.475 DEBUG (MainThread) [coap] Shutting down any connections on 2024-01-10 13:31:36.477 ERROR (MainThread) [custom_components.philips_airpurifier_coap.philips] Config not ready, first refresh failed for host 192.168.1.36 2024-01-10 13:31:36.486 DEBUG (MainThread) [aioairctrl.coap.client] syncing 2024-01-10 13:31:36.491 DEBUG (MainThread) [coap] Sending request - Token: 4d40, Remote: 2024-01-10 13:31:36.491 DEBUG (MainThread) [coap] Sending message , 1 option(s), 8 byte(s) payload> 2024-01-10 13:31:36.583 DEBUG (MainThread) [coap] Incoming message , 1 option(s), 8 byte(s) payload> 2024-01-10 13:31:36.584 DEBUG (MainThread) [coap] Received Response: , 1 option(s), 8 byte(s) payload> 2024-01-10 13:31:36.584 DEBUG (MainThread) [coap] Response , 1 option(s), 8 byte(s) payload> matched to request , 1 option(s), 8 byte(s) payload> with 2 callbacks> 2024-01-10 13:31:36.585 DEBUG (MainThread) [aioairctrl.coap.client] synced: 51E6DB2C 2024-01-10 13:31:36.586 DEBUG (MainThread) [aioairctrl.coap.client] observing status 2024-01-10 13:31:36.587 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Timer cancelled: ('RESET',) 2024-01-10 13:31:36.589 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s 2024-01-10 13:31:36.593 DEBUG (MainThread) [coap] Sending request - Token: 4d41, Remote: 2024-01-10 13:31:36.593 DEBUG (MainThread) [coap] Sending message , 2 option(s)> 2024-01-10 13:31:36.800 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'homeassistant.util.read_only_dict.ReadOnlyDict object' has no attribute 'current_position' when rendering '{{ states.cover.all_shades.attributes.current_position }}%' 2024-01-10 13:31:37.090 DEBUG (MainThread) [custom_components.philips_airpurifier_coap] async_setup_entry called for host 192.168.1.36 2024-01-10 13:31:37.249 DEBUG (MainThread) [aioairctrl.coap.client] syncing 2024-01-10 13:31:37.333 DEBUG (MainThread) [coap] Sending request - Token: 214e, Remote: 2024-01-10 13:31:37.334 DEBUG (MainThread) [coap] Sending message , 1 option(s), 8 byte(s) payload> 2024-01-10 13:31:37.458 DEBUG (MainThread) [coap] Incoming message , 1 option(s), 8 byte(s) payload> 2024-01-10 13:31:37.458 DEBUG (MainThread) [coap] Received Response: , 1 option(s), 8 byte(s) payload> 2024-01-10 13:31:37.458 DEBUG (MainThread) [coap] Response , 1 option(s), 8 byte(s) payload> matched to request , 1 option(s), 8 byte(s) payload> with 2 callbacks> 2024-01-10 13:31:37.478 DEBUG (MainThread) [aioairctrl.coap.client] synced: 054AC964 2024-01-10 13:31:37.500 DEBUG (MainThread) [custom_components.philips_airpurifier_coap] got a valid client for host 192.168.1.36 2024-01-10 13:31:37.500 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] init: Creating and autostarting timer for host 192.168.1.36 2024-01-10 13:31:37.501 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] init: finished for host 192.168.1.36 2024-01-10 13:31:37.501 DEBUG (MainThread) [custom_components.philips_airpurifier_coap] got a valid coordinator for host 192.168.1.36 2024-01-10 13:31:37.501 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] async_first_refresh for host 192.168.1.36 2024-01-10 13:31:37.501 DEBUG (MainThread) [aioairctrl.coap.client] retrieving status 2024-01-10 13:31:37.515 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s 2024-01-10 13:31:37.534 DEBUG (MainThread) [coap] Sending request - Token: 214f, Remote: 2024-01-10 13:31:37.534 DEBUG (MainThread) [coap] Sending message , 2 option(s)> 2024-01-10 13:31:47.004 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'list object' has no attribute 'value' when rendering '{{ value_json.value }}' 2024-01-10 13:31:58.278 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.config_flow] async_step_dhcp: called, found: DhcpServiceInfo(ip='192.168.1.36', hostname='mxchip', macaddress='849dc2d81ef3') 2024-01-10 13:31:58.281 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.config_flow] trying to configure host: 192.168.1.36 2024-01-10 13:31:58.288 DEBUG (MainThread) [aioairctrl.coap.client] syncing 2024-01-10 13:31:58.291 DEBUG (MainThread) [coap] Sending request - Token: 223f, Remote: 2024-01-10 13:31:58.291 DEBUG (MainThread) [coap] Sending message , 1 option(s), 8 byte(s) payload> 2024-01-10 13:31:58.399 DEBUG (MainThread) [coap] Incoming message , 1 option(s), 8 byte(s) payload> 2024-01-10 13:31:58.399 DEBUG (MainThread) [coap] Received Response: , 1 option(s), 8 byte(s) payload> 2024-01-10 13:31:58.400 DEBUG (MainThread) [coap] Response , 1 option(s), 8 byte(s) payload> matched to request , 1 option(s), 8 byte(s) payload> with 2 callbacks> 2024-01-10 13:31:58.406 DEBUG (MainThread) [aioairctrl.coap.client] synced: 7310E2DB 2024-01-10 13:31:58.407 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.config_flow] got a valid client for host 192.168.1.36 2024-01-10 13:31:58.407 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.config_flow] trying to get status 2024-01-10 13:31:58.407 DEBUG (MainThread) [aioairctrl.coap.client] retrieving status 2024-01-10 13:31:58.411 DEBUG (MainThread) [coap] Sending request - Token: 2240, Remote: 2024-01-10 13:31:58.412 DEBUG (MainThread) [coap] Sending message , 2 option(s)> 2024-01-10 13:32:28.408 WARNING (MainThread) [custom_components.philips_airpurifier_coap.config_flow] Timeout, host 192.168.1.36 looks like a Philips AirPurifier but doesn't answer, aborting 2024-01-10 13:33:07.839 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'list object' has no attribute 'value' when rendering '{{ value_json.value }}' 2024-01-10 13:33:57.242 DEBUG (MainThread) [coap] Incoming message , 3 option(s), 1352 byte(s) payload> 2024-01-10 13:33:57.243 DEBUG (MainThread) [coap] Received Response: , 3 option(s), 1352 byte(s) payload> 2024-01-10 13:33:57.244 INFO (MainThread) [coap] Response , 3 option(s), 1352 byte(s) payload> could not be matched to any request 2024-01-10 13:33:57.245 INFO (MainThread) [coap] Ignoring unknown response (which is not a unicast CON) 2024-01-10 13:34:28.717 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'list object' has no attribute 'value' when rendering '{{ value_json.value }}' 2024-01-10 13:34:36.591 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Calling timeout callback 2024-01-10 13:34:36.591 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] reconnect: called for host 192.168.1.36 2024-01-10 13:34:36.591 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] reconnect: cancelling reconnect task for host 192.168.1.36 2024-01-10 13:34:36.592 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] reconnect: creating new reconnect task for host 192.168.1.36 2024-01-10 13:34:36.592 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Timeout callback finished! 2024-01-10 13:34:36.592 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s 2024-01-10 13:34:36.592 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] Reconnecting 2024-01-10 13:34:36.593 DEBUG (MainThread) [coap] Shutting down context 2024-01-10 13:34:36.594 DEBUG (MainThread) [coap] Shutting down any outgoing connections on on 2024-01-10 13:34:36.594 DEBUG (MainThread) [coap] Shutting down any outgoing connections on on 2024-01-10 13:34:36.594 DEBUG (MainThread) [coap] Shutting down any connections on 2024-01-10 13:34:36.617 DEBUG (MainThread) [aioairctrl.coap.client] syncing 2024-01-10 13:34:36.622 DEBUG (MainThread) [coap] Sending request - Token: 123a, Remote: 2024-01-10 13:34:36.622 DEBUG (MainThread) [coap] Sending message , 1 option(s), 8 byte(s) payload> 2024-01-10 13:34:36.706 DEBUG (MainThread) [coap] Incoming message , 1 option(s), 8 byte(s) payload> 2024-01-10 13:34:36.707 DEBUG (MainThread) [coap] Received Response: , 1 option(s), 8 byte(s) payload> 2024-01-10 13:34:36.708 DEBUG (MainThread) [coap] Response , 1 option(s), 8 byte(s) payload> matched to request , 1 option(s), 8 byte(s) payload> with 2 callbacks> 2024-01-10 13:34:36.709 DEBUG (MainThread) [aioairctrl.coap.client] synced: 16E7575E 2024-01-10 13:34:36.710 DEBUG (MainThread) [aioairctrl.coap.client] observing status 2024-01-10 13:34:36.710 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Timer cancelled: ('RESET',) 2024-01-10 13:34:36.711 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s 2024-01-10 13:34:36.714 DEBUG (MainThread) [coap] Sending request - Token: 123b, Remote: 2024-01-10 13:34:36.715 DEBUG (MainThread) [coap] Sending message , 2 option(s)> 2024-01-10 13:34:37.517 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Calling timeout callback 2024-01-10 13:34:37.517 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] reconnect: called for host 192.168.1.36 2024-01-10 13:34:37.517 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] reconnect: creating new reconnect task for host 192.168.1.36 2024-01-10 13:34:37.517 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Timeout callback finished! 2024-01-10 13:34:37.517 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s 2024-01-10 13:34:37.518 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] Reconnecting 2024-01-10 13:34:37.518 DEBUG (MainThread) [coap] Shutting down context 2024-01-10 13:34:37.519 DEBUG (MainThread) [coap] Shutting down any outgoing connections on on 2024-01-10 13:34:37.519 DEBUG (MainThread) [coap] Shutting down any outgoing connections on on 2024-01-10 13:34:37.519 DEBUG (MainThread) [coap] Shutting down any connections on 2024-01-10 13:34:37.521 ERROR (MainThread) [custom_components.philips_airpurifier_coap.philips] Config not ready, first refresh failed for host 192.168.1.36 2024-01-10 13:34:37.527 DEBUG (MainThread) [aioairctrl.coap.client] syncing 2024-01-10 13:34:37.530 DEBUG (MainThread) [coap] Sending request - Token: 4758, Remote: 2024-01-10 13:34:37.531 DEBUG (MainThread) [coap] Sending message , 1 option(s), 8 byte(s) payload> 2024-01-10 13:34:37.637 DEBUG (MainThread) [coap] Incoming message , 1 option(s), 8 byte(s) payload> 2024-01-10 13:34:37.638 DEBUG (MainThread) [coap] Received Response: , 1 option(s), 8 byte(s) payload> 2024-01-10 13:34:37.638 DEBUG (MainThread) [coap] Response , 1 option(s), 8 byte(s) payload> matched to request , 1 option(s), 8 byte(s) payload> with 2 callbacks> 2024-01-10 13:34:37.641 DEBUG (MainThread) [aioairctrl.coap.client] synced: 471345C4 2024-01-10 13:34:37.641 DEBUG (MainThread) [aioairctrl.coap.client] observing status 2024-01-10 13:34:37.642 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Timer cancelled: ('RESET',) 2024-01-10 13:34:37.642 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s 2024-01-10 13:34:37.645 DEBUG (MainThread) [coap] Sending request - Token: 4759, Remote: 2024-01-10 13:34:37.646 DEBUG (MainThread) [coap] Sending message , 2 option(s)> 2024-01-10 13:34:41.418 DEBUG (MainThread) [coap] Incoming message , 3 option(s), 1352 byte(s) payload> 2024-01-10 13:34:41.419 DEBUG (MainThread) [coap] Received Response: , 3 option(s), 1352 byte(s) payload> 2024-01-10 13:34:41.420 DEBUG (MainThread) [coap] Response , 3 option(s), 1352 byte(s) payload> matched to request , 2 option(s)> with 2 callbacks> 2024-01-10 13:34:41.425 DEBUG (MainThread) [aioairctrl.coap.client] observation status: {"state":{"reported":{"D01102":6,"D01S03":"Living room","D01S04":"Apollo","D01S05":"CX5120/11","D01107":0,"D01108":3,"D01109":3,"D0110A":0,"D0110B":1,"D0110C":33,"D0110F":3,"D01S12":"0.2.9","D01213":0,"ProductId":"b41d6ad4d91911edb6720217247a73aa","DeviceId":"f3a432c587cd11ee99be5171da9d1490","MCUBoot":true,"Runtime":157897819,"rssi":-33,"wifilog":false,"free_memory":56792,"WifiVersion":"AWS_Philips_AIR@84","StatusType":"status","ConnectType":"Online","D03102":1,"D03105":0,"D03106":0,"D0310A":3,"D0310C":66,"D0310D":1,"D0310E":37,"D0320F":17920,"D03110":0,"D03224":220,"D03130":100,"D03240":0,"D03180":0,"D03182":2},"desired":null}} 2024-01-10 13:34:41.425 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] Status update: {'D01102': 6, 'D01S03': 'Living room', 'D01S04': 'Apollo', 'D01S05': 'CX5120/11', 'D01107': 0, 'D01108': 3, 'D01109': 3, 'D0110A': 0, 'D0110B': 1, 'D0110C': 33, 'D0110F': 3, 'D01S12': '0.2.9', 'D01213': 0, 'ProductId': 'b41d6ad4d91911edb6720217247a73aa', 'DeviceId': 'f3a432c587cd11ee99be5171da9d1490', 'MCUBoot': True, 'Runtime': 157897819, 'rssi': -33, 'wifilog': False, 'free_memory': 56792, 'WifiVersion': 'AWS_Philips_AIR@84', 'StatusType': 'status', 'ConnectType': 'Online', 'D03102': 1, 'D03105': 0, 'D03106': 0, 'D0310A': 3, 'D0310C': 66, 'D0310D': 1, 'D0310E': 37, 'D0320F': 17920, 'D03110': 0, 'D03224': 220, 'D03130': 100, 'D03240': 0, 'D03180': 0, 'D03182': 2} 2024-01-10 13:34:41.426 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Timer cancelled: ('RESET',) 2024-01-10 13:34:41.426 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s 2024-01-10 13:34:47.595 DEBUG (MainThread) [custom_components.philips_airpurifier_coap] async_setup_entry called for host 192.168.1.36 2024-01-10 13:34:47.600 DEBUG (MainThread) [aioairctrl.coap.client] syncing 2024-01-10 13:34:47.604 DEBUG (MainThread) [coap] Sending request - Token: 842f, Remote: 2024-01-10 13:34:47.605 DEBUG (MainThread) [coap] Sending message , 1 option(s), 8 byte(s) payload> 2024-01-10 13:34:47.664 DEBUG (MainThread) [coap] Incoming message , 1 option(s), 8 byte(s) payload> 2024-01-10 13:34:47.665 DEBUG (MainThread) [coap] Received Response: , 1 option(s), 8 byte(s) payload> 2024-01-10 13:34:47.665 DEBUG (MainThread) [coap] Response , 1 option(s), 8 byte(s) payload> matched to request , 1 option(s), 8 byte(s) payload> with 2 callbacks> 2024-01-10 13:34:47.666 DEBUG (MainThread) [aioairctrl.coap.client] synced: 1108E28E 2024-01-10 13:34:47.666 DEBUG (MainThread) [custom_components.philips_airpurifier_coap] got a valid client for host 192.168.1.36 2024-01-10 13:34:47.666 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] init: Creating and autostarting timer for host 192.168.1.36 2024-01-10 13:34:47.666 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] init: finished for host 192.168.1.36 2024-01-10 13:34:47.667 DEBUG (MainThread) [custom_components.philips_airpurifier_coap] got a valid coordinator for host 192.168.1.36 2024-01-10 13:34:47.667 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] async_first_refresh for host 192.168.1.36 2024-01-10 13:34:47.667 DEBUG (MainThread) [aioairctrl.coap.client] retrieving status 2024-01-10 13:34:47.667 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s 2024-01-10 13:34:47.671 DEBUG (MainThread) [coap] Sending request - Token: 8430, Remote: 2024-01-10 13:34:47.671 DEBUG (MainThread) [coap] Sending message , 2 option(s)> 2024-01-10 13:35:13.568 DEBUG (MainThread) [coap] Incoming message , 3 option(s), 1352 byte(s) payload> 2024-01-10 13:35:13.569 DEBUG (MainThread) [coap] Received Response: , 3 option(s), 1352 byte(s) payload> 2024-01-10 13:35:13.570 DEBUG (MainThread) [coap] Response , 3 option(s), 1352 byte(s) payload> matched to request , 2 option(s)> with 2 callbacks> 2024-01-10 13:35:13.572 DEBUG (MainThread) [aioairctrl.coap.client] status: {"state":{"reported":{"D01102":6,"D01S03":"Living room","D01S04":"Apollo","D01S05":"CX5120/11","D01107":0,"D01108":3,"D01109":3,"D0110A":0,"D0110B":1,"D0110C":33,"D0110F":3,"D01S12":"0.2.9","D01213":0,"ProductId":"b41d6ad4d91911edb6720217247a73aa","DeviceId":"f3a432c587cd11ee99be5171da9d1490","MCUBoot":true,"Runtime":157930741,"rssi":-49,"wifilog":false,"free_memory":56792,"WifiVersion":"AWS_Philips_AIR@84","StatusType":"status","ConnectType":"Online","D03102":1,"D03105":0,"D03106":0,"D0310A":3,"D0310C":66,"D0310D":1,"D0310E":37,"D0320F":17920,"D03110":0,"D03224":230,"D03130":100,"D03240":0,"D03180":0,"D03182":2},"desired":null}} 2024-01-10 13:35:13.573 DEBUG (MainThread) [aioairctrl.coap.client] max age = 60 2024-01-10 13:35:13.574 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] finished first refresh for host 192.168.1.36 2024-01-10 13:35:13.574 DEBUG (MainThread) [custom_components.philips_airpurifier_coap] coordinator did first refresh for host 192.168.1.36 2024-01-10 13:35:13.574 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Timer cancelled: ('RESET',) 2024-01-10 13:35:13.575 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s 2024-01-10 13:35:13.625 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.fan] async_setup_entry called for platform fan 2024-01-10 13:35:13.625 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] PhilipsEntity __init__ called 2024-01-10 13:35:13.625 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] coordinator.status is: {'D01102': 6, 'D01S03': 'Living room', 'D01S04': 'Apollo', 'D01S05': 'CX5120/11', 'D01107': 0, 'D01108': 3, 'D01109': 3, 'D0110A': 0, 'D0110B': 1, 'D0110C': 33, 'D0110F': 3, 'D01S12': '0.2.9', 'D01213': 0, 'ProductId': 'b41d6ad4d91911edb6720217247a73aa', 'DeviceId': 'f3a432c587cd11ee99be5171da9d1490', 'MCUBoot': True, 'Runtime': 157930741, 'rssi': -49, 'wifilog': False, 'free_memory': 56792, 'WifiVersion': 'AWS_Philips_AIR@84', 'StatusType': 'status', 'ConnectType': 'Online', 'D03102': 1, 'D03105': 0, 'D03106': 0, 'D0310A': 3, 'D0310C': 66, 'D0310D': 1, 'D0310E': 37, 'D0320F': 17920, 'D03110': 0, 'D03224': 230, 'D03130': 100, 'D03240': 0, 'D03180': 0, 'D03182': 2} 2024-01-10 13:35:13.625 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.sensor] async_setup_entry called for platform sensor 2024-01-10 13:35:13.626 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] PhilipsEntity __init__ called 2024-01-10 13:35:13.626 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] coordinator.status is: {'D01102': 6, 'D01S03': 'Living room', 'D01S04': 'Apollo', 'D01S05': 'CX5120/11', 'D01107': 0, 'D01108': 3, 'D01109': 3, 'D0110A': 0, 'D0110B': 1, 'D0110C': 33, 'D0110F': 3, 'D01S12': '0.2.9', 'D01213': 0, 'ProductId': 'b41d6ad4d91911edb6720217247a73aa', 'DeviceId': 'f3a432c587cd11ee99be5171da9d1490', 'MCUBoot': True, 'Runtime': 157930741, 'rssi': -49, 'wifilog': False, 'free_memory': 56792, 'WifiVersion': 'AWS_Philips_AIR@84', 'StatusType': 'status', 'ConnectType': 'Online', 'D03102': 1, 'D03105': 0, 'D03106': 0, 'D0310A': 3, 'D0310C': 66, 'D0310D': 1, 'D0310E': 37, 'D0320F': 17920, 'D03110': 0, 'D03224': 230, 'D03130': 100, 'D03240': 0, 'D03180': 0, 'D03182': 2} 2024-01-10 13:35:13.626 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.switch] async_setup_entry called for platform switch 2024-01-10 13:35:13.626 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.light] async_setup_entry called for platform light 2024-01-10 13:35:13.626 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] PhilipsEntity __init__ called 2024-01-10 13:35:13.626 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] coordinator.status is: {'D01102': 6, 'D01S03': 'Living room', 'D01S04': 'Apollo', 'D01S05': 'CX5120/11', 'D01107': 0, 'D01108': 3, 'D01109': 3, 'D0110A': 0, 'D0110B': 1, 'D0110C': 33, 'D0110F': 3, 'D01S12': '0.2.9', 'D01213': 0, 'ProductId': 'b41d6ad4d91911edb6720217247a73aa', 'DeviceId': 'f3a432c587cd11ee99be5171da9d1490', 'MCUBoot': True, 'Runtime': 157930741, 'rssi': -49, 'wifilog': False, 'free_memory': 56792, 'WifiVersion': 'AWS_Philips_AIR@84', 'StatusType': 'status', 'ConnectType': 'Online', 'D03102': 1, 'D03105': 0, 'D03106': 0, 'D0310A': 3, 'D0310C': 66, 'D0310D': 1, 'D0310E': 37, 'D0320F': 17920, 'D03110': 0, 'D03224': 230, 'D03130': 100, 'D03240': 0, 'D03180': 0, 'D03182': 2} 2024-01-10 13:35:13.627 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.select] async_setup_entry called for platform select 2024-01-10 13:35:13.628 ERROR (MainThread) [homeassistant.components.fan] Error while setting up philips_airpurifier_coap platform for fan Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 360, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/philips_airpurifier_coap/fan.py", line 34, in async_setup_entry device = model_class( ^^^^^^^^^^^^ File "/config/custom_components/philips_airpurifier_coap/philips.py", line 290, in __init__ super().__init__(coordinator, model, name) File "/config/custom_components/philips_airpurifier_coap/philips.py", line 250, in __init__ super().__init__(coordinator) File "/config/custom_components/philips_airpurifier_coap/philips.py", line 183, in __init__ self._name = list( ^^^^^ IndexError: list index out of range 2024-01-10 13:35:13.648 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up philips_airpurifier_coap platform for sensor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 360, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/philips_airpurifier_coap/sensor.py", line 58, in async_setup_entry sensors.append(PhilipsSensor(coordinator, name, model, sensor)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/philips_airpurifier_coap/sensor.py", line 81, in __init__ super().__init__(coordinator) File "/config/custom_components/philips_airpurifier_coap/philips.py", line 183, in __init__ self._name = list( ^^^^^ IndexError: list index out of range 2024-01-10 13:35:13.657 ERROR (MainThread) [homeassistant.components.light] Error while setting up philips_airpurifier_coap platform for light Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 360, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/philips_airpurifier_coap/light.py", line 65, in async_setup_entry lights.append(PhilipsLight(coordinator, name, model, light)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/philips_airpurifier_coap/light.py", line 82, in __init__ super().__init__(coordinator) File "/config/custom_components/philips_airpurifier_coap/philips.py", line 183, in __init__ self._name = list( ^^^^^ IndexError: list index out of range ```

Screenshot_20240110_133312_Home Assistant

kongo09 commented 8 months ago

Ok, great, it's establishing a connecting and getting some data. I'll look into this further.

kongo09 commented 8 months ago

v0.17-amfcx-beta.4

Anashost commented 8 months ago

v0.17-amfcx-beta.4

edited:

Nice some entities appears:

Screenshot 2024-01-10 155623

Things i've noticed:

Screenshot 2024-01-10 155423

here's the logs:

logs ``` 2024-01-10 15:40:53.764 DEBUG (MainThread) [custom_components.philips_airpurifier_coap] async_setup called 2024-01-10 15:40:54.113 DEBUG (MainThread) [custom_components.philips_airpurifier_coap] async_setup_entry called for host 192.168.1.36 2024-01-10 15:40:54.254 DEBUG (MainThread) [aioairctrl.coap.client] syncing 2024-01-10 15:40:54.703 DEBUG (MainThread) [coap] Sending request - Token: e5cb, Remote: 2024-01-10 15:40:54.704 DEBUG (MainThread) [coap] Sending message , 1 option(s), 8 byte(s) payload> 2024-01-10 15:40:54.833 DEBUG (MainThread) [coap] Incoming message , 1 option(s), 8 byte(s) payload> 2024-01-10 15:40:54.834 DEBUG (MainThread) [coap] Received Response: , 1 option(s), 8 byte(s) payload> 2024-01-10 15:40:54.835 DEBUG (MainThread) [coap] Response , 1 option(s), 8 byte(s) payload> matched to request , 1 option(s), 8 byte(s) payload> with 2 callbacks> 2024-01-10 15:40:54.861 DEBUG (MainThread) [aioairctrl.coap.client] synced: 48BF5469 2024-01-10 15:40:54.873 DEBUG (MainThread) [custom_components.philips_airpurifier_coap] got a valid client for host 192.168.1.36 2024-01-10 15:40:54.873 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] init: Creating and autostarting timer for host 192.168.1.36 2024-01-10 15:40:54.873 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] init: finished for host 192.168.1.36 2024-01-10 15:40:54.873 DEBUG (MainThread) [custom_components.philips_airpurifier_coap] got a valid coordinator for host 192.168.1.36 2024-01-10 15:40:54.874 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] async_first_refresh for host 192.168.1.36 2024-01-10 15:40:54.874 DEBUG (MainThread) [aioairctrl.coap.client] retrieving status 2024-01-10 15:40:54.888 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s 2024-01-10 15:40:54.915 DEBUG (MainThread) [coap] Sending request - Token: e5cc, Remote: 2024-01-10 15:40:54.916 DEBUG (MainThread) [coap] Sending message , 2 option(s)> 2024-01-10 15:43:05.185 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'list object' has no attribute 'value' when rendering '{{ value_json.value }}' 2024-01-10 15:43:15.224 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: philips_airpurifier_coap 2024-01-10 15:43:31.017 DEBUG (MainThread) [coap] Incoming message , 3 option(s), 1352 byte(s) payload> 2024-01-10 15:43:31.018 DEBUG (MainThread) [coap] Received Response: , 3 option(s), 1352 byte(s) payload> 2024-01-10 15:43:31.019 DEBUG (MainThread) [coap] Response , 3 option(s), 1352 byte(s) payload> matched to request , 2 option(s)> with 2 callbacks> 2024-01-10 15:43:31.023 DEBUG (MainThread) [aioairctrl.coap.client] status: {"state":{"reported":{"D01102":6,"D01S03":"Living room","D01S04":"Apollo","D01S05":"CX5120/11","D01107":0,"D01108":3,"D01109":3,"D0110A":0,"D0110B":1,"D0110C":33,"D0110F":3,"D01S12":"0.2.9","D01213":0,"ProductId":"b41d6ad4d91911edb6720217247a73aa","DeviceId":"f3a432c587cd11ee99be5171da9d1490","MCUBoot":true,"Runtime":165812905,"rssi":-35,"wifilog":false,"free_memory":58088,"WifiVersion":"AWS_Philips_AIR@84","StatusType":"status","ConnectType":"Online","D03102":1,"D03105":0,"D03106":0,"D0310A":3,"D0310C":66,"D0310D":1,"D0310E":37,"D0320F":17920,"D03110":0,"D03224":200,"D03130":100,"D03240":0,"D03180":0,"D03182":2},"desired":null}} 2024-01-10 15:43:31.023 DEBUG (MainThread) [aioairctrl.coap.client] max age = 60 2024-01-10 15:43:31.024 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] finished first refresh for host 192.168.1.36 2024-01-10 15:43:31.024 DEBUG (MainThread) [custom_components.philips_airpurifier_coap] coordinator did first refresh for host 192.168.1.36 2024-01-10 15:43:31.027 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Timer cancelled: ('RESET',) 2024-01-10 15:43:31.029 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s 2024-01-10 15:43:31.076 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.fan] async_setup_entry called for platform fan 2024-01-10 15:43:31.076 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] PhilipsEntity __init__ called 2024-01-10 15:43:31.077 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] coordinator.status is: {'D01102': 6, 'D01S03': 'Living room', 'D01S04': 'Apollo', 'D01S05': 'CX5120/11', 'D01107': 0, 'D01108': 3, 'D01109': 3, 'D0110A': 0, 'D0110B': 1, 'D0110C': 33, 'D0110F': 3, 'D01S12': '0.2.9', 'D01213': 0, 'ProductId': 'b41d6ad4d91911edb6720217247a73aa', 'DeviceId': 'f3a432c587cd11ee99be5171da9d1490', 'MCUBoot': True, 'Runtime': 165812905, 'rssi': -35, 'wifilog': False, 'free_memory': 58088, 'WifiVersion': 'AWS_Philips_AIR@84', 'StatusType': 'status', 'ConnectType': 'Online', 'D03102': 1, 'D03105': 0, 'D03106': 0, 'D0310A': 3, 'D0310C': 66, 'D0310D': 1, 'D0310E': 37, 'D0320F': 17920, 'D03110': 0, 'D03224': 200, 'D03130': 100, 'D03240': 0, 'D03180': 0, 'D03182': 2} 2024-01-10 15:43:31.077 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.sensor] async_setup_entry called for platform sensor 2024-01-10 15:43:31.077 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] PhilipsEntity __init__ called 2024-01-10 15:43:31.077 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] coordinator.status is: {'D01102': 6, 'D01S03': 'Living room', 'D01S04': 'Apollo', 'D01S05': 'CX5120/11', 'D01107': 0, 'D01108': 3, 'D01109': 3, 'D0110A': 0, 'D0110B': 1, 'D0110C': 33, 'D0110F': 3, 'D01S12': '0.2.9', 'D01213': 0, 'ProductId': 'b41d6ad4d91911edb6720217247a73aa', 'DeviceId': 'f3a432c587cd11ee99be5171da9d1490', 'MCUBoot': True, 'Runtime': 165812905, 'rssi': -35, 'wifilog': False, 'free_memory': 58088, 'WifiVersion': 'AWS_Philips_AIR@84', 'StatusType': 'status', 'ConnectType': 'Online', 'D03102': 1, 'D03105': 0, 'D03106': 0, 'D0310A': 3, 'D0310C': 66, 'D0310D': 1, 'D0310E': 37, 'D0320F': 17920, 'D03110': 0, 'D03224': 200, 'D03130': 100, 'D03240': 0, 'D03180': 0, 'D03182': 2} 2024-01-10 15:43:31.078 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.switch] async_setup_entry called for platform switch 2024-01-10 15:43:31.078 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.light] async_setup_entry called for platform light 2024-01-10 15:43:31.078 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] PhilipsEntity __init__ called 2024-01-10 15:43:31.078 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] coordinator.status is: {'D01102': 6, 'D01S03': 'Living room', 'D01S04': 'Apollo', 'D01S05': 'CX5120/11', 'D01107': 0, 'D01108': 3, 'D01109': 3, 'D0110A': 0, 'D0110B': 1, 'D0110C': 33, 'D0110F': 3, 'D01S12': '0.2.9', 'D01213': 0, 'ProductId': 'b41d6ad4d91911edb6720217247a73aa', 'DeviceId': 'f3a432c587cd11ee99be5171da9d1490', 'MCUBoot': True, 'Runtime': 165812905, 'rssi': -35, 'wifilog': False, 'free_memory': 58088, 'WifiVersion': 'AWS_Philips_AIR@84', 'StatusType': 'status', 'ConnectType': 'Online', 'D03102': 1, 'D03105': 0, 'D03106': 0, 'D0310A': 3, 'D0310C': 66, 'D0310D': 1, 'D0310E': 37, 'D0320F': 17920, 'D03110': 0, 'D03224': 200, 'D03130': 100, 'D03240': 0, 'D03180': 0, 'D03182': 2} 2024-01-10 15:43:31.078 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.select] async_setup_entry called for platform select 2024-01-10 15:43:31.092 DEBUG (MainThread) [aioairctrl.coap.client] observing status 2024-01-10 15:43:31.093 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Timer cancelled: ('RESET',) 2024-01-10 15:43:31.093 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s 2024-01-10 15:43:31.125 DEBUG (MainThread) [coap] Sending request - Token: e5cd, Remote: 2024-01-10 15:43:31.126 DEBUG (MainThread) [coap] Sending message , 2 option(s)> 2024-01-10 15:43:53.879 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.config_flow] async_step_dhcp: called, found: DhcpServiceInfo(ip='192.168.1.36', hostname='mxchip', macaddress='849dc2d81ef3') 2024-01-10 15:43:53.882 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.config_flow] trying to configure host: 192.168.1.36 2024-01-10 15:43:53.887 DEBUG (MainThread) [aioairctrl.coap.client] syncing 2024-01-10 15:43:53.901 DEBUG (MainThread) [coap] Sending request - Token: aca6, Remote: 2024-01-10 15:43:53.901 DEBUG (MainThread) [coap] Sending message , 1 option(s), 8 byte(s) payload> 2024-01-10 15:43:53.938 DEBUG (MainThread) [coap] Incoming message , 1 option(s), 8 byte(s) payload> 2024-01-10 15:43:53.939 DEBUG (MainThread) [coap] Received Response: , 1 option(s), 8 byte(s) payload> 2024-01-10 15:43:53.940 DEBUG (MainThread) [coap] Response , 1 option(s), 8 byte(s) payload> matched to request , 1 option(s), 8 byte(s) payload> with 2 callbacks> 2024-01-10 15:43:53.943 DEBUG (MainThread) [aioairctrl.coap.client] synced: 750AF624 2024-01-10 15:43:53.943 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.config_flow] got a valid client for host 192.168.1.36 2024-01-10 15:43:53.943 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.config_flow] trying to get status 2024-01-10 15:43:53.944 DEBUG (MainThread) [aioairctrl.coap.client] retrieving status 2024-01-10 15:43:53.956 DEBUG (MainThread) [coap] Sending request - Token: aca7, Remote: 2024-01-10 15:43:53.956 DEBUG (MainThread) [coap] Sending message , 2 option(s)> 2024-01-10 15:44:23.944 WARNING (MainThread) [custom_components.philips_airpurifier_coap.config_flow] Timeout, host 192.168.1.36 looks like a Philips AirPurifier but doesn't answer, aborting 2024-01-10 15:44:26.181 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'list object' has no attribute 'value' when rendering '{{ value_json.value }}' 2024-01-10 15:45:26.329 DEBUG (MainThread) [coap] Incoming message , 3 option(s), 1352 byte(s) payload> 2024-01-10 15:45:26.329 DEBUG (MainThread) [coap] Received Response: , 3 option(s), 1352 byte(s) payload> 2024-01-10 15:45:26.330 INFO (MainThread) [coap] Response , 3 option(s), 1352 byte(s) payload> could not be matched to any request 2024-01-10 15:45:26.330 INFO (MainThread) [coap] Ignoring unknown response (which is not a unicast CON) 2024-01-10 15:45:47.190 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'list object' has no attribute 'value' when rendering '{{ value_json.value }}' 2024-01-10 15:45:54.842 DEBUG (MainThread) [aioairctrl.coap.client] REQUEST: {"state": {"desired": {"CommandType": "app", "DeviceId": "", "EnduserId": "", "D03102": 0}}} 2024-01-10 15:45:54.849 DEBUG (MainThread) [coap] Sending request - Token: e5ce, Remote: 2024-01-10 15:45:54.850 DEBUG (MainThread) [coap] Sending message , 1 option(s), 264 byte(s) payload> 2024-01-10 15:45:54.871 DEBUG (MainThread) [coap] Incoming message , 1 option(s), 19 byte(s) payload> 2024-01-10 15:45:54.872 DEBUG (MainThread) [coap] Received Response: , 1 option(s), 19 byte(s) payload> 2024-01-10 15:45:54.873 DEBUG (MainThread) [coap] Response , 1 option(s), 19 byte(s) payload> matched to request , 1 option(s), 264 byte(s) payload> with 2 callbacks> 2024-01-10 15:45:54.876 DEBUG (MainThread) [aioairctrl.coap.client] RESPONSE: b'{"status":"failed"}' 2024-01-10 15:45:54.883 DEBUG (MainThread) [aioairctrl.coap.client] set_control_value failed. resyncing... 2024-01-10 15:45:54.883 DEBUG (MainThread) [aioairctrl.coap.client] syncing 2024-01-10 15:45:54.887 DEBUG (MainThread) [coap] Sending request - Token: e5cf, Remote: 2024-01-10 15:45:54.887 DEBUG (MainThread) [coap] Sending message , 1 option(s), 8 byte(s) payload> 2024-01-10 15:45:54.892 DEBUG (MainThread) [coap] Incoming message , 1 option(s), 8 byte(s) payload> 2024-01-10 15:45:54.892 DEBUG (MainThread) [coap] Received Response: , 1 option(s), 8 byte(s) payload> 2024-01-10 15:45:54.893 DEBUG (MainThread) [coap] Response , 1 option(s), 8 byte(s) payload> matched to request , 1 option(s), 8 byte(s) payload> with 2 callbacks> 2024-01-10 15:45:54.893 DEBUG (MainThread) [aioairctrl.coap.client] synced: 50D38A59 2024-01-10 15:45:54.894 DEBUG (MainThread) [aioairctrl.coap.client] set_control_value failed. retrying... 2024-01-10 15:45:54.894 DEBUG (MainThread) [aioairctrl.coap.client] REQUEST: {"state": {"desired": {"CommandType": "app", "DeviceId": "", "EnduserId": "", "D03102": 0}}} 2024-01-10 15:45:54.896 DEBUG (MainThread) [coap] Sending request - Token: e5d0, Remote: 2024-01-10 15:45:54.897 DEBUG (MainThread) [coap] Sending message , 1 option(s), 264 byte(s) payload> 2024-01-10 15:45:54.905 DEBUG (MainThread) [coap] Incoming message , 1 option(s), 20 byte(s) payload> 2024-01-10 15:45:54.906 DEBUG (MainThread) [coap] Received Response: , 1 option(s), 20 byte(s) payload> 2024-01-10 15:45:54.906 DEBUG (MainThread) [coap] Response , 1 option(s), 20 byte(s) payload> matched to request , 1 option(s), 264 byte(s) payload> with 2 callbacks> 2024-01-10 15:45:54.907 DEBUG (MainThread) [aioairctrl.coap.client] RESPONSE: b'{"status":"success"}' 2024-01-10 15:45:54.993 DEBUG (MainThread) [coap] Incoming message , 3 option(s), 1352 byte(s) payload> 2024-01-10 15:45:54.994 DEBUG (MainThread) [coap] Received Response: , 3 option(s), 1352 byte(s) payload> 2024-01-10 15:45:54.994 INFO (MainThread) [coap] Response , 3 option(s), 1352 byte(s) payload> could not be matched to any request 2024-01-10 15:45:54.995 INFO (MainThread) [coap] Ignoring unknown response (which is not a unicast CON) 2024-01-10 15:46:09.766 WARNING (MainThread) [androidtv.adb_manager.adb_manager_async] Couldn't connect to 192.168.1.42:5555. TcpTimeoutException: Connecting to 192.168.1.42:5555 timed out (1.0 seconds) 2024-01-10 15:46:20.236 DEBUG (MainThread) [aioairctrl.coap.client] REQUEST: {"state": {"desired": {"CommandType": "app", "DeviceId": "", "EnduserId": "", "D03102": 0}}} 2024-01-10 15:46:20.241 DEBUG (MainThread) [coap] Sending request - Token: e5d1, Remote: 2024-01-10 15:46:20.241 DEBUG (MainThread) [coap] Sending message , 1 option(s), 264 byte(s) payload> 2024-01-10 15:46:20.267 DEBUG (MainThread) [coap] Incoming message , 1 option(s), 20 byte(s) payload> 2024-01-10 15:46:20.268 DEBUG (MainThread) [coap] Received Response: , 1 option(s), 20 byte(s) payload> 2024-01-10 15:46:20.268 DEBUG (MainThread) [coap] Response , 1 option(s), 20 byte(s) payload> matched to request , 1 option(s), 264 byte(s) payload> with 2 callbacks> 2024-01-10 15:46:20.269 DEBUG (MainThread) [aioairctrl.coap.client] RESPONSE: b'{"status":"success"}' 2024-01-10 15:46:29.109 DEBUG (MainThread) [aioairctrl.coap.client] REQUEST: {"state": {"desired": {"CommandType": "app", "DeviceId": "", "EnduserId": "", "D03102": 0}}} 2024-01-10 15:46:29.115 DEBUG (MainThread) [coap] Sending request - Token: e5d2, Remote: 2024-01-10 15:46:29.115 DEBUG (MainThread) [coap] Sending message , 1 option(s), 264 byte(s) payload> 2024-01-10 15:46:29.179 DEBUG (MainThread) [coap] Incoming message , 1 option(s), 20 byte(s) payload> 2024-01-10 15:46:29.181 DEBUG (MainThread) [coap] Received Response: , 1 option(s), 20 byte(s) payload> 2024-01-10 15:46:29.181 DEBUG (MainThread) [coap] Response , 1 option(s), 20 byte(s) payload> matched to request , 1 option(s), 264 byte(s) payload> with 2 callbacks> 2024-01-10 15:46:29.183 DEBUG (MainThread) [aioairctrl.coap.client] RESPONSE: b'{"status":"success"}' 2024-01-10 15:46:31.094 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Calling timeout callback 2024-01-10 15:46:31.094 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] reconnect: called for host 192.168.1.36 2024-01-10 15:46:31.094 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] reconnect: creating new reconnect task for host 192.168.1.36 2024-01-10 15:46:31.095 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Timeout callback finished! 2024-01-10 15:46:31.095 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s 2024-01-10 15:46:31.097 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] Reconnecting 2024-01-10 15:46:31.098 DEBUG (MainThread) [coap] Shutting down context 2024-01-10 15:46:31.104 DEBUG (MainThread) [coap] Shutting down any outgoing connections on on 2024-01-10 15:46:31.112 DEBUG (MainThread) [coap] Shutting down any outgoing connections on on 2024-01-10 15:46:31.113 DEBUG (MainThread) [coap] Shutting down any connections on 2024-01-10 15:46:31.120 DEBUG (MainThread) [aioairctrl.coap.client] syncing 2024-01-10 15:46:31.124 DEBUG (MainThread) [coap] Sending request - Token: aa67, Remote: 2024-01-10 15:46:31.124 DEBUG (MainThread) [coap] Sending message , 1 option(s), 8 byte(s) payload> 2024-01-10 15:46:31.225 DEBUG (MainThread) [coap] Incoming message , 1 option(s), 8 byte(s) payload> 2024-01-10 15:46:31.226 DEBUG (MainThread) [coap] Received Response: , 1 option(s), 8 byte(s) payload> 2024-01-10 15:46:31.227 DEBUG (MainThread) [coap] Response , 1 option(s), 8 byte(s) payload> matched to request , 1 option(s), 8 byte(s) payload> with 2 callbacks> 2024-01-10 15:46:31.230 DEBUG (MainThread) [aioairctrl.coap.client] synced: 688CBC9D 2024-01-10 15:46:31.231 DEBUG (MainThread) [aioairctrl.coap.client] observing status 2024-01-10 15:46:31.232 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Timer cancelled: ('RESET',) 2024-01-10 15:46:31.233 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s 2024-01-10 15:46:31.236 DEBUG (MainThread) [coap] Sending request - Token: aa68, Remote: 2024-01-10 15:46:31.237 DEBUG (MainThread) [coap] Sending message , 2 option(s)> 2024-01-10 15:46:35.545 DEBUG (MainThread) [coap] Incoming message , 3 option(s), 1352 byte(s) payload> 2024-01-10 15:46:35.546 DEBUG (MainThread) [coap] Received Response: , 3 option(s), 1352 byte(s) payload> 2024-01-10 15:46:35.547 DEBUG (MainThread) [coap] Response , 3 option(s), 1352 byte(s) payload> matched to request , 2 option(s)> with 2 callbacks> 2024-01-10 15:46:35.552 DEBUG (MainThread) [aioairctrl.coap.client] observation status: {"state":{"reported":{"D01102":6,"D01S03":"Living room","D01S04":"Apollo","D01S05":"CX5120/11","D01107":0,"D01108":3,"D01109":3,"D0110A":0,"D0110B":1,"D0110C":33,"D0110F":3,"D01S12":"0.2.9","D01213":0,"ProductId":"b41d6ad4d91911edb6720217247a73aa","DeviceId":"f3a432c587cd11ee99be5171da9d1490","MCUBoot":true,"Runtime":166001865,"rssi":-31,"wifilog":false,"free_memory":55616,"WifiVersion":"AWS_Philips_AIR@84","StatusType":"control","ConnectType":"Online","D03102":0,"D03105":0,"D03106":0,"D0310A":3,"D0310C":66,"D0310D":1,"D0310E":37,"D0320F":17920,"D03110":0,"D03224":210,"D03130":100,"D03240":0,"D03180":0,"D03182":2},"desired":null}} 2024-01-10 15:46:35.553 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] Status update: {'D01102': 6, 'D01S03': 'Living room', 'D01S04': 'Apollo', 'D01S05': 'CX5120/11', 'D01107': 0, 'D01108': 3, 'D01109': 3, 'D0110A': 0, 'D0110B': 1, 'D0110C': 33, 'D0110F': 3, 'D01S12': '0.2.9', 'D01213': 0, 'ProductId': 'b41d6ad4d91911edb6720217247a73aa', 'DeviceId': 'f3a432c587cd11ee99be5171da9d1490', 'MCUBoot': True, 'Runtime': 166001865, 'rssi': -31, 'wifilog': False, 'free_memory': 55616, 'WifiVersion': 'AWS_Philips_AIR@84', 'StatusType': 'control', 'ConnectType': 'Online', 'D03102': 0, 'D03105': 0, 'D03106': 0, 'D0310A': 3, 'D0310C': 66, 'D0310D': 1, 'D0310E': 37, 'D0320F': 17920, 'D03110': 0, 'D03224': 210, 'D03130': 100, 'D03240': 0, 'D03180': 0, 'D03182': 2} 2024-01-10 15:46:35.557 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Timer cancelled: ('RESET',) 2024-01-10 15:46:35.558 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s 2024-01-10 15:46:39.631 DEBUG (MainThread) [coap] Incoming message , 3 option(s), 1352 byte(s) payload> 2024-01-10 15:46:39.632 DEBUG (MainThread) [coap] Received Response: , 3 option(s), 1352 byte(s) payload> 2024-01-10 15:46:39.633 DEBUG (MainThread) [coap] Response , 3 option(s), 1352 byte(s) payload> matched to request , 2 option(s)> with 2 callbacks> 2024-01-10 15:46:53.375 ERROR (MainThread) [coap] Connection loss was not expected. 2024-01-10 15:46:53.407 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] shutdown: called for host 192.168.1.36 2024-01-10 15:46:53.408 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] shutdown: cancelling reconnect task for host 192.168.1.36 2024-01-10 15:46:53.408 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] shutdown: cancelling timeout task for host 192.168.1.36 2024-01-10 15:46:53.408 DEBUG (MainThread) [coap] Shutting down context 2024-01-10 15:46:53.413 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Timer cancelled: ('STOP',) 2024-01-10 15:46:53.413 DEBUG (MainThread) [coap] Shutting down any outgoing connections on on 2024-01-10 15:46:53.414 DEBUG (MainThread) [coap] Shutting down any outgoing connections on on 2024-01-10 15:46:53.414 DEBUG (MainThread) [coap] Shutting down any connections on 2024-01-10 15:46:53.422 DEBUG (MainThread) [custom_components.philips_airpurifier_coap] async_setup_entry called for host 192.168.1.36 2024-01-10 15:46:53.427 DEBUG (MainThread) [aioairctrl.coap.client] syncing 2024-01-10 15:46:53.431 DEBUG (MainThread) [coap] Sending request - Token: e0f8, Remote: 2024-01-10 15:46:53.431 DEBUG (MainThread) [coap] Sending message , 1 option(s), 8 byte(s) payload> 2024-01-10 15:46:53.566 DEBUG (MainThread) [coap] Incoming message , 1 option(s), 8 byte(s) payload> 2024-01-10 15:46:53.567 DEBUG (MainThread) [coap] Received Response: , 1 option(s), 8 byte(s) payload> 2024-01-10 15:46:53.568 DEBUG (MainThread) [coap] Response , 1 option(s), 8 byte(s) payload> matched to request , 1 option(s), 8 byte(s) payload> with 2 callbacks> 2024-01-10 15:46:53.569 DEBUG (MainThread) [aioairctrl.coap.client] synced: 3EB0DEB8 2024-01-10 15:46:53.569 DEBUG (MainThread) [custom_components.philips_airpurifier_coap] got a valid client for host 192.168.1.36 2024-01-10 15:46:53.569 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] init: Creating and autostarting timer for host 192.168.1.36 2024-01-10 15:46:53.570 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] init: finished for host 192.168.1.36 2024-01-10 15:46:53.570 DEBUG (MainThread) [custom_components.philips_airpurifier_coap] got a valid coordinator for host 192.168.1.36 2024-01-10 15:46:53.570 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] async_first_refresh for host 192.168.1.36 2024-01-10 15:46:53.570 DEBUG (MainThread) [aioairctrl.coap.client] retrieving status 2024-01-10 15:46:53.571 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s 2024-01-10 15:46:53.574 DEBUG (MainThread) [coap] Sending request - Token: e0f9, Remote: 2024-01-10 15:46:53.574 DEBUG (MainThread) [coap] Sending message , 2 option(s)> 2024-01-10 15:47:08.150 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'list object' has no attribute 'value' when rendering '{{ value_json.value }}' 2024-01-10 15:47:31.221 WARNING (MainThread) [androidtv.adb_manager.adb_manager_async] Couldn't connect to 192.168.1.42:5555. TcpTimeoutException: Connecting to 192.168.1.42:5555 timed out (1.0 seconds) 2024-01-10 15:47:55.880 DEBUG (MainThread) [coap] Incoming message , 3 option(s), 1352 byte(s) payload> 2024-01-10 15:47:55.882 DEBUG (MainThread) [coap] Received Response: , 3 option(s), 1352 byte(s) payload> 2024-01-10 15:47:55.882 DEBUG (MainThread) [coap] Response , 3 option(s), 1352 byte(s) payload> matched to request , 2 option(s)> with 2 callbacks> 2024-01-10 15:47:55.885 DEBUG (MainThread) [aioairctrl.coap.client] status: {"state":{"reported":{"D01102":6,"D01S03":"Living room","D01S04":"Apollo","D01S05":"CX5120/11","D01107":0,"D01108":3,"D01109":3,"D0110A":0,"D0110B":1,"D0110C":33,"D0110F":3,"D01S12":"0.2.9","D01213":0,"ProductId":"b41d6ad4d91911edb6720217247a73aa","DeviceId":"f3a432c587cd11ee99be5171da9d1490","MCUBoot":true,"Runtime":166084128,"rssi":-34,"wifilog":false,"free_memory":58144,"WifiVersion":"AWS_Philips_AIR@84","StatusType":"status","ConnectType":"Online","D03102":1,"D03105":0,"D03106":0,"D0310A":3,"D0310C":66,"D0310D":1,"D0310E":37,"D0320F":17920,"D03110":0,"D03224":220,"D03130":100,"D03240":0,"D03180":0,"D03182":2},"desired":null}} 2024-01-10 15:47:55.886 DEBUG (MainThread) [aioairctrl.coap.client] max age = 60 2024-01-10 15:47:55.886 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] finished first refresh for host 192.168.1.36 2024-01-10 15:47:55.886 DEBUG (MainThread) [custom_components.philips_airpurifier_coap] coordinator did first refresh for host 192.168.1.36 2024-01-10 15:47:55.890 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Timer cancelled: ('RESET',) 2024-01-10 15:47:55.891 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s 2024-01-10 15:47:55.893 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.fan] async_setup_entry called for platform fan 2024-01-10 15:47:55.893 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] PhilipsEntity __init__ called 2024-01-10 15:47:55.893 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] coordinator.status is: {'D01102': 6, 'D01S03': 'Living room', 'D01S04': 'Apollo', 'D01S05': 'CX5120/11', 'D01107': 0, 'D01108': 3, 'D01109': 3, 'D0110A': 0, 'D0110B': 1, 'D0110C': 33, 'D0110F': 3, 'D01S12': '0.2.9', 'D01213': 0, 'ProductId': 'b41d6ad4d91911edb6720217247a73aa', 'DeviceId': 'f3a432c587cd11ee99be5171da9d1490', 'MCUBoot': True, 'Runtime': 166084128, 'rssi': -34, 'wifilog': False, 'free_memory': 58144, 'WifiVersion': 'AWS_Philips_AIR@84', 'StatusType': 'status', 'ConnectType': 'Online', 'D03102': 1, 'D03105': 0, 'D03106': 0, 'D0310A': 3, 'D0310C': 66, 'D0310D': 1, 'D0310E': 37, 'D0320F': 17920, 'D03110': 0, 'D03224': 220, 'D03130': 100, 'D03240': 0, 'D03180': 0, 'D03182': 2} 2024-01-10 15:47:55.894 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.sensor] async_setup_entry called for platform sensor 2024-01-10 15:47:55.894 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] PhilipsEntity __init__ called 2024-01-10 15:47:55.894 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] coordinator.status is: {'D01102': 6, 'D01S03': 'Living room', 'D01S04': 'Apollo', 'D01S05': 'CX5120/11', 'D01107': 0, 'D01108': 3, 'D01109': 3, 'D0110A': 0, 'D0110B': 1, 'D0110C': 33, 'D0110F': 3, 'D01S12': '0.2.9', 'D01213': 0, 'ProductId': 'b41d6ad4d91911edb6720217247a73aa', 'DeviceId': 'f3a432c587cd11ee99be5171da9d1490', 'MCUBoot': True, 'Runtime': 166084128, 'rssi': -34, 'wifilog': False, 'free_memory': 58144, 'WifiVersion': 'AWS_Philips_AIR@84', 'StatusType': 'status', 'ConnectType': 'Online', 'D03102': 1, 'D03105': 0, 'D03106': 0, 'D0310A': 3, 'D0310C': 66, 'D0310D': 1, 'D0310E': 37, 'D0320F': 17920, 'D03110': 0, 'D03224': 220, 'D03130': 100, 'D03240': 0, 'D03180': 0, 'D03182': 2} 2024-01-10 15:47:55.894 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.switch] async_setup_entry called for platform switch 2024-01-10 15:47:55.894 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.light] async_setup_entry called for platform light 2024-01-10 15:47:55.895 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] PhilipsEntity __init__ called 2024-01-10 15:47:55.895 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] coordinator.status is: {'D01102': 6, 'D01S03': 'Living room', 'D01S04': 'Apollo', 'D01S05': 'CX5120/11', 'D01107': 0, 'D01108': 3, 'D01109': 3, 'D0110A': 0, 'D0110B': 1, 'D0110C': 33, 'D0110F': 3, 'D01S12': '0.2.9', 'D01213': 0, 'ProductId': 'b41d6ad4d91911edb6720217247a73aa', 'DeviceId': 'f3a432c587cd11ee99be5171da9d1490', 'MCUBoot': True, 'Runtime': 166084128, 'rssi': -34, 'wifilog': False, 'free_memory': 58144, 'WifiVersion': 'AWS_Philips_AIR@84', 'StatusType': 'status', 'ConnectType': 'Online', 'D03102': 1, 'D03105': 0, 'D03106': 0, 'D0310A': 3, 'D0310C': 66, 'D0310D': 1, 'D0310E': 37, 'D0320F': 17920, 'D03110': 0, 'D03224': 220, 'D03130': 100, 'D03240': 0, 'D03180': 0, 'D03182': 2} 2024-01-10 15:47:55.895 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.select] async_setup_entry called for platform select 2024-01-10 15:47:55.900 DEBUG (MainThread) [aioairctrl.coap.client] observing status 2024-01-10 15:47:55.901 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Timer cancelled: ('RESET',) 2024-01-10 15:47:55.901 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s 2024-01-10 15:47:55.904 ERROR (MainThread) [homeassistant.components.light] Error adding entities for domain light with platform philips_airpurifier_coap Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 507, in async_add_entities await asyncio.gather(*tasks) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 752, in _async_add_entity await entity.add_to_platform_finish() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1278, in add_to_platform_finish self.async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 941, in async_write_ha_state self._async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1062, in _async_write_ha_state state, attr, capabilities, shadowed_attr = self.__async_calculate_state() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 999, in __async_calculate_state state = self._stringify_state(available) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 947, in _stringify_state if (state := self.state) is None: ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1553, in state if (is_on := self.is_on) is None: ^^^^^^^^^^ File "/config/custom_components/philips_airpurifier_coap/light.py", line 117, in is_on status = int(self._device_status.get(self.kind)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType' 2024-01-10 15:47:55.916 ERROR (MainThread) [homeassistant.components.light] Error while setting up philips_airpurifier_coap platform for light Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 368, in _async_setup_platform await asyncio.gather(*pending) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 507, in async_add_entities await asyncio.gather(*tasks) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 752, in _async_add_entity await entity.add_to_platform_finish() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1278, in add_to_platform_finish self.async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 941, in async_write_ha_state self._async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1062, in _async_write_ha_state state, attr, capabilities, shadowed_attr = self.__async_calculate_state() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 999, in __async_calculate_state state = self._stringify_state(available) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 947, in _stringify_state if (state := self.state) is None: ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1553, in state if (is_on := self.is_on) is None: ^^^^^^^^^^ File "/config/custom_components/philips_airpurifier_coap/light.py", line 117, in is_on status = int(self._device_status.get(self.kind)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType' 2024-01-10 15:47:55.929 DEBUG (MainThread) [coap] Sending request - Token: e0fa, Remote: 2024-01-10 15:47:55.929 DEBUG (MainThread) [coap] Sending message , 2 option(s)> 2024-01-10 15:50:55.901 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Calling timeout callback 2024-01-10 15:50:55.902 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] reconnect: called for host 192.168.1.36 2024-01-10 15:50:55.902 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] reconnect: creating new reconnect task for host 192.168.1.36 2024-01-10 15:50:55.902 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Timeout callback finished! 2024-01-10 15:50:55.902 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s 2024-01-10 15:50:55.903 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] Reconnecting 2024-01-10 15:50:55.903 DEBUG (MainThread) [coap] Shutting down context 2024-01-10 15:50:55.905 DEBUG (MainThread) [coap] Shutting down any outgoing connections on on 2024-01-10 15:50:55.905 DEBUG (MainThread) [coap] Shutting down any outgoing connections on on 2024-01-10 15:50:55.905 DEBUG (MainThread) [coap] Shutting down any connections on 2024-01-10 15:50:55.917 DEBUG (MainThread) [aioairctrl.coap.client] syncing 2024-01-10 15:50:55.919 DEBUG (MainThread) [coap] Sending request - Token: 9f73, Remote: 2024-01-10 15:50:55.920 DEBUG (MainThread) [coap] Sending message , 1 option(s), 8 byte(s) payload> 2024-01-10 15:50:56.028 DEBUG (MainThread) [coap] Incoming message , 1 option(s), 8 byte(s) payload> 2024-01-10 15:50:56.029 DEBUG (MainThread) [coap] Received Response: , 1 option(s), 8 byte(s) payload> 2024-01-10 15:50:56.030 DEBUG (MainThread) [coap] Response , 1 option(s), 8 byte(s) payload> matched to request , 1 option(s), 8 byte(s) payload> with 2 callbacks> 2024-01-10 15:50:56.033 DEBUG (MainThread) [aioairctrl.coap.client] synced: 3F6D1C8F 2024-01-10 15:50:56.034 DEBUG (MainThread) [aioairctrl.coap.client] observing status 2024-01-10 15:50:56.035 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Timer cancelled: ('RESET',) 2024-01-10 15:50:56.035 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s 2024-01-10 15:50:56.037 DEBUG (MainThread) [coap] Sending request - Token: 9f74, Remote: 2024-01-10 15:50:56.038 DEBUG (MainThread) [coap] Sending message , 2 option(s)> 2024-01-10 15:51:11.174 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'list object' has no attribute 'value' when rendering '{{ value_json.value }}' 2024-01-10 15:51:18.788 DEBUG (MainThread) [coap] Incoming message , 3 option(s), 1352 byte(s) payload> 2024-01-10 15:51:18.789 DEBUG (MainThread) [coap] Received Response: , 3 option(s), 1352 byte(s) payload> 2024-01-10 15:51:18.789 DEBUG (MainThread) [coap] Response , 3 option(s), 1352 byte(s) payload> matched to request , 2 option(s)> with 2 callbacks> 2024-01-10 15:51:18.794 DEBUG (MainThread) [aioairctrl.coap.client] observation status: {"state":{"reported":{"D01102":6,"D01S03":"Living room","D01S04":"Apollo","D01S05":"CX5120/11","D01107":0,"D01108":3,"D01109":3,"D0110A":0,"D0110B":1,"D0110C":33,"D0110F":3,"D01S12":"0.2.9","D01213":0,"ProductId":"b41d6ad4d91911edb6720217247a73aa","DeviceId":"f3a432c587cd11ee99be5171da9d1490","MCUBoot":true,"Runtime":166291905,"rssi":-34,"wifilog":false,"free_memory":58144,"WifiVersion":"AWS_Philips_AIR@84","StatusType":"status","ConnectType":"Online","D03102":1,"D03105":0,"D03106":0,"D0310A":3,"D0310C":66,"D0310D":1,"D0310E":37,"D0320F":17920,"D03110":0,"D03224":230,"D03130":100,"D03240":0,"D03180":0,"D03182":2},"desired":null}} 2024-01-10 15:51:18.794 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] Status update: {'D01102': 6, 'D01S03': 'Living room', 'D01S04': 'Apollo', 'D01S05': 'CX5120/11', 'D01107': 0, 'D01108': 3, 'D01109': 3, 'D0110A': 0, 'D0110B': 1, 'D0110C': 33, 'D0110F': 3, 'D01S12': '0.2.9', 'D01213': 0, 'ProductId': 'b41d6ad4d91911edb6720217247a73aa', 'DeviceId': 'f3a432c587cd11ee99be5171da9d1490', 'MCUBoot': True, 'Runtime': 166291905, 'rssi': -34, 'wifilog': False, 'free_memory': 58144, 'WifiVersion': 'AWS_Philips_AIR@84', 'StatusType': 'status', 'ConnectType': 'Online', 'D03102': 1, 'D03105': 0, 'D03106': 0, 'D0310A': 3, 'D0310C': 66, 'D0310D': 1, 'D0310E': 37, 'D0320F': 17920, 'D03110': 0, 'D03224': 230, 'D03130': 100, 'D03240': 0, 'D03180': 0, 'D03182': 2} 2024-01-10 15:51:18.796 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Timer cancelled: ('RESET',) 2024-01-10 15:51:18.796 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s 2024-01-10 15:53:38.437 DEBUG (MainThread) [coap] Incoming message , 3 option(s), 1352 byte(s) payload> 2024-01-10 15:53:38.439 DEBUG (MainThread) [coap] Received Response: , 3 option(s), 1352 byte(s) payload> 2024-01-10 15:53:38.439 DEBUG (MainThread) [coap] Response , 3 option(s), 1352 byte(s) payload> matched to request , 2 option(s)> with 2 callbacks> 024-01-10 15:54:18.797 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Calling timeout callback 2024-01-10 15:54:18.798 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] reconnect: called for host 192.168.1.36 2024-01-10 15:54:18.798 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] reconnect: cancelling reconnect task for host 192.168.1.36 2024-01-10 15:54:18.798 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] reconnect: creating new reconnect task for host 192.168.1.36 2024-01-10 15:54:18.798 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Timeout callback finished! 2024-01-10 15:54:18.799 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s 2024-01-10 15:54:18.799 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] Reconnecting 2024-01-10 15:54:18.799 DEBUG (MainThread) [coap] Shutting down context 2024-01-10 15:54:18.801 DEBUG (MainThread) [coap] Shutting down any outgoing connections on on 2024-01-10 15:54:18.801 DEBUG (MainThread) [coap] Shutting down any outgoing connections on on 2024-01-10 15:54:18.802 DEBUG (MainThread) [coap] Shutting down any connections on 2024-01-10 15:54:18.808 DEBUG (MainThread) [aioairctrl.coap.client] syncing 2024-01-10 15:54:18.812 DEBUG (MainThread) [coap] Sending request - Token: be53, Remote: 2024-01-10 15:54:18.812 DEBUG (MainThread) [coap] Sending message , 1 option(s), 8 byte(s) payload> 2024-01-10 15:54:18.885 DEBUG (MainThread) [coap] Incoming message , 1 option(s), 8 byte(s) payload> 2024-01-10 15:54:18.886 DEBUG (MainThread) [coap] Received Response: , 1 option(s), 8 byte(s) payload> 2024-01-10 15:54:18.887 DEBUG (MainThread) [coap] Response , 1 option(s), 8 byte(s) payload> matched to request , 1 option(s), 8 byte(s) payload> with 2 callbacks> 2024-01-10 15:54:18.888 DEBUG (MainThread) [aioairctrl.coap.client] synced: 7635030A 2024-01-10 15:54:18.889 DEBUG (MainThread) [aioairctrl.coap.client] observing status 2024-01-10 15:54:18.890 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Timer cancelled: ('RESET',) 2024-01-10 15:54:18.890 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s 2024-01-10 15:54:18.893 DEBUG (MainThread) [coap] Sending request - Token: be54, Remote: 2024-01-10 15:54:18.894 DEBUG (MainThread) [coap] Sending message , 2 option(s)> 2024-01-10 15:56:17.183 DEBUG (MainThread) [coap] Incoming message , 3 option(s), 1352 byte(s) payload> 2024-01-10 15:56:17.184 DEBUG (MainThread) [coap] Received Response: , 3 option(s), 1352 byte(s) payload> 2024-01-10 15:56:17.185 DEBUG (MainThread) [coap] Response , 3 option(s), 1352 byte(s) payload> matched to request , 2 option(s)> with 2 callbacks> 2024-01-10 15:56:17.189 DEBUG (MainThread) [aioairctrl.coap.client] observation status: {"state":{"reported":{"D01102":6,"D01S03":"Living room","D01S04":"Apollo","D01S05":"CX5120/11","D01107":0,"D01108":3,"D01109":3,"D0110A":0,"D0110B":1,"D0110C":33,"D0110F":3,"D01S12":"0.2.9","D01213":0,"ProductId":"b41d6ad4d91911edb6720217247a73aa","DeviceId":"f3a432c587cd11ee99be5171da9d1490","MCUBoot":true,"Runtime":166597460,"rssi":-32,"wifilog":false,"free_memory":57672,"WifiVersion":"AWS_Philips_AIR@84","StatusType":"status","ConnectType":"Online","D03102":1,"D03105":0,"D03106":0,"D0310A":3,"D0310C":66,"D0310D":1,"D0310E":37,"D0320F":17920,"D03110":0,"D03224":250,"D03130":100,"D03240":0,"D03180":0,"D03182":2},"desired":null}} 2024-01-10 15:56:17.189 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] Status update: {'D01102': 6, 'D01S03': 'Living room', 'D01S04': 'Apollo', 'D01S05': 'CX5120/11', 'D01107': 0, 'D01108': 3, 'D01109': 3, 'D0110A': 0, 'D0110B': 1, 'D0110C': 33, 'D0110F': 3, 'D01S12': '0.2.9', 'D01213': 0, 'ProductId': 'b41d6ad4d91911edb6720217247a73aa', 'DeviceId': 'f3a432c587cd11ee99be5171da9d1490', 'MCUBoot': True, 'Runtime': 166597460, 'rssi': -32, 'wifilog': False, 'free_memory': 57672, 'WifiVersion': 'AWS_Philips_AIR@84', 'StatusType': 'status', 'ConnectType': 'Online', 'D03102': 1, 'D03105': 0, 'D03106': 0, 'D0310A': 3, 'D0310C': 66, 'D0310D': 1, 'D0310E': 37, 'D0320F': 17920, 'D03110': 0, 'D03224': 250, 'D03130': 100, 'D03240': 0, 'D03180': 0, 'D03182': 2} 2024-01-10 15:56:17.193 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Timer cancelled: ('RESET',) 2024-01-10 15:56:17.193 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s 2024-01-10 15:59:17.194 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Calling timeout callback 2024-01-10 15:59:17.195 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] reconnect: called for host 192.168.1.36 2024-01-10 15:59:17.195 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] reconnect: cancelling reconnect task for host 192.168.1.36 2024-01-10 15:59:17.195 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] reconnect: creating new reconnect task for host 192.168.1.36 2024-01-10 15:59:17.195 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Timeout callback finished! 2024-01-10 15:59:17.196 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s 2024-01-10 15:59:17.196 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] Reconnecting 2024-01-10 15:59:17.196 DEBUG (MainThread) [coap] Shutting down context 2024-01-10 15:59:17.197 DEBUG (MainThread) [coap] Shutting down any outgoing connections on on 2024-01-10 15:59:17.197 DEBUG (MainThread) [coap] Shutting down any outgoing connections on on 2024-01-10 15:59:17.198 DEBUG (MainThread) [coap] Shutting down any connections on 2024-01-10 15:59:17.204 DEBUG (MainThread) [aioairctrl.coap.client] syncing 2024-01-10 15:59:17.208 DEBUG (MainThread) [coap] Sending request - Token: 53a2, Remote: 2024-01-10 15:59:17.208 DEBUG (MainThread) [coap] Sending message , 1 option(s), 8 byte(s) payload> 2024-01-10 15:59:17.287 DEBUG (MainThread) [coap] Incoming message , 1 option(s), 8 byte(s) payload> 2024-01-10 15:59:17.288 DEBUG (MainThread) [coap] Received Response: , 1 option(s), 8 byte(s) payload> 2024-01-10 15:59:17.289 DEBUG (MainThread) [coap] Response , 1 option(s), 8 byte(s) payload> matched to request , 1 option(s), 8 byte(s) payload> with 2 callbacks> 2024-01-10 15:59:17.292 DEBUG (MainThread) [aioairctrl.coap.client] synced: 319D5B78 2024-01-10 15:59:17.293 DEBUG (MainThread) [aioairctrl.coap.client] observing status 2024-01-10 15:59:17.294 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Timer cancelled: ('RESET',) 2024-01-10 15:59:17.294 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s 2024-01-10 15:59:17.296 DEBUG (MainThread) [coap] Sending request - Token: 53a3, Remote: 2024-01-10 15:59:17.296 DEBUG (MainThread) [coap] Sending message , 2 option(s)> 2024-01-10 16:01:23.591 DEBUG (MainThread) [coap] Incoming message , 3 option(s), 1352 byte(s) payload> 2024-01-10 16:01:23.592 DEBUG (MainThread) [coap] Received Response: , 3 option(s), 1352 byte(s) payload> 2024-01-10 16:01:23.592 DEBUG (MainThread) [coap] Response , 3 option(s), 1352 byte(s) payload> matched to request , 2 option(s)> with 2 callbacks> 2024-01-10 16:01:23.599 DEBUG (MainThread) [aioairctrl.coap.client] observation status: {"state":{"reported":{"D01102":6,"D01S03":"Living room","D01S04":"Apollo","D01S05":"CX5120/11","D01107":0,"D01108":3,"D01109":3,"D0110A":0,"D0110B":1,"D0110C":33,"D0110F":3,"D01S12":"0.2.9","D01213":0,"ProductId":"b41d6ad4d91911edb6720217247a73aa","DeviceId":"f3a432c587cd11ee99be5171da9d1490","MCUBoot":true,"Runtime":166911211,"rssi":-32,"wifilog":false,"free_memory":57208,"WifiVersion":"AWS_Philips_AIR@84","StatusType":"status","ConnectType":"Online","D03102":1,"D03105":0,"D03106":0,"D0310A":3,"D0310C":66,"D0310D":1,"D0310E":37,"D0320F":17920,"D03110":0,"D03224":260,"D03130":100,"D03240":0,"D03180":0,"D03182":2},"desired":null}} 2024-01-10 16:01:23.599 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] Status update: {'D01102': 6, 'D01S03': 'Living room', 'D01S04': 'Apollo', 'D01S05': 'CX5120/11', 'D01107': 0, 'D01108': 3, 'D01109': 3, 'D0110A': 0, 'D0110B': 1, 'D0110C': 33, 'D0110F': 3, 'D01S12': '0.2.9', 'D01213': 0, 'ProductId': 'b41d6ad4d91911edb6720217247a73aa', 'DeviceId': 'f3a432c587cd11ee99be5171da9d1490', 'MCUBoot': True, 'Runtime': 166911211, 'rssi': -32, 'wifilog': False, 'free_memory': 57208, 'WifiVersion': 'AWS_Philips_AIR@84', 'StatusType': 'status', 'ConnectType': 'Online', 'D03102': 1, 'D03105': 0, 'D03106': 0, 'D0310A': 3, 'D0310C': 66, 'D0310D': 1, 'D0310E': 37, 'D0320F': 17920, 'D03110': 0, 'D03224': 260, 'D03130': 100, 'D03240': 0, 'D03180': 0, 'D03182': 2} 2024-01-10 16:01:23.601 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Timer cancelled: ('RESET',) 2024-01-10 16:01:23.602 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s 2024-01-10 16:04:23.603 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Calling timeout callback 2024-01-10 16:04:23.603 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] reconnect: called for host 192.168.1.36 2024-01-10 16:04:23.604 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] reconnect: cancelling reconnect task for host 192.168.1.36 2024-01-10 16:04:23.604 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] reconnect: creating new reconnect task for host 192.168.1.36 2024-01-10 16:04:23.604 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Timeout callback finished! 2024-01-10 16:04:23.604 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s 2024-01-10 16:04:23.605 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] Reconnecting 2024-01-10 16:04:23.605 DEBUG (MainThread) [coap] Shutting down context 2024-01-10 16:04:23.609 DEBUG (MainThread) [coap] Shutting down any outgoing connections on on 2024-01-10 16:04:23.610 DEBUG (MainThread) [coap] Shutting down any outgoing connections on on 2024-01-10 16:04:23.610 DEBUG (MainThread) [coap] Shutting down any connections on 2024-01-10 16:04:23.626 DEBUG (MainThread) [aioairctrl.coap.client] syncing 2024-01-10 16:04:23.628 DEBUG (MainThread) [coap] Sending request - Token: 35a0, Remote: 2024-01-10 16:04:23.629 DEBUG (MainThread) [coap] Sending message , 1 option(s), 8 byte(s) payload> 2024-01-10 16:04:23.665 DEBUG (MainThread) [coap] Incoming message , 1 option(s), 8 byte(s) payload> 2024-01-10 16:04:23.665 DEBUG (MainThread) [coap] Received Response: , 1 option(s), 8 byte(s) payload> 2024-01-10 16:04:23.666 DEBUG (MainThread) [coap] Response , 1 option(s), 8 byte(s) payload> matched to request , 1 option(s), 8 byte(s) payload> with 2 callbacks> 2024-01-10 16:04:23.667 DEBUG (MainThread) [aioairctrl.coap.client] synced: 1A1974B2 2024-01-10 16:04:23.667 DEBUG (MainThread) [aioairctrl.coap.client] observing status 2024-01-10 16:04:23.668 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Timer cancelled: ('RESET',) 2024-01-10 16:04:23.668 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s 2024-01-10 16:04:23.671 DEBUG (MainThread) [coap] Sending request - Token: 35a1, Remote: 2024-01-10 16:04:23.672 DEBUG (MainThread) [coap] Sending message , 2 option(s)> 2024-01-10 16:06:18.966 DEBUG (MainThread) [coap] Incoming message , 3 option(s), 1352 byte(s) payload> 2024-01-10 16:06:18.967 DEBUG (MainThread) [coap] Received Response: , 3 option(s), 1352 byte(s) payload> 2024-01-10 16:06:18.968 DEBUG (MainThread) [coap] Response , 3 option(s), 1352 byte(s) payload> matched to request , 2 option(s)> with 2 callbacks> 2024-01-10 16:06:18.976 DEBUG (MainThread) [aioairctrl.coap.client] observation status: {"state":{"reported":{"D01102":6,"D01S03":"Living room","D01S04":"Apollo","D01S05":"CX5120/11","D01107":0,"D01108":3,"D01109":3,"D0110A":0,"D0110B":1,"D0110C":33,"D0110F":3,"D01S12":"0.2.9","D01213":0,"ProductId":"b41d6ad4d91911edb6720217247a73aa","DeviceId":"f3a432c587cd11ee99be5171da9d1490","MCUBoot":true,"Runtime":167213684,"rssi":-32,"wifilog":false,"free_memory":57208,"WifiVersion":"AWS_Philips_AIR@84","StatusType":"status","ConnectType":"Online","D03102":1,"D03105":0,"D03106":0,"D0310A":3,"D0310C":66,"D0310D":1,"D0310E":37,"D0320F":17920,"D03110":0,"D03224":250,"D03130":100,"D03240":0,"D03180":0,"D03182":2},"desired":null}} 2024-01-10 16:06:18.976 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] Status update: {'D01102': 6, 'D01S03': 'Living room', 'D01S04': 'Apollo', 'D01S05': 'CX5120/11', 'D01107': 0, 'D01108': 3, 'D01109': 3, 'D0110A': 0, 'D0110B': 1, 'D0110C': 33, 'D0110F': 3, 'D01S12': '0.2.9', 'D01213': 0, 'ProductId': 'b41d6ad4d91911edb6720217247a73aa', 'DeviceId': 'f3a432c587cd11ee99be5171da9d1490', 'MCUBoot': True, 'Runtime': 167213684, 'rssi': -32, 'wifilog': False, 'free_memory': 57208, 'WifiVersion': 'AWS_Philips_AIR@84', 'StatusType': 'status', 'ConnectType': 'Online', 'D03102': 1, 'D03105': 0, 'D03106': 0, 'D0310A': 3, 'D0310C': 66, 'D0310D': 1, 'D0310E': 37, 'D0320F': 17920, 'D03110': 0, 'D03224': 250, 'D03130': 100, 'D03240': 0, 'D03180': 0, 'D03182': 2} 2024-01-10 16:06:18.981 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Timer cancelled: ('RESET',) 2024-01-10 16:06:18.981 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s ```
Anashost commented 8 months ago
  • the state of the device on & off doesn't change until i do a reload.
  • reload takes long time.

the reload doesn't seems to end successfully or finish until i interact with the device physically or via the Air+ app.

kongo09 commented 8 months ago

Just that I understand, if the device is on and you switch it off manually on the device, this doesn't show in home assistant until you reload the integration?

Anashost commented 8 months ago

I need to do some more testing to make sure I'm describing the behavior correctly. But I'm sure the state changing is kinda laggy where it:

The thing that i noticed with reload that it takes very long time, but during reloading if i interact with the device physically (click a button) or via the Air+ app, then reloading finishes right away and state changes.

As of now i was looking into the json responses and noticed things that might help with the integration, i hope im correct with those:

Modes: "D0310C": 66 low "D0310C": 65 high "D0310C": 0 auto
"D0310C": -127 ventilation

Temperature: "D03224": 220 current temperature 22 C°

Anashost commented 8 months ago

Here's a screenshot from the Air+ app, might help with understanding the device functionalities.

But really a stable on/off behavior would be enough for me personally and is much appreciated <3

Screenshot_20240110_232239_Air+

kongo09 commented 8 months ago

Thanks. Unfortunately, most Philips devices are not very stable via that encrypted CoAP connection. Some randomly stop responding at all. Most take long to respond especially during loading of the integration but so far nobody has figured out why that is. It feels like Philips is not putting much effort into that, as the app works via a cloud connection.

The next iteration will try to make the light dimmable. Please check if that works for your device.

I'll add the temperature sensor next, let's see how that goes. Which value is for the target temperature and what range is acceptable there?

kongo09 commented 8 months ago

Next beta v5 is out

Anashost commented 8 months ago

Thanks. Unfortunately, most Philips devices are not very stable via that encrypted CoAP connection. Some randomly stop responding at all. Most take long to respond especially during loading of the integration but so far nobody has figured out why that is. It feels like Philips is not putting much effort into that, as the app works via a cloud connection

Thats unfortunate, but i hope the device would work more than it fails lol.

The next iteration will try to make the light dimmable. Please check if that works for your device.

The display Backlight is always grayed out and not clickable.

Which value is for the target temperature and what range is acceptable there?

This option works in Auto mode only otherwise its grayed out Rang is between 1 --> 37

v0.17-amfcx-beta.6 & v0.17-amfcx-beta.7

Integration failed to start

HA logs ``` Logger: homeassistant.loader Source: loader.py:822 First occurred: 8:57:41 AM (1 occurrences) Last logged: 8:57:41 AM Unexpected exception importing component custom_components.philips_airpurifier_coap Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/loader.py", line 822, in get_component ComponentProtocol, importlib.import_module(self.pkg_path) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1204, in _gcd_import File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "/config/custom_components/philips_airpurifier_coap/__init__.py", line 18, in from .const import ( File "/config/custom_components/philips_airpurifier_coap/const.py", line 541, in FanAttributes.TOTAL: PhilipsApi.NEW2_FILTER_NANOPROTECT_CLEAN_TOTAL, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: type object 'PhilipsApi' has no attribute 'NEW2_FILTER_NANOPROTECT_CLEAN_TOTAL' Logger: homeassistant.setup Source: setup.py:251 First occurred: 8:57:41 AM (1 occurrences) Last logged: 8:57:41 AM Setup failed for custom integration 'philips_airpurifier_coap': Unable to import component: Exception importing custom_components.philips_airpurifier_coap Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/loader.py", line 822, in get_component ComponentProtocol, importlib.import_module(self.pkg_path) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1204, in _gcd_import File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "/config/custom_components/philips_airpurifier_coap/__init__.py", line 18, in from .const import ( File "/config/custom_components/philips_airpurifier_coap/const.py", line 541, in FanAttributes.TOTAL: PhilipsApi.NEW2_FILTER_NANOPROTECT_CLEAN_TOTAL, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: type object 'PhilipsApi' has no attribute 'NEW2_FILTER_NANOPROTECT_CLEAN_TOTAL' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/setup.py", line 251, in _async_setup_component component = integration.get_component() ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/loader.py", line 830, in get_component raise ImportError(f"Exception importing {self.pkg_path}") from err ImportError: Exception importing custom_components.philips_airpurifier_coap Logger: homeassistant.loader Source: loader.py:842 First occurred: 8:58:14 AM (1 occurrences) Last logged: 8:58:14 AM Unexpected exception importing platform custom_components.philips_airpurifier_coap.config_flow Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/loader.py", line 842, in get_platform cache[full_name] = self._import_platform(platform_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/loader.py", line 859, in _import_platform return importlib.import_module(f"{self.pkg_path}.{platform_name}") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1204, in _gcd_import File "", line 1176, in _find_and_load File "", line 1126, in _find_and_load_unlocked File "", line 241, in _call_with_frames_removed File "", line 1204, in _gcd_import File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "/config/custom_components/philips_airpurifier_coap/__init__.py", line 18, in from .const import ( File "/config/custom_components/philips_airpurifier_coap/const.py", line 541, in FanAttributes.TOTAL: PhilipsApi.NEW2_FILTER_NANOPROTECT_CLEAN_TOTAL, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: type object 'PhilipsApi' has no attribute 'NEW2_FILTER_NANOPROTECT_CLEAN_TOTAL' Logger: homeassistant.config_entries Source: config_entries.py:2087 First occurred: 8:58:14 AM (1 occurrences) Last logged: 8:58:14 AM Error occurred loading flow for integration philips_airpurifier_coap: Exception importing custom_components.philips_airpurifier_coap.config_flow Logger: homeassistant Source: config_entries.py:2092 First occurred: 8:58:14 AM (1 occurrences) Last logged: 8:58:14 AM Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/loader.py", line 842, in get_platform cache[full_name] = self._import_platform(platform_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/loader.py", line 859, in _import_platform return importlib.import_module(f"{self.pkg_path}.{platform_name}") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1204, in _gcd_import File "", line 1176, in _find_and_load File "", line 1126, in _find_and_load_unlocked File "", line 241, in _call_with_frames_removed File "", line 1204, in _gcd_import File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "/config/custom_components/philips_airpurifier_coap/__init__.py", line 18, in from .const import ( File "/config/custom_components/philips_airpurifier_coap/const.py", line 541, in FanAttributes.TOTAL: PhilipsApi.NEW2_FILTER_NANOPROTECT_CLEAN_TOTAL, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: type object 'PhilipsApi' has no attribute 'NEW2_FILTER_NANOPROTECT_CLEAN_TOTAL' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2085, in _load_integration integration.get_platform("config_flow") File "/usr/src/homeassistant/homeassistant/loader.py", line 851, in get_platform raise ImportError( ImportError: Exception importing custom_components.philips_airpurifier_coap.config_flow During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 888, in async_init flow, result = await task ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/config_entries.py", line 906, in _async_init flow = await self.async_create_flow(handler, context=context, data=data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1009, in async_create_flow handler = await _async_get_flow_handler( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2106, in _async_get_flow_handler await _load_integration(hass, domain, hass_config) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2092, in _load_integration raise data_entry_flow.UnknownHandler homeassistant.data_entry_flow.UnknownHandler ```
kongo09 commented 8 months ago

The display Backlight is always grayed out and not clickable.

I've tried something new now, can you please check if it works for the light and if it is dimmable?

I also added some more stuff and the errors should be gone from the log. Let me know how it goes.

Anashost commented 8 months ago

testing: v0.17-amfcx-beta.8

Nice, almost everything seems good and stable,

Screenshot_20240112_123127_Home Assistant

kongo09 commented 8 months ago

The broken temp sensor should now be gone (and turned into an actual speed sensor). Please check.

Anashost commented 8 months ago

Testing: v0.17-amfcx-beta.11

The broken temp sensor should now be gone (and turned into an actual speed sensor)

It's gone but: This model doesn't have a speed sensor or change speed functionality. It does have a swing on/off. But as i mentioned earlier it still doesn't turn on, can only be turned off if it's already on. (I do hear a peep sound but nothing happens and the toggle flips back to on)

There's no related logs in Home assistant settings.

But here's the DEBUG logs.

DEBUG ``` 2024-01-16 13:00:16.081 DEBUG (MainThread) [aioairctrl.coap.client] REQUEST: {"state": {"desired": {"CommandType": "app", "DeviceId": "", "EnduserId": "", "D03102": 0}}} 2024-01-16 13:00:16.088 DEBUG (MainThread) [coap] Sending request - Token: e09b, Remote: 2024-01-16 13:00:16.089 DEBUG (MainThread) [coap] Sending message , 1 option(s), 264 byte(s) payload> 2024-01-16 13:00:16.153 DEBUG (MainThread) [coap] Incoming message , 1 option(s), 20 byte(s) payload> 2024-01-16 13:00:16.154 DEBUG (MainThread) [coap] Received Response: , 1 option(s), 20 byte(s) payload> 2024-01-16 13:00:16.154 DEBUG (MainThread) [coap] Response , 1 option(s), 20 byte(s) payload> matched to request , 1 option(s), 264 byte(s) payload> with 2 callbacks> 2024-01-16 13:00:16.155 DEBUG (MainThread) [aioairctrl.coap.client] RESPONSE: b'{"status":"success"}' 2024-01-16 13:00:16.482 DEBUG (MainThread) [coap] Incoming message , 3 option(s), 1352 byte(s) payload> 2024-01-16 13:00:16.483 DEBUG (MainThread) [coap] Received Response: , 3 option(s), 1352 byte(s) payload> 2024-01-16 13:00:16.485 DEBUG (MainThread) [coap] Response , 3 option(s), 1352 byte(s) payload> matched to request , 2 option(s)> with 2 callbacks> 2024-01-16 13:00:16.486 DEBUG (MainThread) [coap.blockwise-requester] Notification received 2024-01-16 13:00:16.487 DEBUG (MainThread) [coap.blockwise-requester] Reporting completed notification 2024-01-16 13:00:16.491 DEBUG (MainThread) [aioairctrl.coap.client] observation status: {"state":{"reported":{"D01102":6,"D01S03":"Living room","D01S04":"Apollo","D01S05":"CX5120/11","D01107":0,"D01108":3,"D01109":3,"D0110A":0,"D0110B":1,"D0110C":33,"D0110F":3,"D01S12":"0.2.9","D01213":0,"ProductId":"b41d6ad4d91911edb6720217247a73aa","DeviceId":"f3a432c587cd11ee99be5171da9d1490","MCUBoot":true,"Runtime":686623674,"rssi":-35,"wifilog":false,"free_memory":56608,"WifiVersion":"AWS_Philips_AIR@84","StatusType":"control","ConnectType":"Online","D03102":0,"D03105":100,"D03106":0,"D0310A":3,"D0310C":66,"D0310D":1,"D0310E":37,"D0320F":0,"D03110":0,"D03224":210,"D03130":100,"D03240":0,"D03180":0,"D03182":2},"desired":null}} 2024-01-16 13:00:16.492 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] Status update: {'D01102': 6, 'D01S03': 'Living room', 'D01S04': 'Apollo', 'D01S05': 'CX5120/11', 'D01107': 0, 'D01108': 3, 'D01109': 3, 'D0110A': 0, 'D0110B': 1, 'D0110C': 33, 'D0110F': 3, 'D01S12': '0.2.9', 'D01213': 0, 'ProductId': 'b41d6ad4d91911edb6720217247a73aa', 'DeviceId': 'f3a432c587cd11ee99be5171da9d1490', 'MCUBoot': True, 'Runtime': 686623674, 'rssi': -35, 'wifilog': False, 'free_memory': 56608, 'WifiVersion': 'AWS_Philips_AIR@84', 'StatusType': 'control', 'ConnectType': 'Online', 'D03102': 0, 'D03105': 100, 'D03106': 0, 'D0310A': 3, 'D0310C': 66, 'D0310D': 1, 'D0310E': 37, 'D0320F': 0, 'D03110': 0, 'D03224': 210, 'D03130': 100, 'D03240': 0, 'D03180': 0, 'D03182': 2} 2024-01-16 13:00:16.494 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Timer cancelled: ('RESET',) 2024-01-16 13:00:16.494 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s 2024-01-16 13:01:49.871 DEBUG (MainThread) [coap] Incoming message , 3 option(s), 1352 byte(s) payload> 2024-01-16 13:01:49.872 DEBUG (MainThread) [coap] Received Response: , 3 option(s), 1352 byte(s) payload> 2024-01-16 13:01:49.872 DEBUG (MainThread) [coap] Response , 3 option(s), 1352 byte(s) payload> matched to request , 2 option(s)> with 2 callbacks> 2024-01-16 13:01:49.873 DEBUG (MainThread) [coap.blockwise-requester] Notification received 2024-01-16 13:01:49.874 DEBUG (MainThread) [coap.blockwise-requester] Reporting completed notification 2024-01-16 13:01:49.875 DEBUG (MainThread) [aioairctrl.coap.client] observation status: {"state":{"reported":{"D01102":6,"D01S03":"Living room","D01S04":"Apollo","D01S05":"CX5120/11","D01107":0,"D01108":3,"D01109":3,"D0110A":0,"D0110B":1,"D0110C":33,"D0110F":3,"D01S12":"0.2.9","D01213":0,"ProductId":"b41d6ad4d91911edb6720217247a73aa","DeviceId":"f3a432c587cd11ee99be5171da9d1490","MCUBoot":true,"Runtime":686719307,"rssi":-35,"wifilog":false,"free_memory":56688,"WifiVersion":"AWS_Philips_AIR@84","StatusType":"status","ConnectType":"Online","D03102":0,"D03105":100,"D03106":0,"D0310A":3,"D0310C":66,"D0310D":1,"D0310E":37,"D0320F":0,"D03110":0,"D03224":220,"D03130":100,"D03240":0,"D03180":0,"D03182":2},"desired":null}} 2024-01-16 13:01:49.876 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] Status update: {'D01102': 6, 'D01S03': 'Living room', 'D01S04': 'Apollo', 'D01S05': 'CX5120/11', 'D01107': 0, 'D01108': 3, 'D01109': 3, 'D0110A': 0, 'D0110B': 1, 'D0110C': 33, 'D0110F': 3, 'D01S12': '0.2.9', 'D01213': 0, 'ProductId': 'b41d6ad4d91911edb6720217247a73aa', 'DeviceId': 'f3a432c587cd11ee99be5171da9d1490', 'MCUBoot': True, 'Runtime': 686719307, 'rssi': -35, 'wifilog': False, 'free_memory': 56688, 'WifiVersion': 'AWS_Philips_AIR@84', 'StatusType': 'status', 'ConnectType': 'Online', 'D03102': 0, 'D03105': 100, 'D03106': 0, 'D0310A': 3, 'D0310C': 66, 'D0310D': 1, 'D0310E': 37, 'D0320F': 0, 'D03110': 0, 'D03224': 220, 'D03130': 100, 'D03240': 0, 'D03180': 0, 'D03182': 2} 2024-01-16 13:01:49.879 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Timer cancelled: ('RESET',) 2024-01-16 13:01:49.879 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s ```
kongo09 commented 8 months ago

Change in speed has not been implemented yet, that's still on the list. I try to take it one by one.

This device might not have a speed sensor (unlike the AMF device - or would you know which of the above values reflects a speed sensor that's changing with the fan when it is in auto mode?

Anashost commented 8 months ago

Not sure i get what you mean. Is it possible to just remove fan speed for this model, as it's not supported.

I don't use the auto mode at all, because the built-in temperature of this heater becomes way off after running it for some time (like every Heater or TRV out there i guess).

kongo09 commented 8 months ago

Not sure what fan speed you're asking me to remove. Where do you see that?

Anashost commented 8 months ago

Here's a screenshot:

Screenshot_20240116_191652_Home Assistant

kongo09 commented 8 months ago

Ah, sorry, now I understand. So this device does not have any fan at all?

kongo09 commented 8 months ago

The modes above are heat or what are they?

Anashost commented 8 months ago

I should've explained more about the device. So This device is a space heater, it heats with a ceramic coils behind a fan. The modes are:

Other features:

Anashost commented 8 months ago

So far with v0.17-amfcx-beta.11 , i can:

kongo09 commented 8 months ago

Thanks, that helps. It's a bit abstract without having the device...

So this does have a fan which is always on, with or without heating? But it only goes at single speed?

Anashost commented 8 months ago

Yes exactly. The fan turns on when the device turns on, and has one speed on all modes.

kongo09 commented 8 months ago
  • swing works partially (only tuning off works)

This is tricky. I've checked your data above and it matches the code. When Swing is on, your data for D0320F shows a value of 17920. Can you observe any other data field changing when you switch the Swing on?

kongo09 commented 8 months ago

v0.17-amfcx-beta.12

kongo09 commented 8 months ago

Have you identified, which one of the data fields is the target temperature that can be set on the display? Could that be D0310E?

Anashost commented 8 months ago

When Swing is on, your data for D0320F shows a value of 17920

You're right, i don't see any other changes.

Have you identified, which one of the data fields is the target temperature that can be set on the display? Could that be D0310E?

Yes, i think so, here's a json response:

Auto mode - target temp to 25 ``` { "D01102": 6, "D01S03": "Living room", "D01S04": "Apollo", "D01S05": "CX5120/11", "D01107": 0, "D01108": 3, "D01109": 3, "D0110A": 0, "D0110B": 1, "D0110C": 33, "D0110F": 3, "D01S12": "0.2.9", "D01213": 0, "ProductId": "b41d6ad4d91911edb6720217247a73aa", "DeviceId": "f3a432c587cd11ee99be5171da9d1490", "MCUBoot": true, "Runtime": 814678379, "rssi": -31, "wifilog": false, "free_memory": 57536, "WifiVersion": "AWS_Philips_AIR@84", "StatusType": "status", "ConnectType": "Online", "D03102": 1, "D03105": 100, "D03106": 0, "D0310A": 3, "D0310C": 0, "D0310D": 1, "D0310E": 25, "D0320F": 17920, "D03110": 0, "D03224": 190, "D03130": 0, "D03240": 0, "D03180": 0, "D03182": 2 } ```

Not that the option for setting a target temperature only available in auto mode.

Extra: Toggle beep sound "D03130": 100 = on "D03130": 0 = off

kongo09 commented 8 months ago

What about D03110? Is that the timer? It's zero in all your data, but it's a timer in other models.

Anashost commented 8 months ago

Let me test it, i will set a timer and see the values.

Anashost commented 8 months ago

What about D03110? Is that the timer? It's zero in all your data, but it's a timer in other models.

Yes,

Timer set to 3 hours D03110: 4 Timer set to 5 hours D03110: 6

kongo09 commented 8 months ago

So there is no value 1 ?

Anashost commented 8 months ago

So there is no value 1 ?

I don't think so, those philips devs are so weird. 1 hour would be D03110: 2