Mi air purifier 4 COMPACT

For xiaomi.airp.cpa4, the above-mentioned method did work for me.
It took a few seconds for the entities to appear, and there was no fan speed control.
It is possible to set the fan speed manually using a service call, e.g.:

service: xiaomi_miot.set_miot_property
data:
  entity_id: fan.xiaomi_cpa4_7865_air_purifier
  siid: 9
  piid: 11
  value: 4

Thank you! It took a full day for me, lol, I thought I was gone completely mental. Thanks for the service, this helps!