Mi Smart Pedestal Fan

ok,

so what else did you want to know?

Take a look at the platform services: https://github.com/syssi/xiaomi_fan#platform-services

Please test:

  • fan.oscillate {"oscillating":true} / {"oscillating":false}
    It’s possible the turning on doesn’t work because the oscillation angle is unknown. The Mi Home app turns the oscillation on by set_angle(30) f.e. and only uses the method above to disable the oscillation.
  • fan.set_direction {"direction":"left"} / {"direction":"right"}
    Does the fan move left/right? It’s required to turn of the oscillation beforehand? Does the service work fine if oscillation is enabled?
  • fan.xiaomi_miio_set_oscillation_angle {"angle": 30} / {"angle": 60} / {"angle": 90} / {"angle": 120}
    What happens if you use other values like: {“angle”: 0}, {“angle”: 1}, {“angle”: 15} and {“angle”: 130}? Please provide the homeassistant.log.
  • fan.xiaomi_miio_set_natural_mode_on / fan.xiaomi_miio_set_natural_mode_off
    Does this service work fine? Please check the “natural_speed” attribute. Is the values stable or does it change over time (+/- a few values)
  • fan.xiaomi_miio_set_led_brightness {"brightness": 0} / {"brightness": 1} / {"brightness": 2}
    Are you able to control the led brightness?
  • fan.set_speed {speed: 0} / {speed: 1} / {speed: 10} / {speed: 100} / {speed: 110}
    Next to “Level 1…4” it should also be possible to provide an integer (0…100). What happens if you set the speed to a value of “0”? Does the device turn off? What’s the response of the device for values like 0, 1, 10, 100, 110?

@jimpower Ping? :wink:

Sorry I have been away for work for a few days might be able to help again tomorrow.

2 Likes

Did you guys manage to advance on this? Got a fan in the mail. Will be happy to help once it reaches me…

I would like to complete this component but I’m stuck without support.

@syssi I’m happy to help test. I have the same Xiaomi Smart-Fan (previously working via HomeBridge) and am in the process of transitioning to Home Assistant on a Raspberry Pi 3 (Model B).

1 Like

Total newbie here to Hass.IO though, so bare with me! Tried to enable following the GitHub directions linked above, but get the following error:

starting version 3.2.4
Testing configuration at /config
Failed config
  General Errors: 
    - Platform not found: fan.xiaomi_miio_fan
Successful config (partial)

Is there a way I can test my Token Key? I had saved (and working) from my Homebridge installation, but it might have changed? (Unsure how they work).

The fan isn’t officially supported by HA. You’ve to download/use this custom component:

https://developers.home-assistant.io/docs/en/creating_component_loading.html

Okay great, thank you! I have it working now (with a new token), and it’s responding as expected within HA.

Some observations:

  • No ability to move the fan head left/right, as you can natively in the MiHome App
  • Speed controls work in 4-steps. Possible to make this % based? Using Homebridge you could control the fan from 0-100% speed which was very useful
  • Temperature/Humidity readings appear to be working
  • Cannot control the oscillate angle (ie; only oscillate 60°, or 90°, etc)

What would you like me to test? :slight_smile: Next step for me is to see how it translates using HA’s built-in Homebridge now, so I can add as a HomeKit accessory via my iPhone.

Are you aware of the services in Home Assistant? There are some feature which are controllable by some services and aren’t visible at the UI. The services are mentioned here:

The set_speed service accepts individual fan speeds f.e.

Could you answer these bunch of questions: Mi Smart Pedestal Fan

@jimpower I am thinking about buying this fan myself. Do you have any information on its standby power consumption. This site (https://www.techreviewer.de/xiaomi-standventilator-test/) is reporting 8,76 watts in standby mode. Can you confirm this?

To be honest I’m not sure, I have this fan plugged into a smart power strip and have that strip turned off during the day it is only powered for 2 hours overnight to charge the fan vaccum and mop. The fan has a battery which I have run for over 2 hours without it running out.

That is what I would do as well. But if you turn off the socket, it is still draining the battery isn`t it? That is why I am concerned about the standby power consumption.

Any change you could measure the standby power consumption?

Certainly I’ll set it up over the weekend and let you know.

If the device is on mains power in standby it stays connected to wifi and if on battery it turns off wifi this may save on standby power consumed. I’ll test for 24hours on both for you.

I’ve fixed this issue.

I keep getting this error…

2018-06-05 22:59:58 ERROR (SyncWorker_9) [miio.fan] Count (17) of requested properties does not match the count (16) of received values.
2018-06-05 23:00:29 ERROR (SyncWorker_19) [miio.fan] Count (17) of requested properties does not match the count (16) of received values.
2018-06-05 23:01:00 ERROR (SyncWorker_6) [miio.fan] Count (17) of requested properties does not match the count (16) of received values.
2018-06-05 23:01:31 ERROR (SyncWorker_0) [miio.fan] Count (17) of requested properties does not match the count (16) of received values.
2018-06-05 23:02:02 ERROR (SyncWorker_13) [miio.fan] Count (17) of requested properties does not match the count (16) of received values.
2018-06-05 23:02:33 ERROR (SyncWorker_19) [miio.fan] Count (17) of requested properties does not match the count (16) of received values.
2018-06-05 23:03:04 ERROR (SyncWorker_18) [miio.fan] Count (17) of requested properties does not match the count (16) of received values.

Did you have a chance to check the power consumption? I an eager to get some insights on this.

I did but my data is corrupted as it was also monitoring the vacuum and mop. I have unplugged everything and just the fan is connected to the gpo so I can monitor its standby plugged in. I’m not sure how I can monitor power consumption on battery in standby as the wifi turns off and I lose connection.