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 miiocli support for the Air Humidifier CA1 #391

Merged
merged 1 commit into from
Oct 8, 2018

Conversation

syssi
Copy link
Collaborator

@syssi syssi commented Oct 8, 2018

No description provided.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.005%) to 73.159% when pulling 4104df6 on syssi:feature/airhumidifier-ca1-cli into 8012ec7 on rytilahti:master.

@syssi
Copy link
Collaborator Author

syssi commented Oct 8, 2018

@SmaginPV Please install the branch just for testing. It introduces a special miiocli device called "airhumidifierca1". What's the output of:

miiocli -d airhumidifierca1 --ip 192.168.1.116 --token 8d503f8fe4cd0486ea235bda3d6d72bb status

@pieonboard
Copy link

Works.

miiocli airhumidifierca1 --ip 192.168.1.116 --token 8d503f8fe4cd0486ea235bda3d6d72bb status
Power: off
Mode: OperationMode.Silent
Temperature: 23.9 °C
Humidity: 42 %
LED brightness: LedBrightness.Off
Buzzer: False
Child lock: False
Target humidity: 70 %
Trans level: None
Speed: 0
Depth: 43
Dry: True
Use time: 121210
Hardware version: 0001
Button pressed: None

@syssi
Copy link
Collaborator Author

syssi commented Oct 8, 2018

Perfect!

@syssi syssi merged commit e4f6bbb into rytilahti:master Oct 8, 2018
@pieonboard
Copy link

Thanks! Looking forward to try this in home-assistant.

@syssi
Copy link
Collaborator Author

syssi commented Oct 8, 2018

The HA component needs to be updated slightly:

https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/fan/xiaomi_miio.py#L351

-        air_humidifier = AirHumidifier(host, token)
+        air_humidifier = AirHumidifier(host, token, model=model)

@syssi
Copy link
Collaborator Author

syssi commented Oct 8, 2018

@pieonboard
Copy link

Thanks @syssi. I downloaded you version of Air Humidifier custom component for hass with latest changes. I see you bumped the version of python-miio package, but didn't actually cut off this release. May I ask you please to do that? Thanks in advance!

@syssi
Copy link
Collaborator Author

syssi commented Oct 9, 2018

The next release of python-miio will take a few days. Please be patient. :-)

@pieonboard
Copy link

Ok, thanks, @syssi. Looking forward ;-)

@pieonboard
Copy link

HI @syssi, Any chance to get the new release of python-miio this week?

@syssi
Copy link
Collaborator Author

syssi commented Oct 19, 2018

I've some spare time tomorrow. May be yes. ;-)

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

Successfully merging this pull request may close these issues.

3 participants