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

Air Humidifier #529

Closed
flocc opened this issue Jul 15, 2019 · 1 comment
Closed

Air Humidifier #529

flocc opened this issue Jul 15, 2019 · 1 comment
Assignees
Labels

Comments

@flocc
Copy link

flocc commented Jul 15, 2019

Hello, i have a problem here with Air humidifier:

from miio import airhumidifier
h = airhumidifier.AirHumidifierCA1("192.168.1.14", "********************************")
h.info
<bound method Device.info of <miio.airhumidifier.AirHumidifierCA1 object at 0x7f6eed382668>>
h.info()
zhimi.humidifier.ca1 v1.6.6 (04:CF:8C:87:11:5F) @ 192.168.1.14 - token: ********************************
h.status()
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python3.5/dist-packages/miio/airhumidifier.py", line 232, in repr
self.strong_mode_enabled,
File "/usr/local/lib/python3.5/dist-packages/miio/airhumidifier.py", line 132, in strong_mode_enabled
if self.firmware_version_minor == 25:
File "/usr/local/lib/python3.5/dist-packages/miio/airhumidifier.py", line 153, in firmware_version_minor
, minor = self.firmware_version.rsplit('', 1)
ValueError: not enough values to unpack (expected 2, got 1)

=====
while miiocli works good.

@rytilahti rytilahti added the bug label Jul 18, 2019
@syssi
Copy link
Collaborator

syssi commented Oct 5, 2019

This is a bug. We are expecting a firmware version like this (format): 1.2.9_5033.
Your firmware version is 1.6.6 and there is no underscore to remove.

@syssi syssi self-assigned this Oct 5, 2019
syssi added a commit to syssi/python-miio that referenced this issue Oct 6, 2019
@syssi syssi closed this as completed in d4354e3 Oct 6, 2019
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

3 participants