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

Missing modes and changes on AC4558/50 #64

Open
ghost opened this issue Oct 11, 2020 · 8 comments
Open

Missing modes and changes on AC4558/50 #64

ghost opened this issue Oct 11, 2020 · 8 comments

Comments

@ghost
Copy link

ghost commented Oct 11, 2020

I have an AC4558/50, and I have noticed that certain features are not working or have changed.

  1. The "Silent" mode is called "Sleep" mode on this device.
  2. Lights on/off doesn't work. The output:
    Lights on: ('aqil', '1'),('uil', '1')
    Lights off: ('aqil', '0'),('uil', '0')
  3. Modes are missing/not matching:
    General mode: ('mode', 'AG')
    Pollution Mode: ('mode', 'P')
    Gas mode: ('mode', 'F')
    Allergen mode: ('mode', 'A')

Would it be possible to get a fix based on this?

@rgerganov
Copy link
Owner

rgerganov commented Oct 22, 2020

Sorry for the late response.

  1. We already have Sleep mode: airctrl --mode S

  2. I am not sure I understand your second point. Do you mean that aqil and uil on your device can be only 0 and 1? Right now the uil argument is already 0 or 1 and the aqil can be 0,25,50,75,100.

  3. I can add 'AG' and 'F' modes. We already have 'P' and 'A'. It looks like every device use a different name for them and I don't want to keep a mapping between device model and human readable name. You can simply use the letters.

rgerganov added a commit that referenced this issue Nov 24, 2020
@gilbertc
Copy link

Not OP, but when my AC4558 has the lights on, airctrl shows these:

[aqil]                        Light brightness: 1
[uil]                         Buttons light: ON

I am not able to turn the light off with --aqil 0 or --uil 0 or --aqil 0 --uil 0.

@rgerganov
Copy link
Owner

What values do you get when the lights are switched off?

@gilbertc
Copy link

When the lights is off:

[aqil]                        Light brightness: 0
[uil]                         Buttons light: OFF

@gilbertc
Copy link

Please note that I am able to turn lights on with the --aqil command, but not turning them off.

@rgerganov
Copy link
Owner

Weird. The values are still 0 but we cannot set them. You can try sniffing the official app and see what command it sends when turning off the lights but it is tricky ...

@gilbertc
Copy link

I will see what I can do..

@gilbertc
Copy link

gilbertc commented Dec 24, 2020

After some testing, the light on my AC4558 turns off if I send an empty string value for aqil. But since I can't test with other models, I am posting the diff instead of PR:

--- a/pyairctrl/airctrl.py
+++ b/pyairctrl/airctrl.py
@@ -472,7 +472,7 @@ def main():
         if args.func:
             values["func"] = args.func
         if args.aqil:
-            values["aqil"] = int(args.aqil)
+            values["aqil"] = "" if args.aqil == "0" else "1"
         if args.ddp:
             values["ddp"] = args.ddp
         if args.uil:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants