ok,
so what else did you want to know?
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}
fan.set_direction
{"direction":"left"}
/ {"direction":"right"}
fan.xiaomi_miio_set_oscillation_angle
{"angle": 30}
/ {"angle": 60}
/ {"angle": 90}
/ {"angle": 120}
fan.xiaomi_miio_set_natural_mode_on
/ fan.xiaomi_miio_set_natural_mode_off
fan.xiaomi_miio_set_led_brightness
{"brightness": 0}
/ {"brightness": 1}
/ {"brightness": 2}
fan.set_speed
{speed: 0}
/ {speed: 1}
/ {speed: 10}
/ {speed: 100}
/ {speed: 110}
Sorry I have been away for work for a few days might be able to help again tomorrow.
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).
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:
What would you like me to test? 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.
@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.