I connected my Xiaomi Purifier 4 Compact to Home Assistant via LAN.
Functionally everything worked, but the organization of stock dashboard cards didnโt suit me. In the end, I made a custom card โ predictable, compact, and informative.
- the icon color changes depending on the pollution level

- shows the current PM2.5 level
- when the filter is running out, the remaining filter life in days is displayed
- less than 60 days โ orange

- less than 30 days โ red

- less than 60 days โ orange
- tapping the card lets you control the purifier fan speed
- tapping the icon shows the air quality graph โ convenient for correlating air quality changes with your actions
Yes, this is not rocket science.
But if it saves someone a couple of hours of life โ then it was worth it.
