-
-
Notifications
You must be signed in to change notification settings - Fork 566
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
STYJ02YM - AttributeError: 'ViomiVacuumStatus' object has no attribute 'mop_type' #704
Comments
This will we fixed in the next release (#695). |
Thanks... but next thing is the mop_type :-(... after boy_type it seems that mop_type is also wrong or missing... Traceback (most recent call last): |
Ah, thanks for testing! The |
Thanks for your quick reply... next missing value is water_level ;-) Traceback (most recent call last): |
i removed water_level too and now status is working.... State: ViomiVacuumState.Docked Thanks and BR |
some other question... because iam too bad in python sorry :-). How can i receive e.g. just the state from the viomistatus object. e.g. the output of my small python script is just... my python script
|
Feel free to check out the PR (it should now display all information correctly, I hope). To your question about accessing the state, all the elements in VacuumStatus class are properties, so you can do the following:
|
thanks a lot... status output looks good... State: ViomiVacuumState.Docked |
Great, I think we can then merge it. Thanks for testing & reporting! |
Hi all,
it seems that miiocli viomivacuum --ip 192.168.X.X --token XXXX info is working...
Model: viomi.vacuum.v7
Hardware version: Linux
Firmware version: 3.5.3_0047
But i get the following error with the status command....
miiocli viomivacuum --ip 192.168.X.X --token XXXX status
Traceback (most recent call last):
File "/usr/local/bin/miiocli", line 8, in
sys.exit(create_cli())
File "/usr/local/lib/python3.7/dist-packages/miio/cli.py", line 44, in create_cli
return cli(auto_envvar_prefix="MIIO")
File "/usr/local/lib/python3.7/dist-packages/miio/click_common.py", line 59, in call
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/miio/click_common.py", line 285, in wrap
result_msg = result_msg_fmt.format(**kwargs)
AttributeError: 'ViomiVacuumStatus' object has no attribute 'box_type'
BR
The text was updated successfully, but these errors were encountered: