Hi, it seems new Home Assistant version of the month has broken the custom component because they made breaking changes on Xiaomi Miio integration by migrating it to th UI. My fans 1C worked before and right after the update they works no more.
Hi, the same for me. Until few days ago everything works fine but now, if I try to use the xiaomi_miio_fan platform my 1C is unavailable for Home Assistant. To make it work again(more or less) I use the Xiaomi Mi Air Purifier & Xiaomi Mi Air Humidifier component with model: dmaker.fan.p9 (the other models doesn’t work). Anyway, by doing this I can only start and stop the fan but at least I can control it from HA.
I hope this workaround could be useful.
platform: xiaomi_miio_airpurifier
name: Smart Fan 1C
host: 192.168.X.XX
token: 27xxxxxxxxxxxxxxxxxxxxxxxxxbe3c0
model: dmaker.fan.p9
Meanwhile there is hope : the developer of the custom component has made today a pull request to the upstream program and answered to me that as soon as he gets this he will add 1C support to its custom component program.
Add basic dmaker.fan.1c support by syssi · Pull Request #1012 · rytilahti/python-miio (github.com)
Great! Good news
Thx!
I have Xiaomi Smartmi Fan 2 and this config works great for me (2021.4.3):
fan:
- platform: xiaomi_miio_airpurifier
name: Smart Fan
Xiaomi Mi Air Purifier & Xiaomi Mi Air Humidifier integration is required.
some news regarding 1c?
My Fan 1C is also not working anymore with Home Assistant. Any solution?
I’m sorry for noob question as i read all the replies but still couldn’t figure out how get my fans to lovelace and working.
I install hacs. I integrate the components. I extract the tokens. I modify the configuration.yaml file. I can see the fan in the entity area of hass but don’t know to use (or don’t understand) those “platform services” “trigger”…to get control my fans.
Please help steps by steps. Thanks so much for your time.
My fans are:
NAME: Living Fan
IP: 192.168.31.239
TOKEN: 4dd41349c818c977e881cb450824a1a6
MODEL: zhimi.fan.v3
NAME: Fan
IP: 192.168.31.206
TOKEN: 5da31afe5dba5b9a3cdb6fd86439ae4f
MODEL: zhimi.fan.sa1
If you have the fans configured and can see them as an entity then the hard part is over. For controlling them you can use a card from HACS. GitHub - ikaruswill/lovelace-fan-xiaomi: Xiaomi Smartmi Fan Lovelace card with CSS fan animation
Hi, did you manage to fix this? My fan 1C is visible, but “unavailable”
I have been running into a similar issue and so far I have been able to resolve the issue. Posting here so that others might benefit.
Are you using VLANS and subnets in your setup? That could be causing issues. Syssi, the creator of the plugin, pointed me into the right direction: the esp8266 of the fan is the culprit. Here’s more background: Troubleshooting — python-miio documentation
I managed to fix the “unavailable” problem by basically moving the fan into the same VLAN and I posted my steps on GitHub: dmaker.fan.1c issue: fans show-up but unavailable · Issue #135 · syssi/xiaomi_fan · GitHub
The trade-offs obviously are clear: you would move an IoT device onto the main VLAN (if that’s where your server is, too). I don’t particularly like that but I decided to do it anyways and then block internet access for my fans. Not perfect but yet a good balanced workaround. Hope this helps others!
Hi, I buy Smartmi Standing Fan 2S
Xiaomi Home app detect Smartmi dc pedestal fan (zhimi.fan.v3) not zhimi.fan.za4
Region: China mainland
But I can’t add to the Xiaomi home app
although the fan connects to the wifi and gets an ip address
Who faced this, is there a solution to the problem? Thankss
Having the exact same issue with he Mi Smart Standing Fan 2 (not 2S) (dmaker.fan.p18). However, it did connect to the network in my case and I am able to get the token with Xiaomi cloud token extractor afterwards, It shows a local IP and token, but it isn’t visible in MiHome strangly enough.
Thanks for the answer !
I still didn’t succeed add to the home app to find out the token .
i returned the fan to the store…
now I can’t figure out which model to take to make it work for sure , models are named differently in different places .
maybe you know if there are models for Europe ?
Thanks
Im using Smart fan 3, it has 4 speeds but when added in HA thru GitHub - syssi/xiaomi_fan: Xiaomi Mi Smart Fan integration for Home Assistant there is only 3. Im a bit unsure on how to use the different ‘services’ provided. Can somone share their config for an example?
Hello @Coldrush
I didn’t trust this “smart” fan from a security point of view, so for the moment I put it in a separate wifi network (my router allow to have a “Guest” wifi network).
My Home Assistant is on my main wifi network, and devices on the main wifi network can access the “Guest” network devices ( but not vice versa).
Do you think this setup would work, or do I have to have both on the same wifi network ?
Thanks !
Models zhimi.fan.za1
, zhimi.fan.za3
, zhimi.fan.za4
, zhimi.fan.sa1
, zhimi.fan.v2
, zhimi.fan.v3
and dmaker.fan.p5
will be supported by the core integrations after 2021.9 release.
Yeah I just can’t add it as it’s apparently not auto-discovered nor can I manually add in the already existing Miio Integration. Am I missing something?