kongo09 / philips-airpurifier-coap

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

Support request Model AC1715/11 #42

Closed Jaguaza closed 1 year ago

Jaguaza commented 2 years ago

Hi @kongo09. I would like if you could add support for this device.

I am a bit clumsy with this but I will perform all the actions you ask me to do.

My device has wifi firmware:67.5 and device firmware: 0.6.0.

Thanks for everything, my pleasure.

kongo09 commented 2 years ago

I can try to add support for this model, but I will need your help as I don't have access to such a device. But don't worry, hopefully it is not too complicated.

It all depends on your device communicated with encrypted coap. We need to figure out if that works and what settings the device is using. The way to find out is described in the README:

https://github.com/kongo09/philips-airpurifier-coap#is-your-model-not-supported-yet

Do you have access to the command line on Linux and Python installed? This should be the case for your Home Assistant machine, but you can type the commands on any machine that is connected to the same network as your air purifier.

Jaguaza commented 2 years ago

I can try to add support for this model, but I will need your help as I don't have access to such a device. But don't worry, hopefully it is not too complicated.

It all depends on your device communicated with encrypted coap. We need to figure out if that works and what settings the device is using. The way to find out is described in the README:

https://github.com/kongo09/philips-airpurifier-coap#is-your-model-not-supported-yet

Do you have access to the command line on Linux and Python installed? This should be the case for your Home Assistant machine, but you can type the commands on any machine that is connected to the same network as your air purifier.

{
  "D01-02": "Purifier product",
  "D01-03": "CALIDAD AIRE",
  "D01-04": "Nala", 
  "D01-05": "AC1715/11",
  "D01-07": "English",
  "D01-08": 2,
  "D01-09": 1,
  "D01-10": 0,
  "D01-11": 0,
  "D01-20": "0.0.1",
  "D01-21": "0.6.0",
  "MCUBoot": true,
  "Runtime": 50500174,
  "rssi": -65,
  "wifilog": false,
  "free_memory": 57544,
  "WifiVersion": "AWS_Philips_AIR@69.1",
  "ProductId": "32d3e652179d11ec99f70217247a73aa",
  "DeviceId": "29378ecee0f011ec9c95960e905418ad",
  "StatusType": "status",
  "ConnectType": "Online",
  "D03-02": "ON",
  "D03-03": false,
  "D03-04": 100,
  "D03-05": 100,
  "D03-11": "A",
  "D03-12": "Turbo",
  "D03-13": "t",
  "D03-32": 1,
  "D03-33": 1,
  "D03-42": "IAI",
  "D03-43": "IAI",
  "D03-44": 7,
  "aqit_ext": 0,
  "D03-64": 0,
  "D05-02": "A3",
  "D05-03": "none",
  "D05-07": 720,
  "D05-08": 4800,
  "D05-09": 0,
  "D05-13": 591,
  "D05-14": 4671,
  "D05-15": 0
}
Jaguaza commented 2 years ago

@kongo09 this is what you need?

kongo09 commented 2 years ago

Oh, in theory yes, But this looks totally different from all other models. I've never seen these D0x-0x codes before and don't know what they mean.

Jaguaza commented 2 years ago

Oh, in theory yes, But this looks totally different from all other models. I've never seen these D0x-0x codes before and don't know what they mean.

Do you need anything else?

Jaguaza commented 2 years ago

Oh, in theory yes, But this looks totally different from all other models. I've never seen these D0x-0x codes before and don't know what they mean.

Do you need anything else?

@kongo09

Jaguaza commented 2 years ago

@kongo09 Hi, sorry to be so insistent.

Can you finally add this model to home Assistant?

Thanks for your work, it is appreciated.

kongo09 commented 2 years ago

As I said, I don't know what the codes mean, so I cannot add it.

You could try and change one seeing at a time on your device and then observe how these values change to find out, what corresponds to what. Essentially, it is always key-value pairs. So you would change to night mode for example and then pull the data as before and take note, which key changed to what value.

Jaguaza commented 2 years ago

As I said, I don't know what the codes mean, so I cannot add it.

You could try and change one seeing at a time on your device and then observe how these values change to find out, what corresponds to what. Essentially, it is always key-value pairs. So you would change to night mode for example and then pull the data as before and take note, which key changed to what value.

Hi @kongo09, here's what I've managed to get out of it.

Do you have more experience, do you miss any data?

The light changes two digits when I switch on and off.

And I did not find the value of the % of filter change, only the cleaning.

Let me know so I can continue to make progress.

D03-32 = Allergens Index (NUMBER) D03-33 = PM2.5 (NUMBER) D03-02 = POWER (ON - OFF) D03-12 = MODE ( Auto General - Sleep - Turbo - Gentle/Speed 1 - Speed 2 ) D03-04 and D03-05 = light? ( ON = 100 - OFF = 0 ) D05-13 = ( Filter Cleaning = Number of hours )

kongo09 commented 2 years ago

Here is the data from my two devices. It might give you an idea of what the fields could mean:

{
  "name": "Kinderzimmer",
  "type": "AC2889",
  "modelid": "AC2889/10",
  "swversion": "1.0.7",
  "range": "Comfort",
  "Runtime": 167723,
  "rssi": -48,
  "wifilog": false,
  "free_memory": 59392,
  "WifiVersion": "AWS_Philips_AIR@69.1",
  "ProductId": "be101cb2e6241138a1e30613a292b720",
  "DeviceId": "82fc3e4a832811ea9d3776e8b52303c3",
  "StatusType": "status",
  "ConnectType": "Online",
  "om": "s",
  "pwr": "1",
  "cl": false,
  "aqil": 100,
  "uil": "1",
  "dt": 0,
  "dtrs": 0,
  "mode": "P",
  "pm25": 4,
  "iaql": 1,
  "aqit": 4,
  "aqit_ext": 0,
  "ddp": "0",
  "err": 193,
  "fltt1": "A3",
  "fltt2": "C7",
  "fltsts0": 0,
  "fltsts1": 2526,
  "fltsts2": 126
}

and

{
  "name": "Schlafzimmer",
  "type": "AC2729",
  "modelid": "AC2729/10",
  "swversion": "0.2.1",
  "range": "MicroMario",
  "Runtime": 304767,
  "rssi": -72,
  "wifilog": false,
  "free_memory": 59472,
  "WifiVersion": "AWS_Philips_AIR@69.1",
  "ProductId": "85bce6fae5261178a1ea0613b292c720",
  "DeviceId": "3c84c6c3123a11ebb1ae5e35c4d0371a",
  "StatusType": "status",
  "ConnectType": "Online",
  "om": "0",
  "pwr": "0",
  "cl": false,
  "aqil": 100,
  "uil": "1",
  "dt": 0,
  "dtrs": 0,
  "mode": "P",
  "func": "P",
  "rhset": 40,
  "rh": 46,
  "temp": 26,
  "pm25": 1,
  "iaql": 1,
  "aqit": 4,
  "aqit_ext": 0,
  "ddp": "1",
  "rddp": "1",
  "err": 49411,
  "wl": 0,
  "fltt1": "A3",
  "fltt2": "C7",
  "fltsts0": 0,
  "fltsts1": 1499,
  "fltsts2": 1499,
  "wicksts": 1499
}
kongo09 commented 2 years ago

I found the description of the functions:

image
kongo09 commented 2 years ago
Field Value Mapping Comment
"D01-02" "Purifier product" ?
"D01-03" "CALIDAD AIRE" "name"
"D01-04" "Nala" ?
"D01-05" "AC1715/11" "modelid"
"D01-07" "English" "language"
"D01-08" 2 ?
"D01-09" 1 ?
"D01-10" 0 ?
"D01-11" 0 ?
"D01-20" "0.0.1" ?
"D01-21" "0.6.0" "swversion" firmware version
"MCUBoot" true ?
"Runtime" 50500174 "Runtime"
"rssi" -65 "rssi"
"wifilog" false "wifilog"
"free_memory" 57544 "free_memory"
"WifiVersion" "AWS_Philips_AIR@69.1" "WifiVersion"
"ProductId" "32d3e652179d11ec99f70217247a73aa" "ProductId"
"DeviceId" "29378ecee0f011ec9c95960e905418ad" "DeviceId"
"StatusType" "status" "StatusType"
"ConnectType" "Online" "ConnectType"
"D03-02" "ON" "pwr"
"D03-03" false ? could be child lock "cl", which is not a feature of this device
"D03-04" 100 "aqil" assumption
"D03-05" 100 "uil" assumption
"D03-11" "A"
"D03-12" "Turbo" "mode" mode, can be "Auto General", "Turbo", "Sleep", "Gentle/Speed 1", "Speed 2"
"D03-13" "t" "om" current speed, can be "s" for sleep, "t" for turbo, "1" for speed 1, "2" for speed 2
"D03-32" 1 "iaql" allergen index
"D03-33" 1 "pm25" pm2.5
"D03-42" "IAI" "ddp" can be "IAI" or "PM2.5" - seems to work in tandem with D03-43
"D03-43" "IAI" "ddp" can be "IAI" or "PM2.5" - seems to work in tandem with D03-43
"D03-44" 7 notification threshold, can be "1" for Good, "4" for Fair, "7" for Poor, "10" for Very Poor
"aqit_ext" 0 "aqit_ext"
"D03-64" 0 ? potentially "err" -> check when the filter is due for cleaning
"D05-02" "A3" "fltt1"
"D05-03" "none" "fltt2" assumption, might not exist with this model
"D05-07" 720 "fltotal0" pre-filter clean interval (hours) for "fltsts0"
"D05-08" 4800 "fltotal1" nanoprotect filter replace interval (hours) for "fltsts1"
"D05-09" 0 "fltotal2" potentially maximum hours for "fltsts2", might not exist with this model
"D05-13" 591 "fltsts0" remaining hours for pre-filter
"D05-14" 4671 "fltsts1" remaining hours for nanoprotect filter
"D05-15" 0 "fltsts2" assumption, might not exist with this model
kongo09 commented 2 years ago

I'll complete the table above as you figure out the fields. Can you please:

Jaguaza commented 2 years ago

@kongo09

I'll complete the table above as you figure out the fields. Can you please:

  • check if D03-11, D03-12 and D03-13 all three change, when you change the mode, and give me the exact values for each of these three fields when you cycle from Auto -> Sleep -> Speed 1 -> Speed 2 -> Turb

"D03-11": "A", "D03-12": "Auto General", "D03-13": "1", "D03-11": "A", "D03-12": "Sleep", "D03-13": "s", "D03-11": "A", "D03-12": "Turbo", "D03-13": "s", "D03-11": "A", "D03-12": "Gentle/Speed 1", "D03-13": "t", "D03-11": "A", "D03-12": "Speed 2", "D03-13": "1",

  • check if D03-42 and D03-43 both change when you change your preferred index - and if D03-44 always stays 7

D03-42 and D03-43 YES. "D03-42": "IAI", "D03-43": "IAI", "D03-42": "PM2.5", "D03-43": "PM2.5",

D03-44 always stays 7 = NO "D03-42": "IAI", "D03-43": "IAI", "D03-44": 4 "D03-42": "PM2.5", "D03-43": "PM2.5", "D03-44": 4,

  • check if D01-04 is the name that you have chosen for your device

No the name is: "D01-03": "CALIDAD AIRE",

kongo09 commented 2 years ago

Thanks, we're getting somewhere!

I'm not really sure what the D03-44 means. It used to be 7 in our first example, now it is 4. What is different?

I'm also not clear about the speed settings. D03-13 seems to be "1" for both, auto and speed 2. Also, you say it is "s" for Sleep, but also for Turbo. In your last example, it was "t" for Turbo, but now you say that's for speed 1. Can you please double check this? Maybe some other values also change, when you change speed? The other models typically change two values.

alucryd commented 1 year ago

Just ordered one of these. Will be happy to help finish adding support for it when I get my hands on it!

kongo09 commented 1 year ago

Great

Jaguaza commented 1 year ago

Just ordered one of these. Will be happy to help finish adding support for it when I get my hands on it!

Thank you, I've had a busy few months, I promise to get involved with you to see if between the two of us we can get it out.

I have the notice of dirty filter and do not clean it to see when I have time and see the difference with the dirty one and with him clean.

Sorry @kongo09 for the abandonment.

alucryd commented 1 year ago

Arrived today, I turned all the knobs I could find, this mostly confirms what has been found already.

Figured out what D03-44 means, it's the air quality above which the app will send a notification (if going from fair to good for example).

