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 hanyi.airpurifier.kj550 support #147

Open
xtg05 opened this issue Feb 10, 2021 · 1 comment
Open

Add hanyi.airpurifier.kj550 support #147

xtg05 opened this issue Feb 10, 2021 · 1 comment

Comments

@xtg05
Copy link

xtg05 commented Feb 10, 2021

Can you please add support for hanyi.airpurifier.kj550?

Some information are as follows:

$ miiocli device --ip 192.168.0.209 --token 2b85fe9dca90e77db660a1c23d7bec3f info
Model: hanyi.airpurifier.kj550
Hardware version: MXCHIP.MX1290
Firmware version: 2.0.2_0012

$ miiocli device --ip 192.168.0.209 --token 2b85fe9dca90e77db660a1c23d7bec3f raw_command get_prop'["all"]'
Running command raw_command
[]
Error: {'code': -9999, 'message': 'user ack timeout'}

$ miiocli airpurifier --ip 192.168.0.209 --token 2b85fe9dca90e77db660a1c23d7bec3f status
ValueError: None is not a valid OperationMode

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/bin/miiocli", line 8, in
sys.exit(create_cli())
File "/home/xtg05/.local/lib/python3.8/site-packages/miio/cli.py", line 45, in create_cli
return cli(auto_envvar_prefix="MIIO")
File "/home/xtg05/.local/lib/python3.8/site-packages/miio/click_common.py", line 59, in call
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/xtg05/.local/lib/python3.8/site-packages/miio/click_common.py", line 285, in wrap
result_msg = result_msg_fmt.format(**kwargs)
File "/home/xtg05/.local/lib/python3.8/site-packages/miio/airpurifier.py", line 130, in mode
return OperationMode(self.data["mode"])
File "/usr/lib/python3.8/enum.py", line 309, in call
return cls.new(cls, value)
File "/usr/lib/python3.8/enum.py", line 600, in new
raise exc
File "/usr/lib/python3.8/enum.py", line 584, in new
result = cls.missing(value)
File "/usr/lib/python3.8/enum.py", line 613, in missing
raise ValueError("%r is not a valid %s" % (value, cls.name))
ValueError: None is not a valid OperationMode

Name
MiWhole MIX Air Purifier

Model
hanyi.airpurifier.kj550

Model no.
KJ550F-PHY01

Specs
66㎡, 550m³/h CADR, 35~64dB(A), 50W (max) 29X29X57

MiWhole MIX Air Purifier (hanyi.airpurifier.kj550)

Features (as is in Mi Home App)

  • switch (on, off)
  • mode (auto, Manual, Sleep)
  • Wind speed (0...100%)
  • Child lock (on, off)
  • Negative ion (on, off)
  • light (Close, Bright, Dark)
  • Advanced timing --> Schedule list
  • timer (01...24)
  • Filter reset (Cancel, Confirm)

Attributes
= Room temperature [C]
= Indoor humidity [%]
= PM2.5 [ug/m3]
= Filter life [hour]
= Indoor air quality [excellent/...]

https://www.qoo10.com/item/MIX-AIR-PURIFIER-MIX-WHITE/673576945
https://www.aliexpress.com/item/4000833900739.html

937aceebc396

@yoon1st
Copy link

yoon1st commented Jun 8, 2022

Sir, hows it going??
I have a hanyi.airpurifier.kj550 too!

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

No branches or pull requests

3 participants