kongo09/philips-airpurifier-coap

Add support for fan mode "Allergy Sleep"

Opened this issue · 9 comments

Hey,

the integration is working good so far. Sometimes it's not connecting at the first try on HA restart. But normally a reload of the integration helps.

Just one feature request:
I own the Air Purifier 4000i (AC4236/10). This purifier has 6 fan modes, 4 day modes and 2 night modes:

  1. Auto
  2. Speed 1
  3. Speed 2
  4. Turbo
  5. Sleep
  6. Allergy Sleep

5 of this modes are supported by this integration, but the "Allergy Sleep" mode is missing. When I'm choosing that mode in the Android App, the HA integration displays "null" in the mode attribute.

Would appreciate the support very much! Thanks a lot!

BR

Can you share the status data?

EDIT: I've read the readme of the Repo and found the thing about the status data. I've installed python on my computer and tried to follow the readme, but I've two issues:

  1. The command to create the virtual environment is not working, because it is two lines. Do I have to run them in single line? Or how does it work? "source" is not a known command (if in two commands)
  2. "aioairctrl" is not known after the installation of the package.

No, the data for the missing mode as reported by aioairctrl

it worked now, had to use the full path, since aioairctrl was not part of the environment variables.

The status data is:

{"name": "Schlafzimmer", "type": "AC4236", "modelid": "AC4236/14", "swversion": "Ms4418", "language": "EN", "DeviceVersion": "4.1.8", "range": "MarteHE", "Runtime": 70855823, "rssi": -53, "otacheck": false, "wifilog": false, "free_memory": 46784, "WifiVersion": "AWS_Philips_AIR@75.3", "ProductId": "", "DeviceId": "", "StatusType": "status", "ConnectType": "Online", "om": "as", "pwr": "1", "cl": false, "aqil": 0, "uil": "0", "uaset": "A", "mode": "AS", "pm25": 17, "iaql": 4, "aqit": 7, "aqit_ext": 0, "tvoc": 1, "ddp": "0", "rddp": "0", "err": 0, "D0311F": 0, "D03180": 0, "D03R81": "000000000", "D03182": 1, "fltt1": "A3", "fltt2": "none", "fltsts0": 680, "fltsts1": 4800, "fltsts2": 65535, "filna": "0", "filid": "0", "flttotal0": 720, "flttotal1": 4800, "flttotal2": 65535}

Thanks. Update is in version v0.18.4

muuuh commented

I have problems setting the fan to this mode with an automation.

      action:
        - service: fan.set_preset_mode
          target:
            entity_id: fan.ac4236
          data:
            preset_mode: "allergy sleep"

Would preset_mode have to be set to

?

allergy_sleep should work

muuuh commented

I'm not sure, but I get the error message "Preset mode allergy_sleep is not valid, valid preset modes are: auto, sleep, allergy sleep, speed 1, speed 2, turbo".

I don't get an error for "allergy sleep", but I don't see this setting in the web interface. So I'm not sure about the result.

Ok, something is clearly wrong here. I'll take a fresh look.