Closed
Description
Hi.
I'm trying to get air quality from my Xiaomi Air purifier 3C.
And from time to time I see None value in the aqi
. I figured out that it's happening when aqi==1
.
The reason is in this if:
python-miio/miio/airpurifier_miot.py
Lines 105 to 112 in dfda13e
PR #930
Does zhimi.airpurifier.mb4
(and any non zhimi-airpurifier-mb3
) return 1 when the air quality read was unsuccessful?
Mi Home shows pm2.5==1
. So I suppose for my model zhimi.airpurifier.mb4
1 it's a normal read.
Device information:
- Model: Xiaomi Air purifier 3C (
zhimi.airpurifier.mb4
)