jghaanstra / com.xiaomi-miio

Homey app to control Mi Home devices that implement the miIO protocol and Xiaomi gateway child devices
GNU General Public License v3.0
455 stars 84 forks source link

Support for Xiaomi Smart Evaporative Cooling Fan #274

Open tronstone opened 3 weeks ago

tronstone commented 3 weeks ago

Hello, once again I would like to thank the developer for such a tremendous amount of work done to integrate Mi devices. I would like to request the addition of a new device.

Device details

Donation

I enjoy creating apps for Homey and try to support them as best as I can. If you enjoy using my apps a donation in return for the time I put into this is much appreciated.

tronstone commented 3 weeks ago

@jghaanstra do you need the device for this? I can provide access for you

jghaanstra commented 3 weeks ago

No, it will be added with the next release.

jghaanstra commented 2 weeks ago

Add with 3.2.26 which is currently pending approval. Please test by installing the test version or wait until it's approved.

https://homey.app/a/com.xiaomi-miio/test/

tronstone commented 2 weeks ago

Thanks, friend for the quick reponse on your part!

@jghaanstra I've already added my device and tested it, met a lot of bugs.

Tried to add in different ways, only the Advanced Mi Smart Standing Fan MIoT (WiFi) connection option works.

From the bugs:

P.s If you want to debug problems I can provide access for you or we can make a call in google meet

jghaanstra commented 2 weeks ago

Please send a diagnostic report from the app settings.

tronstone commented 2 weeks ago

@jghaanstra 4ce6d06c-8288-40ac-b014-b1daf636e6fb

jghaanstra commented 2 weeks ago

The log you send me is useless. Please remove the device, restart the app (or Homey), pair the device with the Advanced Mi Smart Standing Fan MIoT (WiFi) driver. Wait 2 minutes. Toggle it on and off, wait two minutes and then send the log again.

I'll fix the error with error: invalid enum capability (fan_dmaker_mode) value: 3. Expected: 0,1 with the next release. That will prevent the device from going offline. I dont know why the wind strength shows as percentage, perhaps the documentation is wrong. You mention other functions not working at all, please be specific.

tronstone commented 2 weeks ago

New log: aad5dad5-e547-4960-ad6f-99651376b404

Functions supported by my fan:

  1. Turn on/off
  2. Wind strength - 4 levels
  3. Modes - Direct, Natural, Sleep, Cool
  4. Automatic horizontal oscillation on/off
  5. Advanced options

Functions that not working:

  1. Not working
  2. 100% and 400%, not levels
  3. Only two modes, I can't check it due to error
  4. I've seen angles to customize the rotation, but they don't work
jghaanstra commented 2 weeks ago
  1. Will be fixed with the next release as mentioned
  2. Dont know why these show as a percentage, as mentioned my best guess is the documentation is wrong. I cant fix that.
  3. Will be fixed with the next release as mentioned, this is the same problem as # 1.
  4. There is a on/off switch for oscillation available under the device which should work when # 1 is fixed (it probably already works but cant be tested due to the device going offline)