[miio] Qingping Air Monitor (cgllc.airmonitor.s1) support is broken (#13262)
* [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>
This commit is contained in:
parent
4ebcb70c83
commit
b6a2240270
@ -13,8 +13,10 @@
|
|||||||
"channelType": "system:battery-level",
|
"channelType": "system:battery-level",
|
||||||
"type": "Number",
|
"type": "Number",
|
||||||
"refresh": true,
|
"refresh": true,
|
||||||
|
"customRefreshCommand": "get_value[\"battery\"]",
|
||||||
"ChannelGroup": "Status",
|
"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",
|
"property": "pm25",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user