Hey everyone, Happy New Year!
I’m here to share my Lovelace card for Xiaomi Smartmi Fan, compatible up to the latest Xiaomi Smartmi Fan 2S. Works with syssi/xiaomi_fan integration.
Preview

Installation
Search HACS for:
Xiaomi Smartmi Fan Card
Github:
Features
Animations
- Fan animation when powered on
- Fan oscillation animation
Buttons
- Hidden buttons to the left and right of fan image that rotate the fan by 5 degrees
- Button to cycle through 5 speed-levels
- Button to toggle oscillation
- Button to toggle natural mode
Status Indicators
- Child lock status indicator
- Current oscillation angle indicator
- Timer indicator (time left to power off)
Credits
This is a fork of the great work by fineemb. I fixed some bugs, translated it to English and made some changes so that it works with Xiaomi Smartmi Fan 2S (zhimi.za4).
Why fork?
- Instructions and UI is in Chinese
- Limited support for the Smartmi Fan 2S.
- Temperature, humidity, battery level sensors no longer exist in the 2S
- The indicators are essentially rendered useless
- There’s no way to control the speed
- Child lock toggle has limited use
- Child lock is rarely toggled imo
- Needs bug fixes
Why not submit a PR?
My main reason is: Feature divergence. Indicators and buttons are now different from their original intention.