syssi / xiaomi_airpurifier

Xiaomi Mi Air Purifier and Xiaomi Mi Air Humidifier integration for Home Assistant
Apache License 2.0
456 stars 113 forks source link

Add zhimi.airp.vb4 support #275

Open redding1 opened 2 years ago

redding1 commented 2 years ago

Device information:

Issue: Device Not Supported

Name(s) of the device: Xiaomi Smart Air Purifier 4 Pro Link: https://www.mi.com/global/product/xiaomi-smart-air-purifier-4-pro/ Model: zhimi.airp.vb4 Hardware version: esp32 Firmware version: 2.2.0

Additional context Not entirely sure why they have two purifiers "4 Pro" models (well, one has the "Smart" label), but the vb4 model seems different from the earlier va2 whose support was committed last week. The difference seems largely just an additional PM10 field and a "display device unit" service that seems to let you control the temperature unit on the display remotely.

See: https://home.miot-spec.com/spec/zhimi.airp.vb4

Had tried other models with no luck, if anyone has this running in Homeassistant please let me know.

redding1 commented 2 years ago

Hi @syssi Is there any chance the homebridge addition can provide you with any support?

https://github.com/merdok/homebridge-miot/blob/3799be7a1a4e20b4beef629145678432a02dbaeb/lib/modules/airpurifier/devices/zhimi.airp.vb4.js

rperrell commented 2 years ago

PR https://github.com/rytilahti/python-miio/pull/1399 merged

jedziemyjedziemy commented 2 years ago

Unfortunately, we still have to wait a while for the new python-miio version to be released on pypi. I have already added vb4 and rmb1 in my MR.

@rperrell Thank you for preparing the code for python-miio

redding1 commented 2 years ago

Thanks very much, @rperrell and @jedziemyjedziemy for getting this added. Greatly appreciate your work!

sitharus commented 2 years ago

python-miio have done a release and the latest version has the changes. I can now control mine through the miio CLI :)