Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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