From 23fd13c9dad255e3dcb6184912d9b7b174ec9768 Mon Sep 17 00:00:00 2001 From: Marcel Date: Fri, 22 Jan 2021 03:00:25 +0100 Subject: [PATCH] [miio] fix channels with invalid names (#9888) * [miio] fix channels with invalid names * [miio] allow for readbale friendly names Signed-off-by: Marcel Verpaalen --- .../src/main/resources/database/yunmi.waterpurifier.json | 2 +- .../src/main/resources/database/yunmi.waterpurifier.lx8.json | 2 +- .../main/resources/database/zhimi.airpurifier.ma4-miot.json | 4 ++-- .../main/resources/database/zhimi.airpurifier.mb3-miot.json | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bundles/org.openhab.binding.miio/src/main/resources/database/yunmi.waterpurifier.json b/bundles/org.openhab.binding.miio/src/main/resources/database/yunmi.waterpurifier.json index 8a13b9a14b703..2cbcfaab6cbe7 100644 --- a/bundles/org.openhab.binding.miio/src/main/resources/database/yunmi.waterpurifier.json +++ b/bundles/org.openhab.binding.miio/src/main/resources/database/yunmi.waterpurifier.json @@ -234,7 +234,6 @@ "friendlyName": "Light Mode", "channel": "lightMode", "type": "Number", - "refresh": true, "stateDescription": { "options": [ { @@ -247,6 +246,7 @@ } ] }, + "refresh": true, "actions": [ { "command": "set_lightMode", diff --git a/bundles/org.openhab.binding.miio/src/main/resources/database/yunmi.waterpurifier.lx8.json b/bundles/org.openhab.binding.miio/src/main/resources/database/yunmi.waterpurifier.lx8.json index 12217c3c69452..b222581486354 100644 --- a/bundles/org.openhab.binding.miio/src/main/resources/database/yunmi.waterpurifier.lx8.json +++ b/bundles/org.openhab.binding.miio/src/main/resources/database/yunmi.waterpurifier.lx8.json @@ -198,7 +198,6 @@ "friendlyName": "Light Mode", "channel": "lightMode", "type": "Number", - "refresh": true, "stateDescription": { "options": [ { @@ -211,6 +210,7 @@ } ] }, + "refresh": true, "actions": [ { "command": "set_lightMode", diff --git a/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.airpurifier.ma4-miot.json b/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.airpurifier.ma4-miot.json index cfc322cbc0f34..ba19902241ae5 100644 --- a/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.airpurifier.ma4-miot.json +++ b/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.airpurifier.ma4-miot.json @@ -140,8 +140,8 @@ "property": "pm2.5-density", "siid": 3, "piid": 6, - "friendlyName": "Environment - Pm2 5 Density", - "channel": "pm2.5-density", + "friendlyName": "Environment - Pm2.5 Density", + "channel": "pm2_5-density", "type": "Number", "stateDescription": { "minimum": 0.0, diff --git a/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.airpurifier.mb3-miot.json b/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.airpurifier.mb3-miot.json index b7f97af5d1adc..9dae019277417 100644 --- a/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.airpurifier.mb3-miot.json +++ b/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.airpurifier.mb3-miot.json @@ -140,8 +140,8 @@ "property": "pm2.5-density", "siid": 3, "piid": 6, - "friendlyName": "Environment - Pm2 5", - "channel": "pm2.5-density", + "friendlyName": "Environment - Pm2.5 density", + "channel": "pm2_5-density", "type": "Number", "stateDescription": { "minimum": 0.0,