You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ 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
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)
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
The text was updated successfully, but these errors were encountered: