merdok / homebridge-miot

Homebridge plugin for devices supporting the Xiaomi miot protocol
MIT License
364 stars 62 forks source link

Support zhimi.humidifier.ca6 New Smartmi Evaporative Humidifier 3 #520

Closed DJay-X closed 10 months ago

DJay-X commented 10 months ago

Device model zhimi.humidifier.ca6

Device name Smartmi Evaporative Humidifier 3

Does the device require a MiCloud connection? Yes/No/Do not know Do not know.

Anything special about the device? It already works with the plugin but not sure if all features are supported. I think the upgraded device is like the Humidifier 2 from the controls. 🤷‍♂️

[8/29/2023, 7:52:00 AM] [miot] [Smartmi Evaporative Humidifier 3] Got device configuration, initializing device with name: Smartmi Evaporative Humidifier 3
[8/29/2023, 7:52:00 AM] [miot] [Smartmi Evaporative Humidifier 3] Model known: zhimi.humidifier.ca6!
[8/29/2023, 7:52:00 AM] [miot] [Smartmi Evaporative Humidifier 3] Initializing device!
[8/29/2023, 7:52:00 AM] [miot] [Smartmi Evaporative Humidifier 3] Using module class for device type Humidifier, indentified by miot spec! Not all features might work!
[8/29/2023, 7:52:00 AM] [miot] [Smartmi Evaporative Humidifier 3] Initializing device services
[8/29/2023, 7:52:00 AM] [miot] [Smartmi Evaporative Humidifier 3] Device services: [
  "humidifier",
  "environment",
  "alarm",
  "screen",
  "physical-controls-locked",
  "other"
]
[8/29/2023, 7:52:00 AM] [miot] [Smartmi Evaporative Humidifier 3] Initializing device properties
[8/29/2023, 7:52:00 AM] [miot] [Smartmi Evaporative Humidifier 3] Device properties: [
  "humidifier:on",
  "humidifier:fault",
  "humidifier:fan-level",
  "humidifier:target-humidity",
  "humidifier:water-level",
  "humidifier:automatic-air-drying",
  "humidifier:status",
  "environment:temperature",
  "environment:relative-humidity",
  "alarm:alarm",
  "screen:brightness",
  "physical-controls-locked:physical-controls-locked",
  "other:actual-speed",
  "other:country-code",
  "other:clean",
  "other:self-clean-percent",
  "other:pump-state",
  "other:pump-cnt"
]
[8/29/2023, 7:52:00 AM] [miot] [Smartmi Evaporative Humidifier 3] Initializing device actions
[8/29/2023, 7:52:00 AM] [miot] [Smartmi Evaporative Humidifier 3] Device actions: [
  "humidifier:toggle",
  "other:toggle-mode"
]
[8/29/2023, 7:52:00 AM] [miot] [Smartmi Evaporative Humidifier 3] Successfully created a Humidifier device! It is a Unknown humidifier device.
[8/29/2023, 7:52:00 AM] [miot] [Smartmi Evaporative Humidifier 3] Initializing accessory!
[8/29/2023, 7:52:00 AM] [miot] [Smartmi Evaporative Humidifier 3] Accessory successfully initialized!
[8/29/2023, 7:52:00 AM] [miot] [Smartmi Evaporative Humidifier 3] Registering 1 accessories!
[8/29/2023, 7:52:00 AM] [miot] [Smartmi Evaporative Humidifier 3] Everything looks good! Initiating property polling!
[8/29/2023, 7:52:00 AM] [miot] [Smartmi Evaporative Humidifier 3] Device found! Setting up miot device from local connection!
[8/29/2023, 7:52:00 AM] [miot] [Smartmi Evaporative Humidifier 3] Connected to device: zhimi.humidifier.ca6
[8/29/2023, 7:52:00 AM] [miot] [Smartmi Evaporative Humidifier 3] Doing initial property fetch.
merdok commented 10 months ago

Hi, looking at the spec there is nothing special about the device expect some unique features like automatic air drying. I would say if everything is working as expected then it should be fine and if you need the unique features then you can use the property control to expose that.

The automatic device detection is currently quite good and there is no need to include all the new devices in the supported list I think😅

DJay-X commented 10 months ago

Perfect. Thanks a lot @merdok