Also there were some errors with @Jaguaza D03-13 values, added the correct values. It represents the current fan speed, sleep, turbo, speed 1 and speed 2 are s, t, 1 and 2 respectively, and I assume auto can vary between 1 and 2 (although I haven't observed it yet).

Everything I haven't annotated is either explicit or stayed constant throughout my testing. Note that there are indeed 2 duplicated codes, for the light brightness and preferred index.

{
  "D01-02": "Purifier product",
  "D01-03": "AC1715", // device name
  "D01-04": "Nala",
  "D01-05": "AC1715/11",
  "D01-07": "English",
  "D01-08": 2,
  "D01-09": 1,
  "D01-10": 0,
  "D01-11": 0,
  "D01-20": "0.0.1",
  "D01-21": "0.6.0", // device firmware version
  "MCUBoot": true,
  "Runtime": 8504325, 
  "rssi": -32,
  "otacheck": false,
  "wifilog": false,
  "free_memory": 47256,
  "WifiVersion": "AWS_Philips_AIR@71.3", // wifi firmware version
  "ProductId": "32d3e652179d11ec99f70217247a73aa",
  "DeviceId": "fe6e3b0f5ac211eda11acb4324b94c65",
  "StatusType": "status",
  "ConnectType": "Online",
  "D03-02": "ON", // power
  "D03-03": false,
  "D03-04": 0, // light brightness (%)
  "D03-05": 0, // light brightness (%)
  "D03-11": "A",
  "D03-12": "Auto General", // mode (Auto General, Turbo, Sleep, Gentle/Speed 1, Speed 2)
  "D03-13": "1", // current speed (s - sleep, t - turbo, 1 - speed 1, 2 - speed 2)
  "D03-32": 1, // allergens
  "D03-33": 4, // pm2.5
  "D03-42": "PM2.5", // preferred index
  "D03-43": "PM2.5", // preferred index
  "D03-44": 4, // notification threshold ( 1 - Good, 4 - Fair, 7 - Poor, 10 - Very Poor)
  "aqit_ext": 0,
  "D03-64": 0,
  "D05-02": "A3",
  "D05-03": "none",
  "D05-07": 720, // pre-filter clean interval (hours)
  "D05-08": 4800, // nanoprotect filer replace interval (hours)
  "D05-09": 0,
  "D05-13": 715, // remaining time before pre-filter clean (hours)
  "D05-14": 4795, // remaining time before nanoprotect filter replace (hours)
  "D05-15": 0
}
kongo09 commented 1 year ago

Thanks, this is great. I've put your findings into the table above. Next step is to find some time and try to get it into the code.

kongo09 commented 1 year ago

I'm currently trying to fix AC1214 and AC4558 so apologies if this takes a bit longer here. I guess, to make it really work, quite a bit of refactoring is needed due to the new way of naming things.

Anyhow, before I try to do that, I'd like to see if it works in principle. I've just done a little beta that should allow you to switch the device on and off, not more. Let's get that one working first: v0.11.0-beta1715.1

Can you please provide feedback?

Jaguaza commented 1 year ago

I'm currently trying to fix AC1214 and AC4558 so apologies if this takes a bit longer here. I guess, to make it really work, quite a bit of refactoring is needed due to the new way of naming things.

Anyhow, before I try to do that, I'd like to see if it works in principle. I've just done a little beta that should allow you to switch the device on and off, not more. Let's get that one working first: v0.11.0-beta1715.1

Can you please provide feedback?

It does not connect to my device.

Captura de pantalla 2022-11-30 185733

kongo09 commented 1 year ago

Can you please share the logfile?

alucryd commented 1 year ago

Same here, here's the log:

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
    resp = await request_handler(request)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 222, 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 82, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 136, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 180, in post
    return await super().post(request, flow_id)
  File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 73, 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 280, in async_configure
    result = await self._async_handle_step(
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 367, in _async_handle_step
    result: FlowResult = await getattr(flow, method)(user_input)
  File "/config/custom_components/philips_airpurifier_coap/config_flow.py", line 198, in async_step_user
    self._model = status['type']
KeyError: 'type'
kongo09 commented 1 year ago

Ah, that's very helpful, thanks!

In that part of the code I have a few things hardwired that work with the other models but not this one. The field type doesn't exist here, only the field modelid which is called D01-05.

Please try the new beta v0.11.0-beta1715.2 with logs enabled. Again, the only functionality should be a switch for on/off.

alucryd commented 1 year ago

The new beta connects! However it does not detect the unit as being on, when I toggle it on in hass I can hear the jingle as if I would turn it on, but the toggle immediately goes to off so I can't turn it off. Still, that's a good start, thx!

kongo09 commented 1 year ago

Great. Can you please share the logs after enabling debug logging?

And can you also tell me: does it switch on but doesn't detect it to be on, or does it not switch on but only beeps?

alucryd commented 1 year ago

It does turn on if it is off. Here's the debug log, grepped on 'coap':

2022-12-01 09:53:43.467 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.config_flow] async_step_dhcp: called, found: DhcpServiceInfo(ip='192.168.2.21', hostname='phillips-ac1715', macaddress='0478637f1d0a')
2022-12-01 09:53:43.467 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.config_flow] trying to configure host: 192.168.2.21
2022-12-01 09:53:43.471 DEBUG (MainThread) [aioairctrl.coap.client] syncing
2022-12-01 09:53:43.475 DEBUG (MainThread) [coap] Sending request - Token: 4afe, Remote: <UDP6EndpointAddress 192.168.2.21>
2022-12-01 09:53:43.476 DEBUG (MainThread) [coap] Sending message <aiocoap.Message at 0x7f711878b0: Type.NON POST (MID 19463, token 4afe) remote <UDP6EndpointAddress 192.168.2.21>, 1 option(s), 8 byte(s) payload>
2022-12-01 09:53:43.521 DEBUG (MainThread) [coap] Incoming message <aiocoap.Message at 0x7f71187b80: Type.NON 2.05 Content (MID 19463, token 4afe) remote <UDP6EndpointAddress 192.168.2.21 (locally 192.168.2.13%eth0)>, 1 option(s), 8 byte(s) payload>
2022-12-01 09:53:43.523 DEBUG (MainThread) [coap] Received Response: <aiocoap.Message at 0x7f71187b80: Type.NON 2.05 Content (MID 19463, token 4afe) remote <UDP6EndpointAddress 192.168.2.21 (locally 192.168.2.13%eth0)>, 1 option(s), 8 byte(s) payload>
2022-12-01 09:53:43.524 DEBUG (MainThread) [coap] Response <aiocoap.Message at 0x7f71187b80: Type.NON 2.05 Content (MID 19463, token 4afe) remote <UDP6EndpointAddress 192.168.2.21 (locally 192.168.2.13%eth0)>, 1 option(s), 8 byte(s) payload> matched to request <PlumbingRequest at 0x7f711b44f0 around <aiocoap.Message at 0x7f711878b0: Type.NON POST (MID 19463, token 4afe) remote <UDP6EndpointAddress 192.168.2.21>, 1 option(s), 8 byte(s) payload> with 2 callbacks>
2022-12-01 09:53:43.525 DEBUG (MainThread) [aioairctrl.coap.client] synced: 54CA0B87
2022-12-01 09:53:43.526 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.config_flow] got a valid client for host 192.168.2.21
2022-12-01 09:53:43.526 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.config_flow] trying to get status
2022-12-01 09:53:43.526 DEBUG (MainThread) [aioairctrl.coap.client] retrieving status
2022-12-01 09:53:43.530 DEBUG (MainThread) [coap] Sending request - Token: 4aff, Remote: <UDP6EndpointAddress 192.168.2.21>
2022-12-01 09:53:43.531 DEBUG (MainThread) [coap] Sending message <aiocoap.Message at 0x7f71187c10: Type.NON GET (MID 19464, token 4aff) remote <UDP6EndpointAddress 192.168.2.21>, 2 option(s)>
2022-12-01 09:53:56.555 DEBUG (MainThread) [aioairctrl.coap.client] REQUEST: {"state": {"desired": {"CommandType": "app", "DeviceId": "", "EnduserId": "", "D03-02": "ON"}}}
2022-12-01 09:53:56.566 DEBUG (MainThread) [coap] Sending request - Token: daae, Remote: <UDP6EndpointAddress 192.168.2.21>
2022-12-01 09:53:56.567 DEBUG (MainThread) [coap] Sending message <aiocoap.Message at 0x7f711b50c0: Type.NON POST (MID 36964, token daae) remote <UDP6EndpointAddress 192.168.2.21>, 1 option(s), 264 byte(s) payload>
2022-12-01 09:53:56.573 DEBUG (MainThread) [coap] Incoming message <aiocoap.Message at 0x7f7bf1b8e0: Type.NON 2.05 Content (MID 36964, token daae) remote <UDP6EndpointAddress 192.168.2.21 (locally 192.168.2.13%eth0)>, 1 option(s), 19 byte(s) payload>
2022-12-01 09:53:56.573 DEBUG (MainThread) [coap] Received Response: <aiocoap.Message at 0x7f7bf1b8e0: Type.NON 2.05 Content (MID 36964, token daae) remote <UDP6EndpointAddress 192.168.2.21 (locally 192.168.2.13%eth0)>, 1 option(s), 19 byte(s) payload>
2022-12-01 09:53:56.574 DEBUG (MainThread) [coap] Response <aiocoap.Message at 0x7f7bf1b8e0: Type.NON 2.05 Content (MID 36964, token daae) remote <UDP6EndpointAddress 192.168.2.21 (locally 192.168.2.13%eth0)>, 1 option(s), 19 byte(s) payload> matched to request <PlumbingRequest at 0x7f711b6da0 around <aiocoap.Message at 0x7f711b50c0: Type.NON POST (MID 36964, token daae) remote <UDP6EndpointAddress 192.168.2.21>, 1 option(s), 264 byte(s) payload> with 2 callbacks>
2022-12-01 09:53:56.575 DEBUG (MainThread) [aioairctrl.coap.client] RESPONSE: b'{"status":"failed"}'
2022-12-01 09:53:56.587 DEBUG (MainThread) [aioairctrl.coap.client] set_control_value failed. resyncing...
2022-12-01 09:53:56.587 DEBUG (MainThread) [aioairctrl.coap.client] syncing
2022-12-01 09:53:56.590 DEBUG (MainThread) [coap] Sending request - Token: daaf, Remote: <UDP6EndpointAddress 192.168.2.21>
2022-12-01 09:53:56.590 DEBUG (MainThread) [coap] Sending message <aiocoap.Message at 0x7f7c23b4f0: Type.NON POST (MID 36965, token daaf) remote <UDP6EndpointAddress 192.168.2.21>, 1 option(s), 8 byte(s) payload>
2022-12-01 09:53:56.596 DEBUG (MainThread) [coap] Incoming message <aiocoap.Message at 0x7f7aa7fb20: Type.NON 2.05 Content (MID 36965, token daaf) remote <UDP6EndpointAddress 192.168.2.21 (locally 192.168.2.13%eth0)>, 1 option(s), 8 byte(s) payload>
2022-12-01 09:53:56.596 DEBUG (MainThread) [coap] Received Response: <aiocoap.Message at 0x7f7aa7fb20: Type.NON 2.05 Content (MID 36965, token daaf) remote <UDP6EndpointAddress 192.168.2.21 (locally 192.168.2.13%eth0)>, 1 option(s), 8 byte(s) payload>
2022-12-01 09:53:56.597 DEBUG (MainThread) [coap] Response <aiocoap.Message at 0x7f7aa7fb20: Type.NON 2.05 Content (MID 36965, token daaf) remote <UDP6EndpointAddress 192.168.2.21 (locally 192.168.2.13%eth0)>, 1 option(s), 8 byte(s) payload> matched to request <PlumbingRequest at 0x7f7a79f3a0 around <aiocoap.Message at 0x7f7c23b4f0: Type.NON POST (MID 36965, token daaf) remote <UDP6EndpointAddress 192.168.2.21>, 1 option(s), 8 byte(s) payload> with 2 callbacks>
2022-12-01 09:53:56.598 DEBUG (MainThread) [aioairctrl.coap.client] synced: 1E1608DB
2022-12-01 09:53:56.598 DEBUG (MainThread) [aioairctrl.coap.client] set_control_value failed. retrying...
2022-12-01 09:53:56.598 DEBUG (MainThread) [aioairctrl.coap.client] REQUEST: {"state": {"desired": {"CommandType": "app", "DeviceId": "", "EnduserId": "", "D03-02": "ON"}}}
2022-12-01 09:53:56.601 DEBUG (MainThread) [coap] Sending request - Token: dab0, Remote: <UDP6EndpointAddress 192.168.2.21>
2022-12-01 09:53:56.602 DEBUG (MainThread) [coap] Sending message <aiocoap.Message at 0x7f7a79ead0: Type.NON POST (MID 36966, token dab0) remote <UDP6EndpointAddress 192.168.2.21>, 1 option(s), 264 byte(s) payload>
2022-12-01 09:53:56.610 DEBUG (MainThread) [coap] Incoming message <aiocoap.Message at 0x7f7a79f460: Type.NON 2.05 Content (MID 36966, token dab0) remote <UDP6EndpointAddress 192.168.2.21 (locally 192.168.2.13%eth0)>, 1 option(s), 20 byte(s) payload>
2022-12-01 09:53:56.610 DEBUG (MainThread) [coap] Received Response: <aiocoap.Message at 0x7f7a79f460: Type.NON 2.05 Content (MID 36966, token dab0) remote <UDP6EndpointAddress 192.168.2.21 (locally 192.168.2.13%eth0)>, 1 option(s), 20 byte(s) payload>
2022-12-01 09:53:56.611 DEBUG (MainThread) [coap] Response <aiocoap.Message at 0x7f7a79f460: Type.NON 2.05 Content (MID 36966, token dab0) remote <UDP6EndpointAddress 192.168.2.21 (locally 192.168.2.13%eth0)>, 1 option(s), 20 byte(s) payload> matched to request <PlumbingRequest at 0x7f7c5112d0 around <aiocoap.Message at 0x7f7a79ead0: Type.NON POST (MID 36966, token dab0) remote <UDP6EndpointAddress 192.168.2.21>, 1 option(s), 264 byte(s) payload> with 2 callbacks>
2022-12-01 09:53:56.612 DEBUG (MainThread) [aioairctrl.coap.client] RESPONSE: b'{"status":"success"}'
2022-12-01 09:53:56.688 DEBUG (MainThread) [coap] Incoming message <aiocoap.Message at 0x7f9145ee00: Type.NON 2.05 Content (MID 2852, token 4aff) remote <UDP6EndpointAddress 192.168.2.21 (locally 192.168.2.13%eth0)>, 3 option(s), 1672 byte(s) payload>
2022-12-01 09:53:56.689 DEBUG (MainThread) [coap] Received Response: <aiocoap.Message at 0x7f9145ee00: Type.NON 2.05 Content (MID 2852, token 4aff) remote <UDP6EndpointAddress 192.168.2.21 (locally 192.168.2.13%eth0)>, 3 option(s), 1672 byte(s) payload>
2022-12-01 09:53:56.690 DEBUG (MainThread) [coap] Response <aiocoap.Message at 0x7f9145ee00: Type.NON 2.05 Content (MID 2852, token 4aff) remote <UDP6EndpointAddress 192.168.2.21 (locally 192.168.2.13%eth0)>, 3 option(s), 1672 byte(s) payload> matched to request <PlumbingRequest at 0x7f71187dc0 around <aiocoap.Message at 0x7f71187c10: Type.NON GET (MID 19464, token 4aff) remote <UDP6EndpointAddress 192.168.2.21>, 2 option(s)> with 2 callbacks>
2022-12-01 09:53:56.694 DEBUG (MainThread) [aioairctrl.coap.client] status: {"state":{"reported":{"D01-02":"Purifier product","D01-03":"AC1715","D01-04":"Nala","D01-05":"AC1715/11","D01-07":"English","D01-08":2,"D01-09":1,"D01-10":0,"D01-11":0,"D01-20":"0.0.1","D01-21":"0.6.0","MCUBoot":true,"Runtime":99283807,"rssi":-30,"otacheck":false,"wifilog":false,"free_memory":52232,"WifiVersion":"AWS_Philips_AIR@73.1","ProductId":"32d3e652179d11ec99f70217247a73aa","DeviceId":"fe6e3b0f5ac211eda11acb4324b94c65","StatusType":"control","ConnectType":"Online","D03-02":"ON","D03-03":false,"D03-04":100,"D03-05":100,"D03-11":"A","D03-12":"Auto General","D03-13":"0","D03-32":2,"D03-33":7,"D03-42":"PM2.5","D03-43":"PM2.5","D03-44":4,"aqit_ext":0,"D03-64":0,"D05-02":"A3","D05-03":"none","D05-07":720,"D05-08":4800,"D05-09":0,"D05-13":47,"D05-14":4127,"D05-15":0},"desired":null}}
2022-12-01 09:53:56.695 DEBUG (MainThread) [aioairctrl.coap.client] max age = 60
2022-12-01 09:53:56.695 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.config_flow] got status
2022-12-01 09:53:56.696 DEBUG (MainThread) [coap] Shutting down context
2022-12-01 09:53:56.703 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.config_flow] status for host 192.168.2.21 is: {'D01-02': 'Purifier product', 'D01-03': 'AC1715', 'D01-04': 'Nala', 'D01-05': 'AC1715/11', 'D01-07': 'English', 'D01-08': 2, 'D01-09': 1, 'D01-10': 0, 'D01-11': 0, 'D01-20': '0.0.1', 'D01-21': '0.6.0', 'MCUBoot': True, 'Runtime': 99283807, 'rssi': -30, 'otacheck': False, 'wifilog': False, 'free_memory': 52232, 'WifiVersion': 'AWS_Philips_AIR@73.1', 'ProductId': '32d3e652179d11ec99f70217247a73aa', 'DeviceId': 'fe6e3b0f5ac211eda11acb4324b94c65', 'StatusType': 'control', 'ConnectType': 'Online', 'D03-02': 'ON', 'D03-03': False, 'D03-04': 100, 'D03-05': 100, 'D03-11': 'A', 'D03-12': 'Auto General', 'D03-13': '0', 'D03-32': 2, 'D03-33': 7, 'D03-42': 'PM2.5', 'D03-43': 'PM2.5', 'D03-44': 4, 'aqit_ext': 0, 'D03-64': 0, 'D05-02': 'A3', 'D05-03': 'none', 'D05-07': 720, 'D05-08': 4800, 'D05-09': 0, 'D05-13': 47, 'D05-14': 4127, 'D05-15': 0}
2022-12-01 09:53:56.703 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.config_flow] Detected host 192.168.2.21 as model AC1715 with name: AC1715
2022-12-01 09:53:56.703 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.config_flow] async_step_user: unique_id=fe6e3b0f5ac211eda11acb4324b94c65
Jaguaza commented 1 year ago

