Problem
After first install with official Android app it broke account so hard, that web login to xiaomi just reloaded page in loop, and fan dissipated from Android app.
wifi reset
power + m button for 7 seconds.
token
I created local xiaomi account, which is useful, since you need password for this tool to work.
https://github.com/PiotrMachowski/Xiaomi‑cloud‑tokens‑extractor 
dpavlin@nuc:/nuc/Xiaomi-cloud-tokens-extractor$ git remote -v
origin  https://github.com/PiotrMachowski/Xiaomi-cloud-tokens-extractor (fetch)
origin  https://github.com/PiotrMachowski/Xiaomi-cloud-tokens-extractor (push)

dpavlin@nuc:/nuc/Xiaomi-cloud-tokens-extractor$ . venv/bin/activate

(venv) dpavlin@nuc:/nuc/Xiaomi-cloud-tokens-extractor$ python token_extractor.py

   ---------
   NAME:     Xiaomi Smart Tower Fan 2
   ID:       897218688
   MAC:      AC:8C:46:C9:2C:B4
   IP:       192.168.3.120
   TOKEN:    REDACTED
   MODEL:    xiaomi.fan.p45
   ---------

code
https://github.com/rytilahti/python‑miio/issues/1544  ‑ doesn't seem to login into xiaomi cloud for me
home assistant
https://github.com/syssi/xiaomi_fan/issues/282  ‑ doesn't support my model
2025-07-29 09:23:06.378 ERROR (MainThread) [custom_components.xiaomi_miio_fan.fan] Unsupported device found! Please create an issue at https://github.com/syssi/xiaomi_fan/issues and provide the following data: xiaomi.fan.p45

https://github.com/XiaoMi/ha_xiaomi_home  ‑ doesn't work for me
Finally, Xiaomi Miot Auto works.
https://github.com/syssi/xiaomi_fan/issues/214 
https://github.com/al‑one/hass‑xiaomi‑miot 
no need to patch local home assistant installation.
teardown video
https://www.youtube.com/watch?v=8GoeoD_eyvk