]> git.basschouten.com Git - openhab-addons.git/commitdiff
[miio] Qingping Air Monitor (cgllc.airmonitor.s1) support is broken (#13262)
authorDmitry <mak-42@users.noreply.github.com>
Sun, 18 Sep 2022 15:23:22 +0000 (18:23 +0300)
committerGitHub <noreply@github.com>
Sun, 18 Sep 2022 15:23:22 +0000 (17:23 +0200)
* [miio] Qingping Air Monitor (cgllc.airmonitor.s1) support is broken #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 #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>
bundles/org.openhab.binding.miio/src/main/resources/database/cgllc.airmonitor.s1.json

index 95f00dbd8aa7c8d30db8ebdea0d5dc0d843b2144..2889c58560276b46111062dcccac1465cac3657c 100644 (file)
                                "channelType": "system:battery-level",
                                "type": "Number",
                                "refresh": true,
+                               "customRefreshCommand": "get_value[\"battery\"]",
                                "ChannelGroup": "Status",
-                               "actions": []
+                               "actions": [],
+                               "readmeComment": "The device with firmware \"4.1.8_9999\" stops recognizing parameter \"battery\" in \"get_value\" command. The \"battery\" value request was extracted to separate command in order to keep backward compatibility to the devices with older firmware."
                        },
                        {
                                "property": "pm25",