Mine doesn't connect. 😕

image

Logger: custom_components.philips_airpurifier_coap.config_flow Source: custom_components/philips_airpurifier_coap/config_flow.py:190 Integration: Philips AirPurifier (with CoAP) (documentation, issues) First occurred: 05:47:06 (3 occurrences) Last logged: 10:18:21

Timeout, host 192.168.200.102 doesn't answer, aborting

kongo09 commented 1 year ago

Thanks. The interesting bit in the logs is custom_components.philips_airpurifier_coap

If the device doesn't connect, this might be down to the Philips connectivity bug. Power cycle your device and try again.

Jaguaza commented 1 year ago

Tonight when I get home I'll turn it off and on again.

Then I'll comment.

kongo09 commented 1 year ago

Thanks for all your help - it seems we're making progress.

Please try the new beta v0.11.0-beta1715.3 which should allow you to switch the device on and off, see its status, see its attributes and control its lights.

The lights are a bit a shot in the dark. There are two fields for lights in the data. I've now set both to be dimmable light switches. Please let me know what happens when you use them and if that makes any sense.

Next will probably be sensors, as they are display only without controlling anything. Unfortunately, that requires a bit of rework of the internal code.

Jaguaza commented 1 year ago

Thanks for all your help - it seems we're making progress.

Please try the new beta v0.11.0-beta1715.3 which should allow you to switch the device on and off, see its status, see its attributes and control its lights.

The lights are a bit a shot in the dark. There are two fields for lights in the data. I've now set both to be dimmable light switches. Please let me know what happens when you use them and if that makes any sense.

Next will probably be sensors, as they are display only without controlling anything. Unfortunately, that requires a bit of rework of the internal code.

I was finally able to connect my purifier to HA.

The on-off button doesn't show real status, when you turn it off, the shutdown is correct but it shows the on status.

The display backlight I don't know what it does, I don't see any changes in the device.

And all the light brightness does not perform any function. It only turns the screen on and off like display backlight 2 does.

I hope this is helpful.

Captura de pantalla_20221202_101159

kongo09 commented 1 year ago

The on-off button doesn't show real status, when you turn it off, the shutdown is correct but it shows the on status.

Ok, but it turns off, so that's already progress. Can you share the debug log from the moment of turning it off so that I can see how the status messages change?

kongo09 commented 1 year ago

And all the light brightness does not perform any function.

I must have made a mistake, there should only be two light switches. I'll take a look. What are the options the Philips app offers you in terms of light setting?

alucryd commented 1 year ago

The philips app only has one on/off button for the backlight.

I can also only turn the device off and not back on, the switch goes back to on despite the device being off. For me the top display backlight switch does nothing, the bottom one turns it on, but not off, it reverts to off instantly despite the light being on. Same for the 2 light brightness switches, one of them is disabled, and the other one has the same behavior as the bottom backlight button.

image

2022-12-02 14:48:37.449 DEBUG (MainThread) [custom_components.hacs] <Integration kongo09/philips-airpurifier-coap> Running checks against v0.11.0-beta1715.3
2022-12-02 14:48:50.841 DEBUG (MainThread) [homeassistant.components.dhcp] Matched {'macaddress': '0478637f1d0a', 'hostname': 'phillips-ac1715'} against {'domain': 'philips_airpurifier_coap', 'macaddress': '047863*'}
2022-12-02 14:48:50.854 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.config_flow] async_step_dhcp: called, found: DhcpServiceInfo(ip='192.168.2.21', hostname='phillips-ac1715', macaddress='0478637f1d0a')
2022-12-02 14:48:50.854 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.config_flow] trying to configure host: 192.168.2.21
2022-12-02 14:48:50.860 DEBUG (MainThread) [aioairctrl.coap.client] syncing
2022-12-02 14:48:50.863 DEBUG (MainThread) [coap] Sending request - Token: 1198, Remote: <UDP6EndpointAddress 192.168.2.21>
2022-12-02 14:48:50.864 DEBUG (MainThread) [coap] Sending message <aiocoap.Message at 0x7f5e6331f0: Type.NON POST (MID 53387, token 1198) remote <UDP6EndpointAddress 192.168.2.21>, 1 option(s), 8 byte(s) payload>
2022-12-02 14:48:50.875 DEBUG (MainThread) [coap] Incoming message <aiocoap.Message at 0x7f5e633850: Type.NON 2.05 Content (MID 53387, token 1198) remote <UDP6EndpointAddress 192.168.2.21 (locally 192.168.2.13%eth0)>, 1 option(s), 8 byte(s) payload>
2022-12-02 14:48:50.876 DEBUG (MainThread) [coap] Received Response: <aiocoap.Message at 0x7f5e633850: Type.NON 2.05 Content (MID 53387, token 1198) remote <UDP6EndpointAddress 192.168.2.21 (locally 192.168.2.13%eth0)>, 1 option(s), 8 byte(s) payload>
2022-12-02 14:48:50.876 DEBUG (MainThread) [coap] Response <aiocoap.Message at 0x7f5e633850: Type.NON 2.05 Content (MID 53387, token 1198) remote <UDP6EndpointAddress 192.168.2.21 (locally 192.168.2.13%eth0)>, 1 option(s), 8 byte(s) payload> matched to request <PlumbingRequest at 0x7f5e5a4430 around <aiocoap.Message at 0x7f5e6331f0: Type.NON POST (MID 53387, token 1198) remote <UDP6EndpointAddress 192.168.2.21>, 1 option(s), 8 byte(s) payload> with 2 callbacks>
2022-12-02 14:48:50.877 DEBUG (MainThread) [aioairctrl.coap.client] synced: 2D1B97FB
2022-12-02 14:48:50.877 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.config_flow] got a valid client for host 192.168.2.21
2022-12-02 14:48:50.878 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.config_flow] trying to get status
2022-12-02 14:48:50.878 DEBUG (MainThread) [aioairctrl.coap.client] retrieving status
2022-12-02 14:48:50.881 DEBUG (MainThread) [coap] Sending request - Token: 1199, Remote: <UDP6EndpointAddress 192.168.2.21>
2022-12-02 14:48:50.881 DEBUG (MainThread) [coap] Sending message <aiocoap.Message at 0x7f6d888be0: Type.NON GET (MID 53388, token 1199) remote <UDP6EndpointAddress 192.168.2.21>, 2 option(s)>
2022-12-02 14:49:00.396 DEBUG (MainThread) [coap] Incoming message <aiocoap.Message at 0x7f7491f250: Type.NON 2.05 Content (MID 3338, token 1199) remote <UDP6EndpointAddress 192.168.2.21 (locally 192.168.2.13%eth0)>, 3 option(s), 1672 byte(s) payload>
2022-12-02 14:49:00.397 DEBUG (MainThread) [coap] Received Response: <aiocoap.Message at 0x7f7491f250: Type.NON 2.05 Content (MID 3338, token 1199) remote <UDP6EndpointAddress 192.168.2.21 (locally 192.168.2.13%eth0)>, 3 option(s), 1672 byte(s) payload>
2022-12-02 14:49:00.398 DEBUG (MainThread) [coap] Response <aiocoap.Message at 0x7f7491f250: Type.NON 2.05 Content (MID 3338, token 1199) remote <UDP6EndpointAddress 192.168.2.21 (locally 192.168.2.13%eth0)>, 3 option(s), 1672 byte(s) payload> matched to request <PlumbingRequest at 0x7f5e633040 around <aiocoap.Message at 0x7f6d888be0: Type.NON GET (MID 53388, token 1199) remote <UDP6EndpointAddress 192.168.2.21>, 2 option(s)> with 2 callbacks>
2022-12-02 14:49:00.403 DEBUG (MainThread) [aioairctrl.coap.client] status: {"state":{"reported":{"D01-02":"Purifier product","D01-03":"AC1715","D01-04":"Nala","D01-05":"AC1715/11","D01-07":"English","D01-08":2,"D01-09":1,"D01-10":0,"D01-11":0,"D01-20":"0.0.1","D01-21":"0.6.0","MCUBoot":true,"Runtime":37517373,"rssi":-28,"otacheck":false,"wifilog":false,"free_memory":49184,"WifiVersion":"AWS_Philips_AIR@73.1","ProductId":"32d3e652179d11ec99f70217247a73aa","DeviceId":"fe6e3b0f5ac211eda11acb4324b94c65","StatusType":"status","ConnectType":"Online","D03-02":"ON","D03-03":false,"D03-04":0,"D03-05":0,"D03-11":"A","D03-12":"Auto General","D03-13":"1","D03-32":2,"D03-33":6,"D03-42":"PM2.5","D03-43":"PM2.5","D03-44":4,"aqit_ext":0,"D03-64":0,"D05-02":"A3","D05-03":"none","D05-07":720,"D05-08":4800,"D05-09":0,"D05-13":18,"D05-14":4098,"D05-15":0},"desired":null}}
2022-12-02 14:49:00.404 DEBUG (MainThread) [aioairctrl.coap.client] max age = 60
2022-12-02 14:49:00.404 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.config_flow] got status
2022-12-02 14:49:00.404 DEBUG (MainThread) [coap] Shutting down context
2022-12-02 14:49:00.410 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.config_flow] status for host 192.168.2.21 is: {'D01-02': 'Purifier product', 'D01-03': 'AC1715', 'D01-04': 'Nala', 'D01-05': 'AC1715/11', 'D01-07': 'English', 'D01-08': 2, 'D01-09': 1, 'D01-10': 0, 'D01-11': 0, 'D01-20': '0.0.1', 'D01-21': '0.6.0', 'MCUBoot': True, 'Runtime': 37517373, 'rssi': -28, 'otacheck': False, 'wifilog': False, 'free_memory': 49184, 'WifiVersion': 'AWS_Philips_AIR@73.1', 'ProductId': '32d3e652179d11ec99f70217247a73aa', 'DeviceId': 'fe6e3b0f5ac211eda11acb4324b94c65', 'StatusType': 'status', 'ConnectType': 'Online', 'D03-02': 'ON', 'D03-03': False, 'D03-04': 0, 'D03-05': 0, 'D03-11': 'A', 'D03-12': 'Auto General', 'D03-13': '1', 'D03-32': 2, 'D03-33': 6, 'D03-42': 'PM2.5', 'D03-43': 'PM2.5', 'D03-44': 4, 'aqit_ext': 0, 'D03-64': 0, 'D05-02': 'A3', 'D05-03': 'none', 'D05-07': 720, 'D05-08': 4800, 'D05-09': 0, 'D05-13': 18, 'D05-14': 4098, 'D05-15': 0}
2022-12-02 14:49:00.410 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.config_flow] Detected host 192.168.2.21 as model AC1715 with name: AC1715
2022-12-02 14:49:00.410 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.config_flow] async_step_user: unique_id=fe6e3b0f5ac211eda11acb4324b94c65
2022-12-02 14:51:26.633 INFO (MainThread) [custom_components.philips_airpurifier_coap.timer] Calling timeout callback...
2022-12-02 14:51:26.634 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] reconnect: called for host 192.168.2.21
2022-12-02 14:51:26.634 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] reconnect: creating new reconnect task for host 192.168.2.21
2022-12-02 14:51:26.635 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Timeout callback finished!
2022-12-02 14:51:26.635 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s.
2022-12-02 14:51:26.635 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] Reconnecting...
2022-12-02 14:51:26.636 DEBUG (MainThread) [coap] Shutting down context
2022-12-02 14:51:26.648 DEBUG (MainThread) [aioairctrl.coap.client] syncing
2022-12-02 14:51:26.652 DEBUG (MainThread) [coap] Sending request - Token: 7478, Remote: <UDP6EndpointAddress 192.168.2.21>
2022-12-02 14:51:26.652 DEBUG (MainThread) [coap] Sending message <aiocoap.Message at 0x7f6e2e8a30: Type.NON POST (MID 47263, token 7478) remote <UDP6EndpointAddress 192.168.2.21>, 1 option(s), 8 byte(s) payload>
2022-12-02 14:51:26.659 DEBUG (MainThread) [coap] Incoming message <aiocoap.Message at 0x7f6f1a8a90: Type.NON 2.05 Content (MID 47263, token 7478) remote <UDP6EndpointAddress 192.168.2.21 (locally 192.168.2.13%eth0)>, 1 option(s), 8 byte(s) payload>
2022-12-02 14:51:26.660 DEBUG (MainThread) [coap] Received Response: <aiocoap.Message at 0x7f6f1a8a90: Type.NON 2.05 Content (MID 47263, token 7478) remote <UDP6EndpointAddress 192.168.2.21 (locally 192.168.2.13%eth0)>, 1 option(s), 8 byte(s) payload>
2022-12-02 14:51:26.661 DEBUG (MainThread) [coap] Response <aiocoap.Message at 0x7f6f1a8a90: Type.NON 2.05 Content (MID 47263, token 7478) remote <UDP6EndpointAddress 192.168.2.21 (locally 192.168.2.13%eth0)>, 1 option(s), 8 byte(s) payload> matched to request <PlumbingRequest at 0x7f5d4ad0c0 around <aiocoap.Message at 0x7f6e2e8a30: Type.NON POST (MID 47263, token 7478) remote <UDP6EndpointAddress 192.168.2.21>, 1 option(s), 8 byte(s) payload> with 2 callbacks>
2022-12-02 14:51:26.662 DEBUG (MainThread) [aioairctrl.coap.client] synced: 60A6A9AC
2022-12-02 14:51:26.662 DEBUG (MainThread) [aioairctrl.coap.client] observing status
2022-12-02 14:51:26.663 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Timer cancelled: ('RESET',)
2022-12-02 14:51:26.663 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s.
2022-12-02 14:51:26.666 DEBUG (MainThread) [coap] Sending request - Token: 7479, Remote: <UDP6EndpointAddress 192.168.2.21>
2022-12-02 14:51:26.666 DEBUG (MainThread) [coap] Sending message <aiocoap.Message at 0x7f674763b0: Type.NON GET (MID 47264, token 7479) remote <UDP6EndpointAddress 192.168.2.21>, 2 option(s)>
2022-12-02 14:51:30.897 DEBUG (MainThread) [coap] Incoming message <aiocoap.Message at 0x7f5d4ae170: Type.NON 2.05 Content (MID 3356, token 7479) remote <UDP6EndpointAddress 192.168.2.21 (locally 192.168.2.13%eth0)>, 3 option(s), 1672 byte(s) payload>
2022-12-02 14:51:30.899 DEBUG (MainThread) [coap] Received Response: <aiocoap.Message at 0x7f5d4ae170: Type.NON 2.05 Content (MID 3356, token 7479) remote <UDP6EndpointAddress 192.168.2.21 (locally 192.168.2.13%eth0)>, 3 option(s), 1672 byte(s) payload>
2022-12-02 14:51:30.900 DEBUG (MainThread) [coap] Response <aiocoap.Message at 0x7f5d4ae170: Type.NON 2.05 Content (MID 3356, token 7479) remote <UDP6EndpointAddress 192.168.2.21 (locally 192.168.2.13%eth0)>, 3 option(s), 1672 byte(s) payload> matched to request <PlumbingRequest at 0x7f5d4ad120 around <aiocoap.Message at 0x7f674763b0: Type.NON GET (MID 47264, token 7479) remote <UDP6EndpointAddress 192.168.2.21>, 2 option(s)> with 2 callbacks>
2022-12-02 14:51:30.904 DEBUG (MainThread) [aioairctrl.coap.client] observation status: {"state":{"reported":{"D01-02":"Purifier product","D01-03":"AC1715","D01-04":"Nala","D01-05":"AC1715/11","D01-07":"English","D01-08":2,"D01-09":1,"D01-10":0,"D01-11":0,"D01-20":"0.0.1","D01-21":"0.6.0","MCUBoot":true,"Runtime":37671486,"rssi":-28,"otacheck":false,"wifilog":false,"free_memory":49184,"WifiVersion":"AWS_Philips_AIR@73.1","ProductId":"32d3e652179d11ec99f70217247a73aa","DeviceId":"fe6e3b0f5ac211eda11acb4324b94c65","StatusType":"status","ConnectType":"Online","D03-02":"ON","D03-03":false,"D03-04":0,"D03-05":0,"D03-11":"A","D03-12":"Auto General","D03-13":"1","D03-32":1,"D03-33":3,"D03-42":"PM2.5","D03-43":"PM2.5","D03-44":4,"aqit_ext":0,"D03-64":0,"D05-02":"A3","D05-03":"none","D05-07":720,"D05-08":4800,"D05-09":0,"D05-13":18,"D05-14":4098,"D05-15":0},"desired":null}}
2022-12-02 14:51:30.905 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] Status update: {'D01-02': 'Purifier product', 'D01-03': 'AC1715', 'D01-04': 'Nala', 'D01-05': 'AC1715/11', 'D01-07': 'English', 'D01-08': 2, 'D01-09': 1, 'D01-10': 0, 'D01-11': 0, 'D01-20': '0.0.1', 'D01-21': '0.6.0', 'MCUBoot': True, 'Runtime': 37671486, 'rssi': -28, 'otacheck': False, 'wifilog': False, 'free_memory': 49184, 'WifiVersion': 'AWS_Philips_AIR@73.1', 'ProductId': '32d3e652179d11ec99f70217247a73aa', 'DeviceId': 'fe6e3b0f5ac211eda11acb4324b94c65', 'StatusType': 'status', 'ConnectType': 'Online', 'D03-02': 'ON', 'D03-03': False, 'D03-04': 0, 'D03-05': 0, 'D03-11': 'A', 'D03-12': 'Auto General', 'D03-13': '1', 'D03-32': 1, 'D03-33': 3, 'D03-42': 'PM2.5', 'D03-43': 'PM2.5', 'D03-44': 4, 'aqit_ext': 0, 'D03-64': 0, 'D05-02': 'A3', 'D05-03': 'none', 'D05-07': 720, 'D05-08': 4800, 'D05-09': 0, 'D05-13': 18, 'D05-14': 4098, 'D05-15': 0}
2022-12-02 14:51:30.914 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Timer cancelled: ('RESET',)
2022-12-02 14:51:30.914 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s.
2022-12-02 14:51:52.388 DEBUG (MainThread) [coap] Incoming message <aiocoap.Message at 0x7f701ff970: Type.NON 2.05 Content (MID 3357, token 7479) remote <UDP6EndpointAddress 192.168.2.21 (locally 192.168.2.13%eth0)>, 3 option(s), 1672 byte(s) payload>
2022-12-02 14:51:52.388 DEBUG (MainThread) [coap] Received Response: <aiocoap.Message at 0x7f701ff970: Type.NON 2.05 Content (MID 3357, token 7479) remote <UDP6EndpointAddress 192.168.2.21 (locally 192.168.2.13%eth0)>, 3 option(s), 1672 byte(s) payload>
2022-12-02 14:51:52.389 DEBUG (MainThread) [coap] Response <aiocoap.Message at 0x7f701ff970: Type.NON 2.05 Content (MID 3357, token 7479) remote <UDP6EndpointAddress 192.168.2.21 (locally 192.168.2.13%eth0)>, 3 option(s), 1672 byte(s) payload> matched to request <PlumbingRequest at 0x7f5d4ad120 around <aiocoap.Message at 0x7f674763b0: Type.NON GET (MID 47264, token 7479) remote <UDP6EndpointAddress 192.168.2.21 (locally 192.168.2.13%eth0)>, 2 option(s)> with 2 callbacks>
kongo09 commented 1 year ago

