Good day!
So far I have successfully set up the purifier in Home Assistant with the following config in configuration.yaml
fan:
- platform: xiaomi_miio
host: <>
token: <>
model: zhimi.airpurifier.sa2
name: Xiaomi Air Purifier MAX Pro
Had to do some tinkering to get the proper toggles and favorite levels and I have been successful.
This purifier has “Levels” and can be changed in the Mi Home App. There are a total of three levels.
I have been successful in activating Levels 2 and 3 with the following code:
input_select:
# Xiaomi Air Purifier MAX Pro
xiaomi_airpurifier_mode:
name: Mode
options:
- Auto
- Silent
- Favorite
- Medium
- Strong
icon: "mdi:animation-outline"
Medium is Level 2 and Strong is Level 3. I did some troubleshooting and found out that if you leave the purifier on Level 1 (via Mi Home App), Home Assistant fails to recognize it. Looking at the logs, I get this:
I hope that this can be fixed. Thanks!