Skip to content

Commit

Permalink
mDNS discovery: Additional air humidifier model (zhimi-humidifier-ca1…
Browse files Browse the repository at this point in the history
…) added (#200)
  • Loading branch information
syssi authored Feb 1, 2018
1 parent 93b8e0f commit 4c43f51
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions miio/airhumidifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ def __init__(self, data: Dict[str, Any]) -> None:
{'power': 'off', 'mode': 'high', 'temp_dec': 294,
'humidity': 33, 'buzzer': 'on', 'led_b': 0,
'child_lock': 'on', 'limit_hum': 40, 'trans_level': 85}
TODO: Features of the Air Humidifier Ca (zhimi.humidifier.ca1):
- Same properties: power, mode, temp_dec, humidity,
buzzer, led_b, child_lock, limit_hum
- Additional properties: speed, depth, dry, hw_version,
use_time, button_pressed
- Operation modes: auto, high, medium, silent
- Additional setters: set_dry on/off
"""

self.data = data
Expand Down
1 change: 1 addition & 0 deletions miio/discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"zhimi-airpurifier-v6": AirPurifier, # v6
"chuangmi-ir-v2": ChuangmiIr,
"zhimi-humidifier-v1": AirHumidifier,
"zhimi-humidifier-ca1": AirHumidifier,
"yunmi-waterpuri-v2": WaterPurifier,
# It looks like philips devices cannot be discovered via mdns
"philips-light-bulb": PhilipsBulb,
Expand Down

0 comments on commit 4c43f51

Please sign in to comment.