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
[miio] Fix Qingping Air Monitor (cgllc.airmonitor.s1) support #13262
Conversation
…penhab#13258 1. Custom refresh command for "battery" was defined . The device with "4.1.8_9999" firmware version does not allowed to obtain this information by this way which prevents to obtain other values. The solution should work for both old firmware (the battery information would be requested as before) and it does not prevent the device with new firmware from sending other values (I checked it). Signed-off-by: Dmitry Malenok <_mak_@bk.ru>
f1d081e
to
2e1ffd3
Compare
I don't really understand how this is fixing the problem. The command send to the device should be the same. |
I described the problem in the correspondent issue. The device with firmware "4.1.8_9999" stops recognizing parameter "battery" in "get_value" command and returns "result":"ok" in the response instead of values if the parameter exists. I split the request for values into two requests: the first one for all the parameters ("pm25","co2","tvoc","humidity","temperature") except "battery" and another one for "battery" parameter. It allows to obtain all values except "battery" from the device with firmware "4.1.8_9999" and obtain all the values from the device with old firmware versions. |
Yes, I understood your description.
I would like to ensure the 2nd option is not the cause as in that case the lowering of maxProperties would do the trick as well in a better way. |
The device does not recognized request for battery value any more. I sent |
Agree. |
…penhab#13258 1. The comment clarifying the "battery" parameter behavior was added. Signed-off-by: Dmitry Malenok <_mak_@bk.ru>
I'm totally agree with you. It might look like a riddle without the comment. |
Done |
@marcelrv may i ask you to merge this pull request? |
@ivo-pupkin I don't have rights to merge commits. |
…penhab#13262) * [miio] Qingping Air Monitor (cgllc.airmonitor.s1) support is broken openhab#13258 1. Custom refresh command for "battery" was defined . The device with "4.1.8_9999" firmware version does not allowed to obtain this information by this way which prevents to obtain other values. The solution should work for both old firmware (the battery information would be requested as before) and it does not prevent the device with new firmware from sending other values (I checked it). Signed-off-by: Dmitry Malenok <_mak_@bk.ru> * [miio] Qingping Air Monitor (cgllc.airmonitor.s1) support is broken openhab#13258 1. The comment clarifying the "battery" parameter behavior was added. Signed-off-by: Dmitry Malenok <_mak_@bk.ru> Signed-off-by: Dmitry Malenok <_mak_@bk.ru>
…penhab#13262) * [miio] Qingping Air Monitor (cgllc.airmonitor.s1) support is broken openhab#13258 1. Custom refresh command for "battery" was defined . The device with "4.1.8_9999" firmware version does not allowed to obtain this information by this way which prevents to obtain other values. The solution should work for both old firmware (the battery information would be requested as before) and it does not prevent the device with new firmware from sending other values (I checked it). Signed-off-by: Dmitry Malenok <_mak_@bk.ru> * [miio] Qingping Air Monitor (cgllc.airmonitor.s1) support is broken openhab#13258 1. The comment clarifying the "battery" parameter behavior was added. Signed-off-by: Dmitry Malenok <_mak_@bk.ru> Signed-off-by: Dmitry Malenok <_mak_@bk.ru>
…penhab#13262) * [miio] Qingping Air Monitor (cgllc.airmonitor.s1) support is broken openhab#13258 1. Custom refresh command for "battery" was defined . The device with "4.1.8_9999" firmware version does not allowed to obtain this information by this way which prevents to obtain other values. The solution should work for both old firmware (the battery information would be requested as before) and it does not prevent the device with new firmware from sending other values (I checked it). Signed-off-by: Dmitry Malenok <_mak_@bk.ru> * [miio] Qingping Air Monitor (cgllc.airmonitor.s1) support is broken openhab#13258 1. The comment clarifying the "battery" parameter behavior was added. Signed-off-by: Dmitry Malenok <_mak_@bk.ru> Signed-off-by: Dmitry Malenok <_mak_@bk.ru>
…penhab#13262) * [miio] Qingping Air Monitor (cgllc.airmonitor.s1) support is broken openhab#13258 1. Custom refresh command for "battery" was defined . The device with "4.1.8_9999" firmware version does not allowed to obtain this information by this way which prevents to obtain other values. The solution should work for both old firmware (the battery information would be requested as before) and it does not prevent the device with new firmware from sending other values (I checked it). Signed-off-by: Dmitry Malenok <_mak_@bk.ru> * [miio] Qingping Air Monitor (cgllc.airmonitor.s1) support is broken openhab#13258 1. The comment clarifying the "battery" parameter behavior was added. Signed-off-by: Dmitry Malenok <_mak_@bk.ru> Signed-off-by: Dmitry Malenok <_mak_@bk.ru> Signed-off-by: Andras Uhrin <andras.uhrin@gmail.com>
…penhab#13262) * [miio] Qingping Air Monitor (cgllc.airmonitor.s1) support is broken openhab#13258 1. Custom refresh command for "battery" was defined . The device with "4.1.8_9999" firmware version does not allowed to obtain this information by this way which prevents to obtain other values. The solution should work for both old firmware (the battery information would be requested as before) and it does not prevent the device with new firmware from sending other values (I checked it). Signed-off-by: Dmitry Malenok <_mak_@bk.ru> * [miio] Qingping Air Monitor (cgllc.airmonitor.s1) support is broken openhab#13258 1. The comment clarifying the "battery" parameter behavior was added. Signed-off-by: Dmitry Malenok <_mak_@bk.ru> Signed-off-by: Dmitry Malenok <_mak_@bk.ru>
…penhab#13262) * [miio] Qingping Air Monitor (cgllc.airmonitor.s1) support is broken openhab#13258 1. Custom refresh command for "battery" was defined . The device with "4.1.8_9999" firmware version does not allowed to obtain this information by this way which prevents to obtain other values. The solution should work for both old firmware (the battery information would be requested as before) and it does not prevent the device with new firmware from sending other values (I checked it). Signed-off-by: Dmitry Malenok <_mak_@bk.ru> * [miio] Qingping Air Monitor (cgllc.airmonitor.s1) support is broken openhab#13258 1. The comment clarifying the "battery" parameter behavior was added. Signed-off-by: Dmitry Malenok <_mak_@bk.ru> Signed-off-by: Dmitry Malenok <_mak_@bk.ru>
@mak-42 |
The old way of getting this information locally was broken. I think the device still transfer battery level data to MI Home servers. It may be another way to obtain the battery level of the device, but someone should try to dig it up. |
Thanks a lot for the reply. |
[miio] Qingping Air Monitor (cgllc.airmonitor.s1) support is broken #13258
fix #13258