Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for fan mode "Allergy Sleep" #120

Open
Raptor05 opened this issue Feb 3, 2024 · 10 comments
Open

Add support for fan mode "Allergy Sleep" #120

Raptor05 opened this issue Feb 3, 2024 · 10 comments
Assignees
Labels
enhancement New feature or request Stale

Comments

@Raptor05
Copy link

Raptor05 commented Feb 3, 2024

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

@kongo09
Copy link
Owner

kongo09 commented Feb 3, 2024

Can you share the status data?

@kongo09 kongo09 added the enhancement New feature or request label Feb 3, 2024
@Raptor05
Copy link
Author

Raptor05 commented Feb 3, 2024

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.

@kongo09
Copy link
Owner

kongo09 commented Feb 3, 2024

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

@Raptor05
Copy link
Author

Raptor05 commented Feb 3, 2024

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": "[email protected]", "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}

@kongo09 kongo09 self-assigned this Feb 4, 2024
@kongo09
Copy link
Owner

kongo09 commented Feb 4, 2024

Thanks. Update is in version v0.18.4

@kongo09 kongo09 closed this as completed Feb 4, 2024
@muuuh
Copy link

muuuh commented Dec 14, 2024

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

?

@kongo09
Copy link
Owner

kongo09 commented Dec 14, 2024

allergy_sleep should work

@muuuh
Copy link

muuuh commented Dec 16, 2024

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.

@kongo09
Copy link
Owner

kongo09 commented Dec 16, 2024

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

@kongo09 kongo09 reopened this Dec 16, 2024
Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Feb 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Stale
Projects
None yet
Development

No branches or pull requests

3 participants