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