Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zhimi.airp.vb4, property monitor, environment:relative-humidity shows as "LUX" instead of % #652

Open
Browneyex opened this issue Jan 7, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@Browneyex
Copy link

Describe the bug
For Xiaomi Smart Air Purifier 4 Pro, zhimi.airp.vb4, under property monitor "environment:relative-humidity" wrong units

Expected behavior
Supposed to be % instead if homekit reading it as light sensor showing the correct number just not in % but in LUX current light level

@Browneyex Browneyex added the bug Something isn't working label Jan 7, 2025
@merdok
Copy link
Owner

merdok commented Jan 7, 2025

How did you expose that value? If you are using property monitor then for numeric values always a lux sensor will be used as this is the only way to show generic numeric values in HomeKit.

@Browneyex
Copy link
Author

image
Right now ^

image
Supposed to be ^

{
"name": "Xiaomi Smart Air Purifier 4 Pro",
"ip": "XX",
"token": "XXXXX",
"deviceId": "XXXX",
"model": "zhimi.airp.vb4",
"pollingInterval": 10,
"deepDebugLog": false,
"silentLog": false,
"deviceEnabled": true,
"micloud": {
"username": "[email protected]",
"password": "XX",
"country": "sg",
"forceMiCloud": true
},
"customAccessory": false,
"onlyMainService": true,
"buzzerControl": true,
"ledControl": true,
"childLockControl": true,
"modeControl": true,
"propertyMonitor": [
{
"property": "environment:relative-humidity"
},
{
"property": "environment:temperature"
}
]
},

@merdok
Copy link
Owner

merdok commented Jan 8, 2025

Yeah the current behavior is expected because as already mentioned, exposing a generic numeric value is only possible with a light sensor. It could be improved to detect the sensor type in the future...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants