merdok / homebridge-miot

Homebridge plugin for devices supporting the Xiaomi miot protocol
MIT License
394 stars 63 forks source link

Air Quality in HomeKit #303

Closed suzdalini7 closed 2 years ago

suzdalini7 commented 2 years ago

After adding zhimi.airfresh.va4 (Smartmi Fresh Air System XFXTDFR02ZM) into Apple HomeKit by means of homebridge-miot plugin instead indications Air Quality (PM2.5) in Home app displayed temperature sensor which always shows 2.5 degrees Celsius C17C07AD-719D-42AE-9B5E-C2CDD681A66F

merdok commented 2 years ago

Hi,

you would need to post a homebridge debug log with the deepDebugLog property set to true so I can have a look what is happening and where the issue might be.

suzdalini7 commented 2 years ago

homebridge.log.txt

merdok commented 2 years ago

Thanks, based on the log, this is the correct value. "environment:temperature: 2.58", This is delivered by the device and the plugin just shows that up.

suzdalini7 commented 2 years ago

Ok, can I see indications Air Quality (PM2.5) in home app like I see this in mi home? F28E2CCB-9B7C-4BC8-B0FD-9FFE1BB30726

merdok commented 2 years ago

Your device reports the co2 density and the air quality index hence they should be available in he home app.

vanillabearr commented 2 years ago

After adding zhimi.airfresh.va4 (Smartmi Fresh Air System XFXTDFR02ZM) into Apple HomeKit by means of homebridge-miot plugin instead indications Air Quality (PM2.5) in Home app displayed temperature sensor which always shows 2.5 degrees Celsius C17C07AD-719D-42AE-9B5E-C2CDD681A66F

sensor not correctly identified. 9BB6EE8C-704F-42AB-8AFB-2FE119A0CE50

vanillabearr commented 2 years ago

I have another problem with a similar device. Maybe a specific type of device has changed api? https://github.com/merdok/homebridge-miot/issues/269#issue-1229860221

merdok commented 2 years ago

@vanillabearr what do you mean by sensor not correctly identified? You need to be quite specific about your issues and post some homebridge debug logs with the deepDebugLog property enabled.

vanillabearr commented 2 years ago

@vanillabearr what do you mean by sensor not correctly identified? You need to be quite specific about your issues and post some homebridge debug logs with the deepDebugLog property enabled.

I have this parameter displayed correctly as an air quality sensor. At the @suzdalini7, the system defines it as a temperature sensor.

merdok commented 2 years ago

Looking at the api everything is still the same so no changes there. @vanillabearr you also have the same device i suppose?

vanillabearr commented 2 years ago

My model zhimi.airfresh.va2, @suzdalini7 zhimi.airfresh.va4

merdok commented 2 years ago

Yeah, you have different models and there will be differences between your device and the other. It all depends on how the device reports certain stuff.

suzdalini7 commented 2 years ago

3 2 1 In Mi home app my device shows co2 density (402 in screenshoot), the air quality index inside (008) and outside (32), temp (28) and humidity (49), but in Apple home I see humidity (49), co2 density, wrong temp (3.0) and don't see internal and external air quality index