Can you share a screen snapshot of the attributes of the fan entity?

kongo09 commented 1 year ago

I tried some fixes for the light switch but I don't know yet what's happening with the power switch. Here comes the next beta with additional logging, please post the results after hitting the switches: v0.11.0-beta1715.4

alucryd commented 1 year ago

Looks like there's some indentation error, the extension won't load:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/loader.py", line 709, in get_component
    cache[self.domain] = importlib.import_module(self.pkg_path)
  File "/usr/local/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/config/custom_components/philips_airpurifier_coap/__init__.py", line 20, in <module>
    from .philips import Coordinator
  File "/config/custom_components/philips_airpurifier_coap/philips.py", line 474
    class PhilipsAC1214(PhilipsGenericCoAPFan):
    ^^^^^
IndentationError: expected an indented block after class definition on line 469
kongo09 commented 1 year ago

stupid me, try v0.11.0-beta1715.5

alucryd commented 1 year ago

Turning on/off the device now works fine, and so does the backlight, great job!

There are still 3 greyed out light related switches, but the one that's active works like a charm :)

image

kongo09 commented 1 year ago

That is very strange. Could it be that you have these entities as left-over from the last beta? Can you make sure you delete all entities and then re-install the integration?

kongo09 commented 1 year ago

I did some refactoring now (and hope I didn't break anything for the other devices). Can you please try v0.11.0-beta1715.6 and see if you get sensors?

kongo09 commented 1 year ago

There was a bug with the sensors, so if you try v0.11.0-beta1715.7 you should have sensors working alright. Can you please confirm and also show me the attributes of the sensor entities that you got. If this all works, I'll move over to the presets and speed settings.

Jaguaza commented 1 year ago

Now there are only two entities and they work great.

On/off and light control.

I still don't have anything from the sensors. Captura de pantalla 2022-12-03 114230 Captura de pantalla 2022-12-03 114310

kongo09 commented 1 year ago

Can you please share log files

Jaguaza commented 1 year ago

Can you please provide log files

I'll see how to do it.

Jaguaza commented 1 year ago

Ok the only mistake I have is because of the loss of the COAP.

2022-12-03 12:16:20.502 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration philips_airpurifier_coap which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-12-03 12:16:50.018 DEBUG (MainThread) [custom_components.philips_airpurifier_coap] async_setup called
2022-12-03 12:16:50.108 DEBUG (MainThread) [custom_components.philips_airpurifier_coap] async_setup_entry called for host 192.168.200.102
2022-12-03 12:17:15.109 WARNING (MainThread) [custom_components.philips_airpurifier_coap] Failed to connect to host 192.168.200.102:
2022-12-03 12:17:15.113 WARNING (MainThread) [homeassistant.config_entries] Config entry 'AC1715 CALIDAD AIRE SALÓN' for philips_airpurifier_coap integration not ready yet; Retrying in background
2022-12-03 12:17:42.860 DEBUG (MainThread) [custom_components.philips_airpurifier_coap] async_setup_entry called for host 192.168.200.102
2022-12-03 12:18:00.607 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.config_flow] async_step_dhcp: called, found: DhcpServiceInfo(ip='192.168.200.102', hostname='mxchip', macaddress='80a036de1fdd')
2022-12-03 12:18:00.607 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.config_flow] trying to configure host: 192.168.200.102
2022-12-03 12:18:07.914 WARNING (MainThread) [custom_components.philips_airpurifier_coap] Failed to connect to host 192.168.200.102:
2022-12-03 12:18:17.921 DEBUG (MainThread) [custom_components.philips_airpurifier_coap] async_setup_entry called for host 192.168.200.102

I deleted everything and installed everything again.

