betaboon / philips-airpurifier-coap

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

No water_level in Attributes for AC3829/50 model #53

Open allmoney opened 3 years ago

allmoney commented 3 years ago

I have AC3829 and AC2729 models.

AC2729/50 has water_level: image

AC3829/50 not: image

Can you fix it?

tebra-jl commented 3 years ago

Same problem at my side. Water level attribute stays at 100 all the time. model_id: AC2729/10 software_version: 0.2.1 wifi_version: AWS_Philips_AIR@62.1 Philips AirPurifier (with CoAP) HACS: 0.7.0

allmoney commented 3 years ago

Same problem at my side. Water level attribute stays at 100 all the time. model_id: AC2729/10 software_version: 0.2.1 wifi_version: AWS_Philips_AIR@62.1 Philips AirPurifier (with CoAP) HACS: 0.7.0

I tested models AC2729/50 - it has only 2 values: 0 and 100. I think it's not a bug. The bug only that in AC3829/50 no attribute water_level (as I described in 1st message).

tebra-jl commented 3 years ago

Same problem at my side. Water level attribute stays at 100 all the time. model_id: AC2729/10 software_version: 0.2.1 wifi_version: AWS_Philips_AIR@62.1 Philips AirPurifier (with CoAP) HACS: 0.7.0

I tested models AC2729/50 - it has only 2 values: 0 and 100. I think it's not a bug. The bug only that in AC3829/50 no attribute water_level (as I described in 1st message).

Maybe it is a different issue but with AC2729/10 water_level stay at 100 even when the tank is empty.

kongo09 commented 2 years ago

As @betaboon is not active on the air purifier anymore, I've done a rewrite here: I've fixed this in my rewrite: https://github.com/kongo09/philips-airpurifier-coap

The new code looks at the response of the device and shows the water level as a sensor if the data field is part of the response. I have a 2729 myself and it shows 0 right now as the tank is empty. I feel, this is working. For AC3829 the sensor should be present, provided there is data in the response. Please try and let me know.

tebra-jl commented 2 years ago

@kongo09 Thanks, I will try your new version of this integration and let you know.