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

handle water-level properly #20

Closed betaboon closed 3 years ago

betaboon commented 3 years ago

when water runs out water-level reverts to 100 and an err is set.

betaboon commented 3 years ago

relevant comments from #4

this is working great. one minor thing: water_level is incorrect. it always shows me: 100, even when there's no more water. here's the output of aioairctrl --host IP status --json:

{"name": "Master Bedroom Air Purifier", "type": "AC2729", "modelid": "AC2729/10", "swversion": "0.2.1", "om": "0", "pwr": "0", "cl": false, "aqil": 100, "uil": "1", "dt": 0, "dtrs": 0, "mode": "P", "func": "PH", "rhset": 40, "rh": 40, "temp": 24, "pm25": 19, "iaql": 4, "aqit": 7, "ddp": "0", "rddp": "0", "err": 32768, "wl": 100, "fltt1": "A3", "fltt2": "C7", "fltsts0": 279, "fltsts1": 4719, "fltsts2": 4719, "wicksts": 4719, "range": "MicroMario", "Runtime": 119435075, "WifiVersion": "AWS_Philips_AIR@62.1", "ProductId": "redacted", "DeviceId": "redacted", "StatusType": "localcontrol", "ConnectType": "Localcontrol"}

It seems wl is always 100.