2022-12-03 12:29:31.457 DEBUG (MainThread) [coap] Incoming message <aiocoap.Message at 0x7febd5965ff0: Type.NON 2.05 Content (MID 30, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 3 option(s), 1704 byte(s) payload>
2022-12-03 12:29:31.458 DEBUG (MainThread) [coap] Received Response: <aiocoap.Message at 0x7febd5965ff0: Type.NON 2.05 Content (MID 30, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 3 option(s), 1704 byte(s) payload>
2022-12-03 12:29:31.458 DEBUG (MainThread) [coap] Response <aiocoap.Message at 0x7febd5965ff0: Type.NON 2.05 Content (MID 30, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 3 option(s), 1704 byte(s) payload> matched to request <PlumbingRequest at 0x7febd91d22c0 around <aiocoap.Message at 0x7febe8e5b400: Type.NON GET (MID 56039, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 2 option(s)> with 2 callbacks>
2022-12-03 12:29:31.458 DEBUG (MainThread) [coap.blockwise-requester] Notification received
2022-12-03 12:29:31.459 DEBUG (MainThread) [coap.blockwise-requester] Reporting completed notification
2022-12-03 12:29:31.459 DEBUG (MainThread) [aioairctrl.coap.client] observation status: {"state":{"reported":{"D01-02":"Purifier product","D01-03":"CALIDAD AIRE SALÓN","D01-04":"Nala","D01-05":"AC1715/11","D01-07":"English","D01-08":2,"D01-09":1,"D01-10":0,"D01-11":0,"D01-20":"0.0.1","D01-21":"0.6.0","MCUBoot":true,"Runtime":69430,"rssi":-40,"otacheck":false,"wifilog":false,"free_memory":57896,"WifiVersion":"AWS_Philips_AIR@73.1","ProductId":"32d3e652179d11ec99f70217247a73aa","DeviceId":"29378ecee0f011ec9c95960e905418ad","StatusType":"status","ConnectType":"Online","D03-02":"ON","D03-03":false,"D03-04":100,"D03-05":100,"D03-11":"A","D03-12":"Auto General","D03-13":"3","D03-32":12,"D03-33":279,"D03-42":"PM2.5","D03-43":"PM2.5","D03-44":4,"aqit_ext":0,"D03-64":49153,"D05-02":"A3","D05-03":"none","D05-07":720,"D05-08":4800,"D05-09":0,"D05-13":0,"D05-14":3321,"D05-15":0},"desired":null}}
2022-12-03 12:29:31.459 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] Status update: {'D01-02': 'Purifier product', 'D01-03': 'CALIDAD AIRE SALÓN', 'D01-04': 'Nala', 'D01-05': 'AC1715/11', 'D01-07': 'English', 'D01-08': 2, 'D01-09': 1, 'D01-10': 0, 'D01-11': 0, 'D01-20': '0.0.1', 'D01-21': '0.6.0', 'MCUBoot': True, 'Runtime': 69430, 'rssi': -40, 'otacheck': False, 'wifilog': False, 'free_memory': 57896, 'WifiVersion': 'AWS_Philips_AIR@73.1', 'ProductId': '32d3e652179d11ec99f70217247a73aa', 'DeviceId': '29378ecee0f011ec9c95960e905418ad', 'StatusType': 'status', 'ConnectType': 'Online', 'D03-02': 'ON', 'D03-03': False, 'D03-04': 100, 'D03-05': 100, 'D03-11': 'A', 'D03-12': 'Auto General', 'D03-13': '3', 'D03-32': 12, 'D03-33': 279, 'D03-42': 'PM2.5', 'D03-43': 'PM2.5', 'D03-44': 4, 'aqit_ext': 0, 'D03-64': 49153, 'D05-02': 'A3', 'D05-03': 'none', 'D05-07': 720, 'D05-08': 4800, 'D05-09': 0, 'D05-13': 0, 'D05-14': 3321, 'D05-15': 0}
2022-12-03 12:29:31.460 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] is_on: status=ON - test=ON
2022-12-03 12:29:31.460 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] is_on: status=ON - test=ON
2022-12-03 12:29:31.460 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.light] is_on, kind: D03-05 - status: 100 - on: 100
2022-12-03 12:29:31.460 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.light] is_on, kind: D03-05 - status: 100 - on: 100
2022-12-03 12:29:31.461 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Timer cancelled: ('RESET',)
2022-12-03 12:29:31.461 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s.
2022-12-03 12:29:32.598 DEBUG (MainThread) [coap] Incoming message <aiocoap.Message at 0x7febdf0286a0: Type.NON 2.05 Content (MID 31, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 3 option(s), 1704 byte(s) payload>
2022-12-03 12:29:32.598 DEBUG (MainThread) [coap] Received Response: <aiocoap.Message at 0x7febdf0286a0: Type.NON 2.05 Content (MID 31, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 3 option(s), 1704 byte(s) payload>
2022-12-03 12:29:32.599 DEBUG (MainThread) [coap] Response <aiocoap.Message at 0x7febdf0286a0: Type.NON 2.05 Content (MID 31, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 3 option(s), 1704 byte(s) payload> matched to request <PlumbingRequest at 0x7febd91d22c0 around <aiocoap.Message at 0x7febe8e5b400: Type.NON GET (MID 56039, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 2 option(s)> with 2 callbacks>
2022-12-03 12:29:32.599 DEBUG (MainThread) [coap.blockwise-requester] Notification received
2022-12-03 12:29:32.599 DEBUG (MainThread) [coap.blockwise-requester] Reporting completed notification
2022-12-03 12:29:32.600 DEBUG (MainThread) [aioairctrl.coap.client] observation status: {"state":{"reported":{"D01-02":"Purifier product","D01-03":"CALIDAD AIRE SALÓN","D01-04":"Nala","D01-05":"AC1715/11","D01-07":"English","D01-08":2,"D01-09":1,"D01-10":0,"D01-11":0,"D01-20":"0.0.1","D01-21":"0.6.0","MCUBoot":true,"Runtime":70599,"rssi":-40,"otacheck":false,"wifilog":false,"free_memory":57896,"WifiVersion":"AWS_Philips_AIR@73.1","ProductId":"32d3e652179d11ec99f70217247a73aa","DeviceId":"29378ecee0f011ec9c95960e905418ad","StatusType":"status","ConnectType":"Online","D03-02":"ON","D03-03":false,"D03-04":100,"D03-05":100,"D03-11":"A","D03-12":"Auto General","D03-13":"3","D03-32":12,"D03-33":288,"D03-42":"PM2.5","D03-43":"PM2.5","D03-44":4,"aqit_ext":0,"D03-64":49153,"D05-02":"A3","D05-03":"none","D05-07":720,"D05-08":4800,"D05-09":0,"D05-13":0,"D05-14":3321,"D05-15":0},"desired":null}}
2022-12-03 12:29:32.600 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] Status update: {'D01-02': 'Purifier product', 'D01-03': 'CALIDAD AIRE SALÓN', 'D01-04': 'Nala', 'D01-05': 'AC1715/11', 'D01-07': 'English', 'D01-08': 2, 'D01-09': 1, 'D01-10': 0, 'D01-11': 0, 'D01-20': '0.0.1', 'D01-21': '0.6.0', 'MCUBoot': True, 'Runtime': 70599, 'rssi': -40, 'otacheck': False, 'wifilog': False, 'free_memory': 57896, 'WifiVersion': 'AWS_Philips_AIR@73.1', 'ProductId': '32d3e652179d11ec99f70217247a73aa', 'DeviceId': '29378ecee0f011ec9c95960e905418ad', 'StatusType': 'status', 'ConnectType': 'Online', 'D03-02': 'ON', 'D03-03': False, 'D03-04': 100, 'D03-05': 100, 'D03-11': 'A', 'D03-12': 'Auto General', 'D03-13': '3', 'D03-32': 12, 'D03-33': 288, 'D03-42': 'PM2.5', 'D03-43': 'PM2.5', 'D03-44': 4, 'aqit_ext': 0, 'D03-64': 49153, 'D05-02': 'A3', 'D05-03': 'none', 'D05-07': 720, 'D05-08': 4800, 'D05-09': 0, 'D05-13': 0, 'D05-14': 3321, 'D05-15': 0}
2022-12-03 12:29:32.600 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] is_on: status=ON - test=ON
2022-12-03 12:29:32.601 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] is_on: status=ON - test=ON
2022-12-03 12:29:32.601 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.light] is_on, kind: D03-05 - status: 100 - on: 100
2022-12-03 12:29:32.601 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.light] is_on, kind: D03-05 - status: 100 - on: 100
2022-12-03 12:29:32.602 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Timer cancelled: ('RESET',)
2022-12-03 12:29:32.602 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s.
2022-12-03 12:29:33.738 DEBUG (MainThread) [coap] Incoming message <aiocoap.Message at 0x7febd92ab280: Type.NON 2.05 Content (MID 32, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 3 option(s), 1704 byte(s) payload>
2022-12-03 12:29:33.739 DEBUG (MainThread) [coap] Received Response: <aiocoap.Message at 0x7febd92ab280: Type.NON 2.05 Content (MID 32, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 3 option(s), 1704 byte(s) payload>
2022-12-03 12:29:33.739 DEBUG (MainThread) [coap] Response <aiocoap.Message at 0x7febd92ab280: Type.NON 2.05 Content (MID 32, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 3 option(s), 1704 byte(s) payload> matched to request <PlumbingRequest at 0x7febd91d22c0 around <aiocoap.Message at 0x7febe8e5b400: Type.NON GET (MID 56039, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 2 option(s)> with 2 callbacks>
2022-12-03 12:29:33.740 DEBUG (MainThread) [coap.blockwise-requester] Notification received
2022-12-03 12:29:33.740 DEBUG (MainThread) [coap.blockwise-requester] Reporting completed notification
2022-12-03 12:29:33.741 DEBUG (MainThread) [aioairctrl.coap.client] observation status: {"state":{"reported":{"D01-02":"Purifier product","D01-03":"CALIDAD AIRE SALÓN","D01-04":"Nala","D01-05":"AC1715/11","D01-07":"English","D01-08":2,"D01-09":1,"D01-10":0,"D01-11":0,"D01-20":"0.0.1","D01-21":"0.6.0","MCUBoot":true,"Runtime":71767,"rssi":-40,"otacheck":false,"wifilog":false,"free_memory":57896,"WifiVersion":"AWS_Philips_AIR@73.1","ProductId":"32d3e652179d11ec99f70217247a73aa","DeviceId":"29378ecee0f011ec9c95960e905418ad","StatusType":"status","ConnectType":"Online","D03-02":"ON","D03-03":false,"D03-04":100,"D03-05":100,"D03-11":"A","D03-12":"Auto General","D03-13":"3","D03-32":12,"D03-33":296,"D03-42":"PM2.5","D03-43":"PM2.5","D03-44":4,"aqit_ext":0,"D03-64":49153,"D05-02":"A3","D05-03":"none","D05-07":720,"D05-08":4800,"D05-09":0,"D05-13":0,"D05-14":3321,"D05-15":0},"desired":null}}
2022-12-03 12:29:33.741 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] Status update: {'D01-02': 'Purifier product', 'D01-03': 'CALIDAD AIRE SALÓN', 'D01-04': 'Nala', 'D01-05': 'AC1715/11', 'D01-07': 'English', 'D01-08': 2, 'D01-09': 1, 'D01-10': 0, 'D01-11': 0, 'D01-20': '0.0.1', 'D01-21': '0.6.0', 'MCUBoot': True, 'Runtime': 71767, 'rssi': -40, 'otacheck': False, 'wifilog': False, 'free_memory': 57896, 'WifiVersion': 'AWS_Philips_AIR@73.1', 'ProductId': '32d3e652179d11ec99f70217247a73aa', 'DeviceId': '29378ecee0f011ec9c95960e905418ad', 'StatusType': 'status', 'ConnectType': 'Online', 'D03-02': 'ON', 'D03-03': False, 'D03-04': 100, 'D03-05': 100, 'D03-11': 'A', 'D03-12': 'Auto General', 'D03-13': '3', 'D03-32': 12, 'D03-33': 296, 'D03-42': 'PM2.5', 'D03-43': 'PM2.5', 'D03-44': 4, 'aqit_ext': 0, 'D03-64': 49153, 'D05-02': 'A3', 'D05-03': 'none', 'D05-07': 720, 'D05-08': 4800, 'D05-09': 0, 'D05-13': 0, 'D05-14': 3321, 'D05-15': 0}
2022-12-03 12:29:33.741 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] is_on: status=ON - test=ON
2022-12-03 12:29:33.741 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] is_on: status=ON - test=ON
2022-12-03 12:29:33.742 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.light] is_on, kind: D03-05 - status: 100 - on: 100
2022-12-03 12:29:33.742 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.light] is_on, kind: D03-05 - status: 100 - on: 100
2022-12-03 12:29:33.742 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Timer cancelled: ('RESET',)
2022-12-03 12:29:33.743 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s.
2022-12-03 12:29:34.880 DEBUG (MainThread) [coap] Incoming message <aiocoap.Message at 0x7febd92aa260: Type.NON 2.05 Content (MID 33, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 3 option(s), 1704 byte(s) payload>
2022-12-03 12:29:34.880 DEBUG (MainThread) [coap] Received Response: <aiocoap.Message at 0x7febd92aa260: Type.NON 2.05 Content (MID 33, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 3 option(s), 1704 byte(s) payload>
2022-12-03 12:29:34.880 DEBUG (MainThread) [coap] Response <aiocoap.Message at 0x7febd92aa260: Type.NON 2.05 Content (MID 33, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 3 option(s), 1704 byte(s) payload> matched to request <PlumbingRequest at 0x7febd91d22c0 around <aiocoap.Message at 0x7febe8e5b400: Type.NON GET (MID 56039, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 2 option(s)> with 2 callbacks>
2022-12-03 12:29:34.881 DEBUG (MainThread) [coap.blockwise-requester] Notification received
2022-12-03 12:29:34.881 DEBUG (MainThread) [coap.blockwise-requester] Reporting completed notification
2022-12-03 12:29:34.882 DEBUG (MainThread) [aioairctrl.coap.client] observation status: {"state":{"reported":{"D01-02":"Purifier product","D01-03":"CALIDAD AIRE SALÓN","D01-04":"Nala","D01-05":"AC1715/11","D01-07":"English","D01-08":2,"D01-09":1,"D01-10":0,"D01-11":0,"D01-20":"0.0.1","D01-21":"0.6.0","MCUBoot":true,"Runtime":72935,"rssi":-40,"otacheck":false,"wifilog":false,"free_memory":57896,"WifiVersion":"AWS_Philips_AIR@73.1","ProductId":"32d3e652179d11ec99f70217247a73aa","DeviceId":"29378ecee0f011ec9c95960e905418ad","StatusType":"status","ConnectType":"Online","D03-02":"ON","D03-03":false,"D03-04":100,"D03-05":100,"D03-11":"A","D03-12":"Auto General","D03-13":"3","D03-32":12,"D03-33":305,"D03-42":"PM2.5","D03-43":"PM2.5","D03-44":4,"aqit_ext":0,"D03-64":49153,"D05-02":"A3","D05-03":"none","D05-07":720,"D05-08":4800,"D05-09":0,"D05-13":0,"D05-14":3321,"D05-15":0},"desired":null}}
2022-12-03 12:29:34.882 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] Status update: {'D01-02': 'Purifier product', 'D01-03': 'CALIDAD AIRE SALÓN', 'D01-04': 'Nala', 'D01-05': 'AC1715/11', 'D01-07': 'English', 'D01-08': 2, 'D01-09': 1, 'D01-10': 0, 'D01-11': 0, 'D01-20': '0.0.1', 'D01-21': '0.6.0', 'MCUBoot': True, 'Runtime': 72935, 'rssi': -40, 'otacheck': False, 'wifilog': False, 'free_memory': 57896, 'WifiVersion': 'AWS_Philips_AIR@73.1', 'ProductId': '32d3e652179d11ec99f70217247a73aa', 'DeviceId': '29378ecee0f011ec9c95960e905418ad', 'StatusType': 'status', 'ConnectType': 'Online', 'D03-02': 'ON', 'D03-03': False, 'D03-04': 100, 'D03-05': 100, 'D03-11': 'A', 'D03-12': 'Auto General', 'D03-13': '3', 'D03-32': 12, 'D03-33': 305, 'D03-42': 'PM2.5', 'D03-43': 'PM2.5', 'D03-44': 4, 'aqit_ext': 0, 'D03-64': 49153, 'D05-02': 'A3', 'D05-03': 'none', 'D05-07': 720, 'D05-08': 4800, 'D05-09': 0, 'D05-13': 0, 'D05-14': 3321, 'D05-15': 0}
2022-12-03 12:29:34.882 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] is_on: status=ON - test=ON
2022-12-03 12:29:34.882 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] is_on: status=ON - test=ON
2022-12-03 12:29:34.883 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.light] is_on, kind: D03-05 - status: 100 - on: 100
2022-12-03 12:29:34.883 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.light] is_on, kind: D03-05 - status: 100 - on: 100
2022-12-03 12:29:34.883 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Timer cancelled: ('RESET',)
2022-12-03 12:29:34.885 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s.
2022-12-03 12:29:36.021 DEBUG (MainThread) [coap] Incoming message <aiocoap.Message at 0x7febfd7a8fd0: Type.NON 2.05 Content (MID 34, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 3 option(s), 1704 byte(s) payload>
2022-12-03 12:29:36.021 DEBUG (MainThread) [coap] Received Response: <aiocoap.Message at 0x7febfd7a8fd0: Type.NON 2.05 Content (MID 34, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 3 option(s), 1704 byte(s) payload>
2022-12-03 12:29:36.022 DEBUG (MainThread) [coap] Response <aiocoap.Message at 0x7febfd7a8fd0: Type.NON 2.05 Content (MID 34, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 3 option(s), 1704 byte(s) payload> matched to request <PlumbingRequest at 0x7febd91d22c0 around <aiocoap.Message at 0x7febe8e5b400: Type.NON GET (MID 56039, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 2 option(s)> with 2 callbacks>
2022-12-03 12:29:36.022 DEBUG (MainThread) [coap.blockwise-requester] Notification received
2022-12-03 12:29:36.022 DEBUG (MainThread) [coap.blockwise-requester] Reporting completed notification
2022-12-03 12:29:36.023 DEBUG (MainThread) [aioairctrl.coap.client] observation status: {"state":{"reported":{"D01-02":"Purifier product","D01-03":"CALIDAD AIRE SALÓN","D01-04":"Nala","D01-05":"AC1715/11","D01-07":"English","D01-08":2,"D01-09":1,"D01-10":0,"D01-11":0,"D01-20":"0.0.1","D01-21":"0.6.0","MCUBoot":true,"Runtime":74103,"rssi":-40,"otacheck":false,"wifilog":false,"free_memory":57896,"WifiVersion":"AWS_Philips_AIR@73.1","ProductId":"32d3e652179d11ec99f70217247a73aa","DeviceId":"29378ecee0f011ec9c95960e905418ad","StatusType":"status","ConnectType":"Online","D03-02":"ON","D03-03":false,"D03-04":100,"D03-05":100,"D03-11":"A","D03-12":"Auto General","D03-13":"3","D03-32":12,"D03-33":314,"D03-42":"PM2.5","D03-43":"PM2.5","D03-44":4,"aqit_ext":0,"D03-64":49153,"D05-02":"A3","D05-03":"none","D05-07":720,"D05-08":4800,"D05-09":0,"D05-13":0,"D05-14":3321,"D05-15":0},"desired":null}}
2022-12-03 12:29:36.023 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] Status update: {'D01-02': 'Purifier product', 'D01-03': 'CALIDAD AIRE SALÓN', 'D01-04': 'Nala', 'D01-05': 'AC1715/11', 'D01-07': 'English', 'D01-08': 2, 'D01-09': 1, 'D01-10': 0, 'D01-11': 0, 'D01-20': '0.0.1', 'D01-21': '0.6.0', 'MCUBoot': True, 'Runtime': 74103, 'rssi': -40, 'otacheck': False, 'wifilog': False, 'free_memory': 57896, 'WifiVersion': 'AWS_Philips_AIR@73.1', 'ProductId': '32d3e652179d11ec99f70217247a73aa', 'DeviceId': '29378ecee0f011ec9c95960e905418ad', 'StatusType': 'status', 'ConnectType': 'Online', 'D03-02': 'ON', 'D03-03': False, 'D03-04': 100, 'D03-05': 100, 'D03-11': 'A', 'D03-12': 'Auto General', 'D03-13': '3', 'D03-32': 12, 'D03-33': 314, 'D03-42': 'PM2.5', 'D03-43': 'PM2.5', 'D03-44': 4, 'aqit_ext': 0, 'D03-64': 49153, 'D05-02': 'A3', 'D05-03': 'none', 'D05-07': 720, 'D05-08': 4800, 'D05-09': 0, 'D05-13': 0, 'D05-14': 3321, 'D05-15': 0}
2022-12-03 12:29:36.024 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] is_on: status=ON - test=ON
2022-12-03 12:29:36.024 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] is_on: status=ON - test=ON
2022-12-03 12:29:36.024 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.light] is_on, kind: D03-05 - status: 100 - on: 100
2022-12-03 12:29:36.024 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.light] is_on, kind: D03-05 - status: 100 - on: 100
2022-12-03 12:29:36.025 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Timer cancelled: ('RESET',)
2022-12-03 12:29:36.025 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s.
2022-12-03 12:29:37.164 DEBUG (MainThread) [coap] Incoming message <aiocoap.Message at 0x7febd7410040: Type.NON 2.05 Content (MID 35, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 3 option(s), 1704 byte(s) payload>
2022-12-03 12:29:37.165 DEBUG (MainThread) [coap] Received Response: <aiocoap.Message at 0x7febd7410040: Type.NON 2.05 Content (MID 35, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 3 option(s), 1704 byte(s) payload>
2022-12-03 12:29:37.165 DEBUG (MainThread) [coap] Response <aiocoap.Message at 0x7febd7410040: Type.NON 2.05 Content (MID 35, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 3 option(s), 1704 byte(s) payload> matched to request <PlumbingRequest at 0x7febd91d22c0 around <aiocoap.Message at 0x7febe8e5b400: Type.NON GET (MID 56039, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 2 option(s)> with 2 callbacks>
2022-12-03 12:29:37.165 DEBUG (MainThread) [coap.blockwise-requester] Notification received
2022-12-03 12:29:37.165 DEBUG (MainThread) [coap.blockwise-requester] Reporting completed notification
2022-12-03 12:29:37.166 DEBUG (MainThread) [aioairctrl.coap.client] observation status: {"state":{"reported":{"D01-02":"Purifier product","D01-03":"CALIDAD AIRE SALÓN","D01-04":"Nala","D01-05":"AC1715/11","D01-07":"English","D01-08":2,"D01-09":1,"D01-10":0,"D01-11":0,"D01-20":"0.0.1","D01-21":"0.6.0","MCUBoot":true,"Runtime":75271,"rssi":-40,"otacheck":false,"wifilog":false,"free_memory":57896,"WifiVersion":"AWS_Philips_AIR@73.1","ProductId":"32d3e652179d11ec99f70217247a73aa","DeviceId":"29378ecee0f011ec9c95960e905418ad","StatusType":"status","ConnectType":"Online","D03-02":"ON","D03-03":false,"D03-04":100,"D03-05":100,"D03-11":"A","D03-12":"Auto General","D03-13":"3","D03-32":12,"D03-33":321,"D03-42":"PM2.5","D03-43":"PM2.5","D03-44":4,"aqit_ext":0,"D03-64":49153,"D05-02":"A3","D05-03":"none","D05-07":720,"D05-08":4800,"D05-09":0,"D05-13":0,"D05-14":3321,"D05-15":0},"desired":null}}
2022-12-03 12:29:37.166 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] Status update: {'D01-02': 'Purifier product', 'D01-03': 'CALIDAD AIRE SALÓN', 'D01-04': 'Nala', 'D01-05': 'AC1715/11', 'D01-07': 'English', 'D01-08': 2, 'D01-09': 1, 'D01-10': 0, 'D01-11': 0, 'D01-20': '0.0.1', 'D01-21': '0.6.0', 'MCUBoot': True, 'Runtime': 75271, 'rssi': -40, 'otacheck': False, 'wifilog': False, 'free_memory': 57896, 'WifiVersion': 'AWS_Philips_AIR@73.1', 'ProductId': '32d3e652179d11ec99f70217247a73aa', 'DeviceId': '29378ecee0f011ec9c95960e905418ad', 'StatusType': 'status', 'ConnectType': 'Online', 'D03-02': 'ON', 'D03-03': False, 'D03-04': 100, 'D03-05': 100, 'D03-11': 'A', 'D03-12': 'Auto General', 'D03-13': '3', 'D03-32': 12, 'D03-33': 321, 'D03-42': 'PM2.5', 'D03-43': 'PM2.5', 'D03-44': 4, 'aqit_ext': 0, 'D03-64': 49153, 'D05-02': 'A3', 'D05-03': 'none', 'D05-07': 720, 'D05-08': 4800, 'D05-09': 0, 'D05-13': 0, 'D05-14': 3321, 'D05-15': 0}
2022-12-03 12:29:37.167 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] is_on: status=ON - test=ON
2022-12-03 12:29:37.167 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] is_on: status=ON - test=ON
2022-12-03 12:29:37.168 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.light] is_on, kind: D03-05 - status: 100 - on: 100
2022-12-03 12:29:37.168 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.light] is_on, kind: D03-05 - status: 100 - on: 100
2022-12-03 12:29:37.168 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Timer cancelled: ('RESET',)
2022-12-03 12:29:37.168 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s.
2022-12-03 12:29:38.302 DEBUG (MainThread) [coap] Incoming message <aiocoap.Message at 0x7febd745d090: Type.NON 2.05 Content (MID 36, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 3 option(s), 1704 byte(s) payload>
2022-12-03 12:29:38.302 DEBUG (MainThread) [coap] Received Response: <aiocoap.Message at 0x7febd745d090: Type.NON 2.05 Content (MID 36, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 3 option(s), 1704 byte(s) payload>
2022-12-03 12:29:38.303 DEBUG (MainThread) [coap] Response <aiocoap.Message at 0x7febd745d090: Type.NON 2.05 Content (MID 36, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 3 option(s), 1704 byte(s) payload> matched to request <PlumbingRequest at 0x7febd91d22c0 around <aiocoap.Message at 0x7febe8e5b400: Type.NON GET (MID 56039, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 2 option(s)> with 2 callbacks>
2022-12-03 12:29:38.303 DEBUG (MainThread) [coap.blockwise-requester] Notification received
2022-12-03 12:29:38.303 DEBUG (MainThread) [coap.blockwise-requester] Reporting completed notification
2022-12-03 12:29:38.304 DEBUG (MainThread) [aioairctrl.coap.client] observation status: {"state":{"reported":{"D01-02":"Purifier product","D01-03":"CALIDAD AIRE SALÓN","D01-04":"Nala","D01-05":"AC1715/11","D01-07":"English","D01-08":2,"D01-09":1,"D01-10":0,"D01-11":0,"D01-20":"0.0.1","D01-21":"0.6.0","MCUBoot":true,"Runtime":76440,"rssi":-40,"otacheck":false,"wifilog":false,"free_memory":57896,"WifiVersion":"AWS_Philips_AIR@73.1","ProductId":"32d3e652179d11ec99f70217247a73aa","DeviceId":"29378ecee0f011ec9c95960e905418ad","StatusType":"status","ConnectType":"Online","D03-02":"ON","D03-03":false,"D03-04":100,"D03-05":100,"D03-11":"A","D03-12":"Auto General","D03-13":"3","D03-32":12,"D03-33":334,"D03-42":"PM2.5","D03-43":"PM2.5","D03-44":4,"aqit_ext":0,"D03-64":49153,"D05-02":"A3","D05-03":"none","D05-07":720,"D05-08":4800,"D05-09":0,"D05-13":0,"D05-14":3321,"D05-15":0},"desired":null}}
2022-12-03 12:29:38.304 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] Status update: {'D01-02': 'Purifier product', 'D01-03': 'CALIDAD AIRE SALÓN', 'D01-04': 'Nala', 'D01-05': 'AC1715/11', 'D01-07': 'English', 'D01-08': 2, 'D01-09': 1, 'D01-10': 0, 'D01-11': 0, 'D01-20': '0.0.1', 'D01-21': '0.6.0', 'MCUBoot': True, 'Runtime': 76440, 'rssi': -40, 'otacheck': False, 'wifilog': False, 'free_memory': 57896, 'WifiVersion': 'AWS_Philips_AIR@73.1', 'ProductId': '32d3e652179d11ec99f70217247a73aa', 'DeviceId': '29378ecee0f011ec9c95960e905418ad', 'StatusType': 'status', 'ConnectType': 'Online', 'D03-02': 'ON', 'D03-03': False, 'D03-04': 100, 'D03-05': 100, 'D03-11': 'A', 'D03-12': 'Auto General', 'D03-13': '3', 'D03-32': 12, 'D03-33': 334, 'D03-42': 'PM2.5', 'D03-43': 'PM2.5', 'D03-44': 4, 'aqit_ext': 0, 'D03-64': 49153, 'D05-02': 'A3', 'D05-03': 'none', 'D05-07': 720, 'D05-08': 4800, 'D05-09': 0, 'D05-13': 0, 'D05-14': 3321, 'D05-15': 0}
2022-12-03 12:29:38.304 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] is_on: status=ON - test=ON
2022-12-03 12:29:38.305 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] is_on: status=ON - test=ON
2022-12-03 12:29:38.305 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.light] is_on, kind: D03-05 - status: 100 - on: 100
2022-12-03 12:29:38.305 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.light] is_on, kind: D03-05 - status: 100 - on: 100
2022-12-03 12:29:38.305 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Timer cancelled: ('RESET',)
2022-12-03 12:29:38.306 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s.
2022-12-03 12:29:39.444 DEBUG (MainThread) [coap] Incoming message <aiocoap.Message at 0x7febdaf59780: Type.NON 2.05 Content (MID 37, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 3 option(s), 1704 byte(s) payload>
2022-12-03 12:29:39.444 DEBUG (MainThread) [coap] Received Response: <aiocoap.Message at 0x7febdaf59780: Type.NON 2.05 Content (MID 37, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 3 option(s), 1704 byte(s) payload>
2022-12-03 12:29:39.445 DEBUG (MainThread) [coap] Response <aiocoap.Message at 0x7febdaf59780: Type.NON 2.05 Content (MID 37, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 3 option(s), 1704 byte(s) payload> matched to request <PlumbingRequest at 0x7febd91d22c0 around <aiocoap.Message at 0x7febe8e5b400: Type.NON GET (MID 56039, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 2 option(s)> with 2 callbacks>
2022-12-03 12:29:39.445 DEBUG (MainThread) [coap.blockwise-requester] Notification received
2022-12-03 12:29:39.445 DEBUG (MainThread) [coap.blockwise-requester] Reporting completed notification
2022-12-03 12:29:39.446 DEBUG (MainThread) [aioairctrl.coap.client] observation status: {"state":{"reported":{"D01-02":"Purifier product","D01-03":"CALIDAD AIRE SALÓN","D01-04":"Nala","D01-05":"AC1715/11","D01-07":"English","D01-08":2,"D01-09":1,"D01-10":0,"D01-11":0,"D01-20":"0.0.1","D01-21":"0.6.0","MCUBoot":true,"Runtime":77608,"rssi":-41,"otacheck":false,"wifilog":false,"free_memory":58000,"WifiVersion":"AWS_Philips_AIR@73.1","ProductId":"32d3e652179d11ec99f70217247a73aa","DeviceId":"29378ecee0f011ec9c95960e905418ad","StatusType":"status","ConnectType":"Online","D03-02":"ON","D03-03":false,"D03-04":100,"D03-05":100,"D03-11":"A","D03-12":"Auto General","D03-13":"3","D03-32":12,"D03-33":341,"D03-42":"PM2.5","D03-43":"PM2.5","D03-44":4,"aqit_ext":0,"D03-64":49153,"D05-02":"A3","D05-03":"none","D05-07":720,"D05-08":4800,"D05-09":0,"D05-13":0,"D05-14":3321,"D05-15":0},"desired":null}}
2022-12-03 12:29:39.446 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] Status update: {'D01-02': 'Purifier product', 'D01-03': 'CALIDAD AIRE SALÓN', 'D01-04': 'Nala', 'D01-05': 'AC1715/11', 'D01-07': 'English', 'D01-08': 2, 'D01-09': 1, 'D01-10': 0, 'D01-11': 0, 'D01-20': '0.0.1', 'D01-21': '0.6.0', 'MCUBoot': True, 'Runtime': 77608, 'rssi': -41, 'otacheck': False, 'wifilog': False, 'free_memory': 58000, 'WifiVersion': 'AWS_Philips_AIR@73.1', 'ProductId': '32d3e652179d11ec99f70217247a73aa', 'DeviceId': '29378ecee0f011ec9c95960e905418ad', 'StatusType': 'status', 'ConnectType': 'Online', 'D03-02': 'ON', 'D03-03': False, 'D03-04': 100, 'D03-05': 100, 'D03-11': 'A', 'D03-12': 'Auto General', 'D03-13': '3', 'D03-32': 12, 'D03-33': 341, 'D03-42': 'PM2.5', 'D03-43': 'PM2.5', 'D03-44': 4, 'aqit_ext': 0, 'D03-64': 49153, 'D05-02': 'A3', 'D05-03': 'none', 'D05-07': 720, 'D05-08': 4800, 'D05-09': 0, 'D05-13': 0, 'D05-14': 3321, 'D05-15': 0}
2022-12-03 12:29:39.446 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] is_on: status=ON - test=ON
2022-12-03 12:29:39.446 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] is_on: status=ON - test=ON
2022-12-03 12:29:39.447 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.light] is_on, kind: D03-05 - status: 100 - on: 100
2022-12-03 12:29:39.447 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.light] is_on, kind: D03-05 - status: 100 - on: 100
2022-12-03 12:29:39.447 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Timer cancelled: ('RESET',)
2022-12-03 12:29:39.447 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s.
2022-12-03 12:29:23.467 DEBUG (MainThread) [coap] Incoming message <aiocoap.Message at 0x7febd5966350: Type.NON 2.05 Content (MID 23, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 3 option(s), 1704 byte(s) payload>
2022-12-03 12:29:23.468 DEBUG (MainThread) [coap] Received Response: <aiocoap.Message at 0x7febd5966350: Type.NON 2.05 Content (MID 23, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 3 option(s), 1704 byte(s) payload>
2022-12-03 12:29:23.468 DEBUG (MainThread) [coap] Response <aiocoap.Message at 0x7febd5966350: Type.NON 2.05 Content (MID 23, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 3 option(s), 1704 byte(s) payload> matched to request <PlumbingRequest at 0x7febd91d22c0 around <aiocoap.Message at 0x7febe8e5b400: Type.NON GET (MID 56039, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 2 option(s)> with 2 callbacks>
2022-12-03 12:29:23.468 DEBUG (MainThread) [coap.blockwise-requester] Notification received
2022-12-03 12:29:23.468 DEBUG (MainThread) [coap.blockwise-requester] Reporting completed notification
2022-12-03 12:29:23.469 DEBUG (MainThread) [aioairctrl.coap.client] observation status: {"state":{"reported":{"D01-02":"Purifier product","D01-03":"CALIDAD AIRE SALÓN","D01-04":"Nala","D01-05":"AC1715/11","D01-07":"English","D01-08":2,"D01-09":1,"D01-10":0,"D01-11":0,"D01-20":"0.0.1","D01-21":"0.6.0","MCUBoot":true,"Runtime":61249,"rssi":-41,"otacheck":false,"wifilog":false,"free_memory":57896,"WifiVersion":"AWS_Philips_AIR@73.1","ProductId":"32d3e652179d11ec99f70217247a73aa","DeviceId":"29378ecee0f011ec9c95960e905418ad","StatusType":"status","ConnectType":"Online","D03-02":"ON","D03-03":false,"D03-04":100,"D03-05":100,"D03-11":"A","D03-12":"Auto General","D03-13":"3","D03-32":12,"D03-33":376,"D03-42":"PM2.5","D03-43":"PM2.5","D03-44":4,"aqit_ext":0,"D03-64":49153,"D05-02":"A3","D05-03":"none","D05-07":720,"D05-08":4800,"D05-09":0,"D05-13":0,"D05-14":3321,"D05-15":0},"desired":null}}
2022-12-03 12:29:23.470 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] Status update: {'D01-02': 'Purifier product', 'D01-03': 'CALIDAD AIRE SALÓN', 'D01-04': 'Nala', 'D01-05': 'AC1715/11', 'D01-07': 'English', 'D01-08': 2, 'D01-09': 1, 'D01-10': 0, 'D01-11': 0, 'D01-20': '0.0.1', 'D01-21': '0.6.0', 'MCUBoot': True, 'Runtime': 61249, 'rssi': -41, 'otacheck': False, 'wifilog': False, 'free_memory': 57896, 'WifiVersion': 'AWS_Philips_AIR@73.1', 'ProductId': '32d3e652179d11ec99f70217247a73aa', 'DeviceId': '29378ecee0f011ec9c95960e905418ad', 'StatusType': 'status', 'ConnectType': 'Online', 'D03-02': 'ON', 'D03-03': False, 'D03-04': 100, 'D03-05': 100, 'D03-11': 'A', 'D03-12': 'Auto General', 'D03-13': '3', 'D03-32': 12, 'D03-33': 376, 'D03-42': 'PM2.5', 'D03-43': 'PM2.5', 'D03-44': 4, 'aqit_ext': 0, 'D03-64': 49153, 'D05-02': 'A3', 'D05-03': 'none', 'D05-07': 720, 'D05-08': 4800, 'D05-09': 0, 'D05-13': 0, 'D05-14': 3321, 'D05-15': 0}
2022-12-03 12:29:23.470 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] is_on: status=ON - test=ON
2022-12-03 12:29:23.470 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] is_on: status=ON - test=ON
2022-12-03 12:29:23.472 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.light] is_on, kind: D03-05 - status: 100 - on: 100
2022-12-03 12:29:23.472 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.light] is_on, kind: D03-05 - status: 100 - on: 100
2022-12-03 12:29:23.473 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Timer cancelled: ('RESET',)
2022-12-03 12:29:23.473 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s.
2022-12-03 12:29:24.608 DEBUG (MainThread) [coap] Incoming message <aiocoap.Message at 0x7febd7410850: Type.NON 2.05 Content (MID 24, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 3 option(s), 1704 byte(s) payload>
2022-12-03 12:29:24.608 DEBUG (MainThread) [coap] Received Response: <aiocoap.Message at 0x7febd7410850: Type.NON 2.05 Content (MID 24, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 3 option(s), 1704 byte(s) payload>
2022-12-03 12:29:24.608 DEBUG (MainThread) [coap] Response <aiocoap.Message at 0x7febd7410850: Type.NON 2.05 Content (MID 24, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 3 option(s), 1704 byte(s) payload> matched to request <PlumbingRequest at 0x7febd91d22c0 around <aiocoap.Message at 0x7febe8e5b400: Type.NON GET (MID 56039, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 2 option(s)> with 2 callbacks>
2022-12-03 12:29:24.609 DEBUG (MainThread) [coap.blockwise-requester] Notification received
2022-12-03 12:29:24.609 DEBUG (MainThread) [coap.blockwise-requester] Reporting completed notification
2022-12-03 12:29:24.610 DEBUG (MainThread) [aioairctrl.coap.client] observation status: {"state":{"reported":{"D01-02":"Purifier product","D01-03":"CALIDAD AIRE SALÓN","D01-04":"Nala","D01-05":"AC1715/11","D01-07":"English","D01-08":2,"D01-09":1,"D01-10":0,"D01-11":0,"D01-20":"0.0.1","D01-21":"0.6.0","MCUBoot":true,"Runtime":62417,"rssi":-42,"otacheck":false,"wifilog":false,"free_memory":57896,"WifiVersion":"AWS_Philips_AIR@73.1","ProductId":"32d3e652179d11ec99f70217247a73aa","DeviceId":"29378ecee0f011ec9c95960e905418ad","StatusType":"status","ConnectType":"Online","D03-02":"ON","D03-03":false,"D03-04":100,"D03-05":100,"D03-11":"A","D03-12":"Auto General","D03-13":"3","D03-32":12,"D03-33":378,"D03-42":"PM2.5","D03-43":"PM2.5","D03-44":4,"aqit_ext":0,"D03-64":49153,"D05-02":"A3","D05-03":"none","D05-07":720,"D05-08":4800,"D05-09":0,"D05-13":0,"D05-14":3321,"D05-15":0},"desired":null}}
2022-12-03 12:29:24.610 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] Status update: {'D01-02': 'Purifier product', 'D01-03': 'CALIDAD AIRE SALÓN', 'D01-04': 'Nala', 'D01-05': 'AC1715/11', 'D01-07': 'English', 'D01-08': 2, 'D01-09': 1, 'D01-10': 0, 'D01-11': 0, 'D01-20': '0.0.1', 'D01-21': '0.6.0', 'MCUBoot': True, 'Runtime': 62417, 'rssi': -42, 'otacheck': False, 'wifilog': False, 'free_memory': 57896, 'WifiVersion': 'AWS_Philips_AIR@73.1', 'ProductId': '32d3e652179d11ec99f70217247a73aa', 'DeviceId': '29378ecee0f011ec9c95960e905418ad', 'StatusType': 'status', 'ConnectType': 'Online', 'D03-02': 'ON', 'D03-03': False, 'D03-04': 100, 'D03-05': 100, 'D03-11': 'A', 'D03-12': 'Auto General', 'D03-13': '3', 'D03-32': 12, 'D03-33': 378, 'D03-42': 'PM2.5', 'D03-43': 'PM2.5', 'D03-44': 4, 'aqit_ext': 0, 'D03-64': 49153, 'D05-02': 'A3', 'D05-03': 'none', 'D05-07': 720, 'D05-08': 4800, 'D05-09': 0, 'D05-13': 0, 'D05-14': 3321, 'D05-15': 0}
2022-12-03 12:29:24.610 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] is_on: status=ON - test=ON
2022-12-03 12:29:24.610 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] is_on: status=ON - test=ON
2022-12-03 12:29:24.611 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.light] is_on, kind: D03-05 - status: 100 - on: 100
2022-12-03 12:29:24.611 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.light] is_on, kind: D03-05 - status: 100 - on: 100
2022-12-03 12:29:24.611 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Timer cancelled: ('RESET',)
2022-12-03 12:29:24.611 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s.
2022-12-03 12:29:25.748 DEBUG (MainThread) [coap] Incoming message <aiocoap.Message at 0x7febd5967370: Type.NON 2.05 Content (MID 25, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 3 option(s), 1704 byte(s) payload>
2022-12-03 12:29:25.749 DEBUG (MainThread) [coap] Received Response: <aiocoap.Message at 0x7febd5967370: Type.NON 2.05 Content (MID 25, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 3 option(s), 1704 byte(s) payload>
2022-12-03 12:29:25.749 DEBUG (MainThread) [coap] Response <aiocoap.Message at 0x7febd5967370: Type.NON 2.05 Content (MID 25, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 3 option(s), 1704 byte(s) payload> matched to request <PlumbingRequest at 0x7febd91d22c0 around <aiocoap.Message at 0x7febe8e5b400: Type.NON GET (MID 56039, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 2 option(s)> with 2 callbacks>
2022-12-03 12:29:25.749 DEBUG (MainThread) [coap.blockwise-requester] Notification received
2022-12-03 12:29:25.749 DEBUG (MainThread) [coap.blockwise-requester] Reporting completed notification
2022-12-03 12:29:25.750 DEBUG (MainThread) [aioairctrl.coap.client] observation status: {"state":{"reported":{"D01-02":"Purifier product","D01-03":"CALIDAD AIRE SALÓN","D01-04":"Nala","D01-05":"AC1715/11","D01-07":"English","D01-08":2,"D01-09":1,"D01-10":0,"D01-11":0,"D01-20":"0.0.1","D01-21":"0.6.0","MCUBoot":true,"Runtime":63585,"rssi":-41,"otacheck":false,"wifilog":false,"free_memory":57896,"WifiVersion":"AWS_Philips_AIR@73.1","ProductId":"32d3e652179d11ec99f70217247a73aa","DeviceId":"29378ecee0f011ec9c95960e905418ad","StatusType":"status","ConnectType":"Online","D03-02":"ON","D03-03":false,"D03-04":100,"D03-05":100,"D03-11":"A","D03-12":"Auto General","D03-13":"3","D03-32":12,"D03-33":383,"D03-42":"PM2.5","D03-43":"PM2.5","D03-44":4,"aqit_ext":0,"D03-64":49153,"D05-02":"A3","D05-03":"none","D05-07":720,"D05-08":4800,"D05-09":0,"D05-13":0,"D05-14":3321,"D05-15":0},"desired":null}}
2022-12-03 12:29:25.750 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] Status update: {'D01-02': 'Purifier product', 'D01-03': 'CALIDAD AIRE SALÓN', 'D01-04': 'Nala', 'D01-05': 'AC1715/11', 'D01-07': 'English', 'D01-08': 2, 'D01-09': 1, 'D01-10': 0, 'D01-11': 0, 'D01-20': '0.0.1', 'D01-21': '0.6.0', 'MCUBoot': True, 'Runtime': 63585, 'rssi': -41, 'otacheck': False, 'wifilog': False, 'free_memory': 57896, 'WifiVersion': 'AWS_Philips_AIR@73.1', 'ProductId': '32d3e652179d11ec99f70217247a73aa', 'DeviceId': '29378ecee0f011ec9c95960e905418ad', 'StatusType': 'status', 'ConnectType': 'Online', 'D03-02': 'ON', 'D03-03': False, 'D03-04': 100, 'D03-05': 100, 'D03-11': 'A', 'D03-12': 'Auto General', 'D03-13': '3', 'D03-32': 12, 'D03-33': 383, 'D03-42': 'PM2.5', 'D03-43': 'PM2.5', 'D03-44': 4, 'aqit_ext': 0, 'D03-64': 49153, 'D05-02': 'A3', 'D05-03': 'none', 'D05-07': 720, 'D05-08': 4800, 'D05-09': 0, 'D05-13': 0, 'D05-14': 3321, 'D05-15': 0}
2022-12-03 12:29:25.751 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] is_on: status=ON - test=ON
2022-12-03 12:29:25.751 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] is_on: status=ON - test=ON
2022-12-03 12:29:25.751 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.light] is_on, kind: D03-05 - status: 100 - on: 100
2022-12-03 12:29:25.751 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.light] is_on, kind: D03-05 - status: 100 - on: 100
2022-12-03 12:29:25.752 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Timer cancelled: ('RESET',)
2022-12-03 12:29:25.752 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s.
2022-12-03 12:29:26.889 DEBUG (MainThread) [coap] Incoming message <aiocoap.Message at 0x7febd59673a0: Type.NON 2.05 Content (MID 26, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 3 option(s), 1704 byte(s) payload>
2022-12-03 12:29:26.889 DEBUG (MainThread) [coap] Received Response: <aiocoap.Message at 0x7febd59673a0: Type.NON 2.05 Content (MID 26, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 3 option(s), 1704 byte(s) payload>
2022-12-03 12:29:26.890 DEBUG (MainThread) [coap] Response <aiocoap.Message at 0x7febd59673a0: Type.NON 2.05 Content (MID 26, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 3 option(s), 1704 byte(s) payload> matched to request <PlumbingRequest at 0x7febd91d22c0 around <aiocoap.Message at 0x7febe8e5b400: Type.NON GET (MID 56039, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 2 option(s)> with 2 callbacks>
2022-12-03 12:29:26.890 DEBUG (MainThread) [coap.blockwise-requester] Notification received
2022-12-03 12:29:26.890 DEBUG (MainThread) [coap.blockwise-requester] Reporting completed notification
2022-12-03 12:29:26.895 DEBUG (MainThread) [aioairctrl.coap.client] observation status: {"state":{"reported":{"D01-02":"Purifier product","D01-03":"CALIDAD AIRE SALÓN","D01-04":"Nala","D01-05":"AC1715/11","D01-07":"English","D01-08":2,"D01-09":1,"D01-10":0,"D01-11":0,"D01-20":"0.0.1","D01-21":"0.6.0","MCUBoot":true,"Runtime":64753,"rssi":-40,"otacheck":false,"wifilog":false,"free_memory":57896,"WifiVersion":"AWS_Philips_AIR@73.1","ProductId":"32d3e652179d11ec99f70217247a73aa","DeviceId":"29378ecee0f011ec9c95960e905418ad","StatusType":"status","ConnectType":"Online","D03-02":"ON","D03-03":false,"D03-04":100,"D03-05":100,"D03-11":"A","D03-12":"Auto General","D03-13":"3","D03-32":12,"D03-33":381,"D03-42":"PM2.5","D03-43":"PM2.5","D03-44":4,"aqit_ext":0,"D03-64":49153,"D05-02":"A3","D05-03":"none","D05-07":720,"D05-08":4800,"D05-09":0,"D05-13":0,"D05-14":3321,"D05-15":0},"desired":null}}
2022-12-03 12:29:26.895 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] Status update: {'D01-02': 'Purifier product', 'D01-03': 'CALIDAD AIRE SALÓN', 'D01-04': 'Nala', 'D01-05': 'AC1715/11', 'D01-07': 'English', 'D01-08': 2, 'D01-09': 1, 'D01-10': 0, 'D01-11': 0, 'D01-20': '0.0.1', 'D01-21': '0.6.0', 'MCUBoot': True, 'Runtime': 64753, 'rssi': -40, 'otacheck': False, 'wifilog': False, 'free_memory': 57896, 'WifiVersion': 'AWS_Philips_AIR@73.1', 'ProductId': '32d3e652179d11ec99f70217247a73aa', 'DeviceId': '29378ecee0f011ec9c95960e905418ad', 'StatusType': 'status', 'ConnectType': 'Online', 'D03-02': 'ON', 'D03-03': False, 'D03-04': 100, 'D03-05': 100, 'D03-11': 'A', 'D03-12': 'Auto General', 'D03-13': '3', 'D03-32': 12, 'D03-33': 381, 'D03-42': 'PM2.5', 'D03-43': 'PM2.5', 'D03-44': 4, 'aqit_ext': 0, 'D03-64': 49153, 'D05-02': 'A3', 'D05-03': 'none', 'D05-07': 720, 'D05-08': 4800, 'D05-09': 0, 'D05-13': 0, 'D05-14': 3321, 'D05-15': 0}
2022-12-03 12:29:26.896 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] is_on: status=ON - test=ON
2022-12-03 12:29:26.896 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] is_on: status=ON - test=ON
2022-12-03 12:29:26.896 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.light] is_on, kind: D03-05 - status: 100 - on: 100
2022-12-03 12:29:26.897 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.light] is_on, kind: D03-05 - status: 100 - on: 100
2022-12-03 12:29:26.900 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Timer cancelled: ('RESET',)
2022-12-03 12:29:26.900 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s.
2022-12-03 12:29:28.032 DEBUG (MainThread) [coap] Incoming message <aiocoap.Message at 0x7febdfd8eb30: Type.NON 2.05 Content (MID 27, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 3 option(s), 1704 byte(s) payload>
2022-12-03 12:29:28.032 DEBUG (MainThread) [coap] Received Response: <aiocoap.Message at 0x7febdfd8eb30: Type.NON 2.05 Content (MID 27, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 3 option(s), 1704 byte(s) payload>
2022-12-03 12:29:28.033 DEBUG (MainThread) [coap] Response <aiocoap.Message at 0x7febdfd8eb30: Type.NON 2.05 Content (MID 27, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 3 option(s), 1704 byte(s) payload> matched to request <PlumbingRequest at 0x7febd91d22c0 around <aiocoap.Message at 0x7febe8e5b400: Type.NON GET (MID 56039, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 2 option(s)> with 2 callbacks>
2022-12-03 12:29:28.033 DEBUG (MainThread) [coap.blockwise-requester] Notification received
2022-12-03 12:29:28.033 DEBUG (MainThread) [coap.blockwise-requester] Reporting completed notification
2022-12-03 12:29:28.034 DEBUG (MainThread) [aioairctrl.coap.client] observation status: {"state":{"reported":{"D01-02":"Purifier product","D01-03":"CALIDAD AIRE SALÓN","D01-04":"Nala","D01-05":"AC1715/11","D01-07":"English","D01-08":2,"D01-09":1,"D01-10":0,"D01-11":0,"D01-20":"0.0.1","D01-21":"0.6.0","MCUBoot":true,"Runtime":65921,"rssi":-40,"otacheck":false,"wifilog":false,"free_memory":57896,"WifiVersion":"AWS_Philips_AIR@73.1","ProductId":"32d3e652179d11ec99f70217247a73aa","DeviceId":"29378ecee0f011ec9c95960e905418ad","StatusType":"status","ConnectType":"Online","D03-02":"ON","D03-03":false,"D03-04":100,"D03-05":100,"D03-11":"A","D03-12":"Auto General","D03-13":"3","D03-32":12,"D03-33":249,"D03-42":"PM2.5","D03-43":"PM2.5","D03-44":4,"aqit_ext":0,"D03-64":49153,"D05-02":"A3","D05-03":"none","D05-07":720,"D05-08":4800,"D05-09":0,"D05-13":0,"D05-14":3321,"D05-15":0},"desired":null}}
2022-12-03 12:29:28.034 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] Status update: {'D01-02': 'Purifier product', 'D01-03': 'CALIDAD AIRE SALÓN', 'D01-04': 'Nala', 'D01-05': 'AC1715/11', 'D01-07': 'English', 'D01-08': 2, 'D01-09': 1, 'D01-10': 0, 'D01-11': 0, 'D01-20': '0.0.1', 'D01-21': '0.6.0', 'MCUBoot': True, 'Runtime': 65921, 'rssi': -40, 'otacheck': False, 'wifilog': False, 'free_memory': 57896, 'WifiVersion': 'AWS_Philips_AIR@73.1', 'ProductId': '32d3e652179d11ec99f70217247a73aa', 'DeviceId': '29378ecee0f011ec9c95960e905418ad', 'StatusType': 'status', 'ConnectType': 'Online', 'D03-02': 'ON', 'D03-03': False, 'D03-04': 100, 'D03-05': 100, 'D03-11': 'A', 'D03-12': 'Auto General', 'D03-13': '3', 'D03-32': 12, 'D03-33': 249, 'D03-42': 'PM2.5', 'D03-43': 'PM2.5', 'D03-44': 4, 'aqit_ext': 0, 'D03-64': 49153, 'D05-02': 'A3', 'D05-03': 'none', 'D05-07': 720, 'D05-08': 4800, 'D05-09': 0, 'D05-13': 0, 'D05-14': 3321, 'D05-15': 0}
2022-12-03 12:29:28.034 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] is_on: status=ON - test=ON
2022-12-03 12:29:28.035 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] is_on: status=ON - test=ON
2022-12-03 12:29:28.035 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.light] is_on, kind: D03-05 - status: 100 - on: 100
2022-12-03 12:29:28.035 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.light] is_on, kind: D03-05 - status: 100 - on: 100
2022-12-03 12:29:28.039 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Timer cancelled: ('RESET',)
2022-12-03 12:29:28.040 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s.
2022-12-03 12:29:29.177 DEBUG (MainThread) [coap] Incoming message <aiocoap.Message at 0x7febd935e860: Type.NON 2.05 Content (MID 28, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 3 option(s), 1704 byte(s) payload>
2022-12-03 12:29:29.178 DEBUG (MainThread) [coap] Received Response: <aiocoap.Message at 0x7febd935e860: Type.NON 2.05 Content (MID 28, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 3 option(s), 1704 byte(s) payload>
2022-12-03 12:29:29.178 DEBUG (MainThread) [coap] Response <aiocoap.Message at 0x7febd935e860: Type.NON 2.05 Content (MID 28, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 3 option(s), 1704 byte(s) payload> matched to request <PlumbingRequest at 0x7febd91d22c0 around <aiocoap.Message at 0x7febe8e5b400: Type.NON GET (MID 56039, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 2 option(s)> with 2 callbacks>
2022-12-03 12:29:29.178 DEBUG (MainThread) [coap.blockwise-requester] Notification received
2022-12-03 12:29:29.178 DEBUG (MainThread) [coap.blockwise-requester] Reporting completed notification
2022-12-03 12:29:29.179 DEBUG (MainThread) [aioairctrl.coap.client] observation status: {"state":{"reported":{"D01-02":"Purifier product","D01-03":"CALIDAD AIRE SALÓN","D01-04":"Nala","D01-05":"AC1715/11","D01-07":"English","D01-08":2,"D01-09":1,"D01-10":0,"D01-11":0,"D01-20":"0.0.1","D01-21":"0.6.0","MCUBoot":true,"Runtime":67094,"rssi":-40,"otacheck":false,"wifilog":false,"free_memory":57896,"WifiVersion":"AWS_Philips_AIR@73.1","ProductId":"32d3e652179d11ec99f70217247a73aa","DeviceId":"29378ecee0f011ec9c95960e905418ad","StatusType":"status","ConnectType":"Online","D03-02":"ON","D03-03":false,"D03-04":100,"D03-05":100,"D03-11":"A","D03-12":"Auto General","D03-13":"3","D03-32":12,"D03-33":256,"D03-42":"PM2.5","D03-43":"PM2.5","D03-44":4,"aqit_ext":0,"D03-64":49153,"D05-02":"A3","D05-03":"none","D05-07":720,"D05-08":4800,"D05-09":0,"D05-13":0,"D05-14":3321,"D05-15":0},"desired":null}}
2022-12-03 12:29:29.179 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] Status update: {'D01-02': 'Purifier product', 'D01-03': 'CALIDAD AIRE SALÓN', 'D01-04': 'Nala', 'D01-05': 'AC1715/11', 'D01-07': 'English', 'D01-08': 2, 'D01-09': 1, 'D01-10': 0, 'D01-11': 0, 'D01-20': '0.0.1', 'D01-21': '0.6.0', 'MCUBoot': True, 'Runtime': 67094, 'rssi': -40, 'otacheck': False, 'wifilog': False, 'free_memory': 57896, 'WifiVersion': 'AWS_Philips_AIR@73.1', 'ProductId': '32d3e652179d11ec99f70217247a73aa', 'DeviceId': '29378ecee0f011ec9c95960e905418ad', 'StatusType': 'status', 'ConnectType': 'Online', 'D03-02': 'ON', 'D03-03': False, 'D03-04': 100, 'D03-05': 100, 'D03-11': 'A', 'D03-12': 'Auto General', 'D03-13': '3', 'D03-32': 12, 'D03-33': 256, 'D03-42': 'PM2.5', 'D03-43': 'PM2.5', 'D03-44': 4, 'aqit_ext': 0, 'D03-64': 49153, 'D05-02': 'A3', 'D05-03': 'none', 'D05-07': 720, 'D05-08': 4800, 'D05-09': 0, 'D05-13': 0, 'D05-14': 3321, 'D05-15': 0}
2022-12-03 12:29:29.180 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] is_on: status=ON - test=ON
2022-12-03 12:29:29.180 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] is_on: status=ON - test=ON
2022-12-03 12:29:29.180 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.light] is_on, kind: D03-05 - status: 100 - on: 100
2022-12-03 12:29:29.180 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.light] is_on, kind: D03-05 - status: 100 - on: 100
2022-12-03 12:29:29.181 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Timer cancelled: ('RESET',)
2022-12-03 12:29:29.181 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s.
2022-12-03 12:29:30.317 DEBUG (MainThread) [coap] Incoming message <aiocoap.Message at 0x7febe3941930: Type.NON 2.05 Content (MID 29, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 3 option(s), 1704 byte(s) payload>
2022-12-03 12:29:30.317 DEBUG (MainThread) [coap] Received Response: <aiocoap.Message at 0x7febe3941930: Type.NON 2.05 Content (MID 29, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 3 option(s), 1704 byte(s) payload>
2022-12-03 12:29:30.317 DEBUG (MainThread) [coap] Response <aiocoap.Message at 0x7febe3941930: Type.NON 2.05 Content (MID 29, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 3 option(s), 1704 byte(s) payload> matched to request <PlumbingRequest at 0x7febd91d22c0 around <aiocoap.Message at 0x7febe8e5b400: Type.NON GET (MID 56039, token f7c4) remote <UDP6EndpointAddress 192.168.200.102 (locally 192.168.200.5%enp0s18)>, 2 option(s)> with 2 callbacks>
2022-12-03 12:29:30.318 DEBUG (MainThread) [coap.blockwise-requester] Notification received
2022-12-03 12:29:30.318 DEBUG (MainThread) [coap.blockwise-requester] Reporting completed notification
2022-12-03 12:29:30.319 DEBUG (MainThread) [aioairctrl.coap.client] observation status: {"state":{"reported":{"D01-02":"Purifier product","D01-03":"CALIDAD AIRE SALÓN","D01-04":"Nala","D01-05":"AC1715/11","D01-07":"English","D01-08":2,"D01-09":1,"D01-10":0,"D01-11":0,"D01-20":"0.0.1","D01-21":"0.6.0","MCUBoot":true,"Runtime":68262,"rssi":-40,"otacheck":false,"wifilog":false,"free_memory":57896,"WifiVersion":"AWS_Philips_AIR@73.1","ProductId":"32d3e652179d11ec99f70217247a73aa","DeviceId":"29378ecee0f011ec9c95960e905418ad","StatusType":"status","ConnectType":"Online","D03-02":"ON","D03-03":false,"D03-04":100,"D03-05":100,"D03-11":"A","D03-12":"Auto General","D03-13":"3","D03-32":12,"D03-33":272,"D03-42":"PM2.5","D03-43":"PM2.5","D03-44":4,"aqit_ext":0,"D03-64":49153,"D05-02":"A3","D05-03":"none","D05-07":720,"D05-08":4800,"D05-09":0,"D05-13":0,"D05-14":3321,"D05-15":0},"desired":null}}
2022-12-03 12:29:30.319 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] Status update: {'D01-02': 'Purifier product', 'D01-03': 'CALIDAD AIRE SALÓN', 'D01-04': 'Nala', 'D01-05': 'AC1715/11', 'D01-07': 'English', 'D01-08': 2, 'D01-09': 1, 'D01-10': 0, 'D01-11': 0, 'D01-20': '0.0.1', 'D01-21': '0.6.0', 'MCUBoot': True, 'Runtime': 68262, 'rssi': -40, 'otacheck': False, 'wifilog': False, 'free_memory': 57896, 'WifiVersion': 'AWS_Philips_AIR@73.1', 'ProductId': '32d3e652179d11ec99f70217247a73aa', 'DeviceId': '29378ecee0f011ec9c95960e905418ad', 'StatusType': 'status', 'ConnectType': 'Online', 'D03-02': 'ON', 'D03-03': False, 'D03-04': 100, 'D03-05': 100, 'D03-11': 'A', 'D03-12': 'Auto General', 'D03-13': '3', 'D03-32': 12, 'D03-33': 272, 'D03-42': 'PM2.5', 'D03-43': 'PM2.5', 'D03-44': 4, 'aqit_ext': 0, 'D03-64': 49153, 'D05-02': 'A3', 'D05-03': 'none', 'D05-07': 720, 'D05-08': 4800, 'D05-09': 0, 'D05-13': 0, 'D05-14': 3321, 'D05-15': 0}
2022-12-03 12:29:30.319 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] is_on: status=ON - test=ON
2022-12-03 12:29:30.319 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.philips] is_on: status=ON - test=ON
2022-12-03 12:29:30.320 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.light] is_on, kind: D03-05 - status: 100 - on: 100
2022-12-03 12:29:30.320 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.light] is_on, kind: D03-05 - status: 100 - on: 100
2022-12-03 12:29:30.320 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Timer cancelled: ('RESET',)
2022-12-03 12:29:30.320 DEBUG (MainThread) [custom_components.philips_airpurifier_coap.timer] Starting Timer 180s.
Detalles de registro (ERROR)
Logger: homeassistant.components.sensor
Source: custom_components/philips_airpurifier_coap/sensor.py:136
Integration: Sensor ([documentation](https://www.home-assistant.io/integrations/sensor), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+sensor%22))
First occurred: 12:28:58 (1 occurrences)
Last logged: 12:28:58

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 281, in _async_setup_platform
    await asyncio.shield(task)
  File "/config/custom_components/philips_airpurifier_coap/sensor.py", line 75, in async_setup_entry
    sensors.append(PhilipsFilterSensor(coordinator, name, model, filter))
  File "/config/custom_components/philips_airpurifier_coap/sensor.py", line 136, in __init__
    self._type_key = self._description[ATTR_TYPE]
KeyError: 'type'
kongo09 commented 1 year ago

Thank you, that was very helpful. I found a bug thanks to your logs. Please try v0.11.0-beta1715.8 and also let me know what attributes you can see on the sensors.

Jaguaza commented 1 year ago

All installed and Home Assistant detects it automatically.

My filter is dirty, specifically for you to have that value. Tell me when you want me to clean it.

Captura de pantalla 2022-12-03 114230