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

Cannot get status from my zhimi.airpurifier.mb3(Airpurifier 3H) #1037

Closed
rogerbl opened this issue May 6, 2021 · 3 comments
Closed

Cannot get status from my zhimi.airpurifier.mb3(Airpurifier 3H) #1037

rogerbl opened this issue May 6, 2021 · 3 comments
Labels

Comments

@rogerbl
Copy link

rogerbl commented May 6, 2021

When I issue the command to get info from the airpurifier it works, but when I want to get the status the following error msg comes:
Error: {'code': -5001, 'message': 'command error'}
This is the command I issued to get the status:
miiocli airpurifier --ip 192.168.100.191 --token xxxxxxxxxxxxxxxxxx status
and the info request which works:
miiocli airpurifier --ip 192.168.100.191 --token xxxxxxxxxxxxxxxxxx info
I get the same error as above when I try to connect in a python script.
with AirPurifier(ip,token,0,0)
What can be wrong?
I 've got another older 2s airpurifier which works fine with these commands.
I use python 3.8 on windows 10 and Ubuntu 20 Same error on both.
Model: zhimi.airpurifier.mb3
Hardware version: esp32
Firmware version: 2.0.7

Name: python-miio
Version: 0.5.0.1
Summary: Python library for interfacing with Xiaomi smart appliances
Home-page: https://github.com/rytilahti/python-miio
Author: Teemu Rytilahti
Author-email: tpr@iki.fi

Version information (please complete the following information):

  • OS: [e.g.Linux]
  • python-miio: [Use miiocli --version or pip show python-miio]

Device information:
If the issue is specific to a device [Use miiocli device --ip <ip address> --token <token> info]:

  • Model:
  • Hardware version:
  • Firmware version:

To Reproduce
Steps to reproduce the behavior:
1.

Expected behavior
A clear and concise description of what you expected to happen.

Console output
If applicable, add console output to help explain your problem.
If the issue is about communication with a specific device, consider including the output using the --debug flag.

@rogerbl rogerbl added the bug label May 6, 2021
@rytilahti
Copy link
Owner

You have to use miiocli airpurifiermiot for this device, #1030 is a similar problem (different module, but same idea).

@rogerbl
Copy link
Author

rogerbl commented May 6, 2021 via email

@rytilahti rytilahti added support and removed bug labels May 9, 2021
@rytilahti
Copy link
Owner

I assume it worked, so I'm closing this now :-)

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

No branches or pull requests

2 participants