dhewg / esphome-miot

ESPHome components for MIoT devices
Other
16 stars 8 forks source link

Xiaomi Air Purifier 4 Lite (zhimi.airp.rma2) support #14

Open gvillo opened 3 months ago

gvillo commented 3 months ago

Hi! I was wondering if it supports zhimi.airp.rma2 (https://home.miot-spec.com/s/zhimi.airp.rma2), I don't know exactly what are the differences with the supported rmb1

kyutov commented 3 months ago

There are small difference between the two models. You can compare the JSONs with the specs of the two models and see the differences.

zhimi-rmb1 specs zhimi-rma2 specs

helgek commented 3 months ago

@kyutov Do you maybe know where I can see which revision my device is after flashing ESPHome? I flashed the device straight without checking beforehand. Just asking in case it is the zhimi.airp.rma2 revision I could then confirm that it works with the zhimi.airp.rmb1.yaml config.

dhewg commented 3 months ago

Yeah, there're some property differences, so that one needs its own config. If you have a backup of the vendor fw, you should find the model as string in there

helgek commented 3 months ago

@dhewg Thank you, yes I was able to find the ot_config.psm_modelzhimi.airp.rmb1 string in the backup of the original firmware. So I was lucky to have the right device for the already existing ESPHome configuration.