merdok / homebridge-miot

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

Support for Aqara Smart Clothes Drying Rack Lite #413

Closed matt1aw closed 1 year ago

matt1aw commented 1 year ago

developer_1589162994439uQ5j1kyZ Device model lumi.airer.acn02

Device name Aqara Smart Clothes Drying Rack Lite (Aqara智能晾衣机Lite)

Does the device require a MiCloud connection? No

Anything special about the device?

Homebridge Log

[05/01/2023, 12:40:46] [miot] [晾衫架] Got device configuration, initializing device with name: 晾衫架
[05/01/2023, 12:40:46] [miot] [晾衫架] Model known: lumi.airer.acn02!
[05/01/2023, 12:40:46] [miot] [晾衫架] Initializing device!
[05/01/2023, 12:40:46] [miot] [晾衫架] Fetching device miot spec by model: lumi.airer.acn02
[05/01/2023, 12:40:48] [miot] [晾衫架] Successfully got device miot spec!
[05/01/2023, 12:40:48] [miot] [晾衫架] Spec device type: airer description: Airer
[05/01/2023, 12:40:48] [miot] [晾衫架] Using module class for device type Airer, indentified by miot spec! Not all features might work!
[05/01/2023, 12:40:48] [miot] [晾衫架] Initializing device services
[05/01/2023, 12:40:48] [miot] [晾衫架] Device services: [
  "airer",
  "light",
  "airer-user",
  "remote-button",
  "device-protect",
  "light-control"
]
[05/01/2023, 12:40:48] [miot] [晾衫架] Initializing device properties
[05/01/2023, 12:40:48] [miot] [晾衫架] Device properties: [
  "airer:fault",
  "airer:motor-control",
  "airer:status",
  "airer:current-position",
  "airer:target-position",
  "light:on",
  "airer-user:pos-limit-cfg",
  "airer-user:pos-limit",
  "airer-user:mute-mode",
  "airer-user:tracer-mode",
  "airer-user:tracer-mode-cfg",
  "airer-user:run-time",
  "remote-button:remote-button-click",
  "remote-button:f-one-wireless",
  "remote-button:f-two-wireless",
  "remote-button:f-three-wireless",
  "remote-button:f-four-wireless",
  "remote-button:f-one-position",
  "remote-button:f-two-position",
  "remote-button:f-three-position",
  "remote-button:f-four-position",
  "light-control:light-control"
]
[05/01/2023, 12:40:48] [miot] [晾衫架] Initializing device actions
[05/01/2023, 12:40:48] [miot] [晾衫架] Successfully created a Airer device! It is a Unknown airer device.
[05/01/2023, 12:40:48] [miot] [晾衫架] Initializing accessory!
[05/01/2023, 12:40:48] [miot] [晾衫架] Accessory successfully initialized!
[05/01/2023, 12:40:48] [miot] [晾衫架] Registering 1 accessories!
[05/01/2023, 12:40:48] [miot] [晾衫架] Everything looks good! Initiating property polling!
[05/01/2023, 12:55:58] [miot] [晾衫架] Device found! Setting up miot device from local connection!
[05/01/2023, 12:55:58] [miot] [晾衫架] Connected to device: lumi.airer.acn02
[05/01/2023, 12:55:58] [miot] [晾衫架] Doing initial property fetch.
[05/01/2023, 12:55:59] [miot] [晾衫架] Starting property polling.
merdok commented 1 year ago

Hi, can you tell me what exactly the problem is? From the log it seems that your device was correctly detected and it should work. It might be that your device requires a micloud connection, for that you would need to specify your micloud credentials in the config and set the forceMiCloud property to true.

matt1aw commented 1 year ago

Thank you for your prompt reply! I reported this because the log claimed that the lumi.airer.acn02 is a Unknown airer device. And I would like to know will there be any other support for this "Unknown" device. :)

Besides, are there any ways to make the airer behave like a window blind/cover?? So as to set its up-down position (by setting the opening percentage) in the Home App.

merdok commented 1 year ago

Unknown airer device only means that the plugin does not know the device name, which is usually specified in the dedicated device class. But the device was correctly discovered as an airer as it should.

No, the airer devices are displayed as a single switch (for light on/off) + dedicated buttons to move the airer into the desired position.

matt1aw commented 1 year ago

@merdok I noticed that in Version 1.5.1 Added support for hlumi.airer.acn02 (Aqara Smart Clothes Drying Rack Lite) airer. However, I think there might be a typo in the model number. Should it be lumi.airer.acn02 instead?

merdok commented 1 year ago

Yeah you are right, it is a typo but just in the text so it should not affect anything! Thanks for the info!