From: Marcel Date: Wed, 16 Jun 2021 08:27:04 +0000 (+0200) Subject: [miio] fix typo in temperatue unit (#10869) X-Git-Url: https://git.basschouten.com/?a=commitdiff_plain;h=28c513ac3a595411d1bf6f1f31b68622b5913ba6;p=openhab-addons.git [miio] fix typo in temperatue unit (#10869) Signed-off-by: Marcel Verpaalen --- diff --git a/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/MiIoQuantiyTypes.java b/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/MiIoQuantiyTypes.java index 9b931a91c2..65a4f8020d 100644 --- a/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/MiIoQuantiyTypes.java +++ b/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/MiIoQuantiyTypes.java @@ -36,7 +36,7 @@ import org.openhab.core.library.unit.Units; @NonNullByDefault public enum MiIoQuantiyTypes { - CELCIUS(SIUnits.CELSIUS, "C"), + CELSIUS(SIUnits.CELSIUS, "C", "celcius"), FAHRENHEIT(ImperialUnits.FAHRENHEIT), KELVIN(Units.KELVIN, "K"), PASCAL(SIUnits.PASCAL), diff --git a/bundles/org.openhab.binding.miio/src/main/resources/database/cgllc.airmonitor.b1.json b/bundles/org.openhab.binding.miio/src/main/resources/database/cgllc.airmonitor.b1.json index 3dffde6d50..a91b75b79e 100644 --- a/bundles/org.openhab.binding.miio/src/main/resources/database/cgllc.airmonitor.b1.json +++ b/bundles/org.openhab.binding.miio/src/main/resources/database/cgllc.airmonitor.b1.json @@ -72,7 +72,7 @@ "friendlyName": "Temperature", "channel": "temperature", "type": "Number:Temperature", - "unit": "CELCIUS", + "unit": "CELSIUS", "refresh": true, "ChannelGroup": "Status", "actions": [], diff --git a/bundles/org.openhab.binding.miio/src/main/resources/database/cgllc.airmonitor.s1.json b/bundles/org.openhab.binding.miio/src/main/resources/database/cgllc.airmonitor.s1.json index 99d2f2d2b7..75202f8aaa 100644 --- a/bundles/org.openhab.binding.miio/src/main/resources/database/cgllc.airmonitor.s1.json +++ b/bundles/org.openhab.binding.miio/src/main/resources/database/cgllc.airmonitor.s1.json @@ -74,7 +74,7 @@ "friendlyName": "Temperature", "channel": "temperature", "type": "Number:Temperature", - "unit": "CELCIUS", + "unit": "CELSIUS", "stateDescription": { "pattern": "%.1f %unit%", "readOnly": true diff --git a/bundles/org.openhab.binding.miio/src/main/resources/database/chuangmi.plug.m1.json b/bundles/org.openhab.binding.miio/src/main/resources/database/chuangmi.plug.m1.json index a4ac285faa..3e2d57876a 100644 --- a/bundles/org.openhab.binding.miio/src/main/resources/database/chuangmi.plug.m1.json +++ b/bundles/org.openhab.binding.miio/src/main/resources/database/chuangmi.plug.m1.json @@ -29,7 +29,7 @@ "friendlyName": "Temperature", "channel": "temperature", "type": "Number:Temperature", - "unit": "CELCIUS", + "unit": "CELSIUS", "stateDescription": { "pattern": "%.1f %unit%", "readOnly": true diff --git a/bundles/org.openhab.binding.miio/src/main/resources/database/chuangmi.plug.v1.json b/bundles/org.openhab.binding.miio/src/main/resources/database/chuangmi.plug.v1.json index 2f80b97cb9..4d110f8e0d 100644 --- a/bundles/org.openhab.binding.miio/src/main/resources/database/chuangmi.plug.v1.json +++ b/bundles/org.openhab.binding.miio/src/main/resources/database/chuangmi.plug.v1.json @@ -42,7 +42,7 @@ "friendlyName": "Temperature", "channel": "temperature", "type": "Number:Temperature", - "unit": "CELCIUS", + "unit": "CELSIUS", "refresh": true, "actions": [], "category": "temperature", diff --git a/bundles/org.openhab.binding.miio/src/main/resources/database/chuangmi.plug.v3.json b/bundles/org.openhab.binding.miio/src/main/resources/database/chuangmi.plug.v3.json index fbc7759e4d..4670777563 100644 --- a/bundles/org.openhab.binding.miio/src/main/resources/database/chuangmi.plug.v3.json +++ b/bundles/org.openhab.binding.miio/src/main/resources/database/chuangmi.plug.v3.json @@ -45,7 +45,7 @@ "friendlyName": "Temperature", "channel": "temperature", "type": "Number:Temperature", - "unit": "CELCIUS", + "unit": "CELSIUS", "stateDescription": { "pattern": "%.1f %unit%", "readOnly": true diff --git a/bundles/org.openhab.binding.miio/src/main/resources/database/nwt.derh.wdh318efw1.json b/bundles/org.openhab.binding.miio/src/main/resources/database/nwt.derh.wdh318efw1.json index 1e1cfd0c42..b743b7ed1f 100644 --- a/bundles/org.openhab.binding.miio/src/main/resources/database/nwt.derh.wdh318efw1.json +++ b/bundles/org.openhab.binding.miio/src/main/resources/database/nwt.derh.wdh318efw1.json @@ -134,7 +134,7 @@ "friendlyName": "Temperature", "channel": "temperature", "type": "Number:Temperature", - "unit": "CELCIUS", + "unit": "CELSIUS", "refresh": true, "ChannelGroup": "Status", "actions": [], diff --git a/bundles/org.openhab.binding.miio/src/main/resources/database/viomi.waterheater.e1.json b/bundles/org.openhab.binding.miio/src/main/resources/database/viomi.waterheater.e1.json index ba863494eb..f8759bfdcd 100644 --- a/bundles/org.openhab.binding.miio/src/main/resources/database/viomi.waterheater.e1.json +++ b/bundles/org.openhab.binding.miio/src/main/resources/database/viomi.waterheater.e1.json @@ -37,7 +37,7 @@ "friendlyName": "Water Temperature", "channel": "waterTemp", "type": "Number:Temperature", - "unit": "CELCIUS", + "unit": "CELSIUS", "refresh": true, "actions": [ { @@ -56,7 +56,7 @@ "friendlyName": "Target Temperature", "channel": "targetTemp", "type": "Number:Temperature", - "unit": "CELCIUS", + "unit": "CELSIUS", "refresh": true, "actions": [ { diff --git a/bundles/org.openhab.binding.miio/src/main/resources/database/xjx.toilet.json b/bundles/org.openhab.binding.miio/src/main/resources/database/xjx.toilet.json index 75bf4b0022..e4545ca377 100644 --- a/bundles/org.openhab.binding.miio/src/main/resources/database/xjx.toilet.json +++ b/bundles/org.openhab.binding.miio/src/main/resources/database/xjx.toilet.json @@ -12,7 +12,7 @@ "friendlyName": "Seat Temperature", "channel": "seat_temp", "type": "Number:Temperature", - "unit": "CELCIUS", + "unit": "CELSIUS", "refresh": true, "actions": [ { @@ -40,7 +40,7 @@ "friendlyName": "Water Temperature", "channel": "water_temp_t", "type": "Number:Temperature", - "unit": "CELCIUS", + "unit": "CELSIUS", "refresh": true, "actions": [ { @@ -59,7 +59,7 @@ "friendlyName": "Fan Temperature", "channel": "fan_temp", "type": "Number:Temperature", - "unit": "CELCIUS", + "unit": "CELSIUS", "refresh": true, "actions": [ { diff --git a/bundles/org.openhab.binding.miio/src/main/resources/database/yeelink.bhf1.json b/bundles/org.openhab.binding.miio/src/main/resources/database/yeelink.bhf1.json index 331f4e7bf2..d0be580330 100644 --- a/bundles/org.openhab.binding.miio/src/main/resources/database/yeelink.bhf1.json +++ b/bundles/org.openhab.binding.miio/src/main/resources/database/yeelink.bhf1.json @@ -91,7 +91,7 @@ "friendlyName": "Temperature", "channel": "temperature", "type": "Number:Temperature", - "unit": "CELCIUS", + "unit": "CELSIUS", "refresh": true, "actions": [], "category": "temperature", 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 750a95d5c6..74c4aed5e4 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 @@ -30,7 +30,7 @@ "friendlyName": "Temperature", "channel": "temperature", "type": "Number:Temperature", - "unit": "CELCIUS", + "unit": "CELSIUS", "stateDescription": { "pattern": "%.1f %unit%", "readOnly": true diff --git a/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.airpurifier.m1.json b/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.airpurifier.m1.json index a3073c12c0..f2f73e7695 100644 --- a/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.airpurifier.m1.json +++ b/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.airpurifier.m1.json @@ -296,7 +296,7 @@ "friendlyName": "Temperature", "channel": "temperature", "type": "Number:Temperature", - "unit": "CELCIUS", + "unit": "CELSIUS", "stateDescription": { "pattern": "%.1f %unit%", "readOnly": true diff --git a/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.airpurifier.v6.json b/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.airpurifier.v6.json index 2ce35575a5..92299edb63 100644 --- a/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.airpurifier.v6.json +++ b/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.airpurifier.v6.json @@ -191,7 +191,7 @@ "friendlyName": "Temperature", "channel": "temperature", "type": "Number:Temperature", - "unit": "CELCIUS", + "unit": "CELSIUS", "stateDescription": { "pattern": "%.1f %unit%", "readOnly": true diff --git a/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.airpurifier.v7.json b/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.airpurifier.v7.json index c285badc75..68e75135cb 100644 --- a/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.airpurifier.v7.json +++ b/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.airpurifier.v7.json @@ -190,7 +190,7 @@ "friendlyName": "Temperature", "channel": "temperature", "type": "Number:Temperature", - "unit": "CELCIUS", + "unit": "CELSIUS", "stateDescription": { "pattern": "%.1f %unit%", "readOnly": true diff --git a/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.airpurifier.vb2-miot.json b/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.airpurifier.vb2-miot.json index 1cf7f504a4..0c8fa644a6 100644 --- a/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.airpurifier.vb2-miot.json +++ b/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.airpurifier.vb2-miot.json @@ -232,7 +232,7 @@ "friendlyName": "Environment - Temperature", "channel": "temperature", "type": "Number:Temperature", - "unit": "CELCIUS", + "unit": "CELSIUS", "stateDescription": { "minimum": -40, "maximum": 125, diff --git a/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.fan.v3.json b/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.fan.v3.json index b46e81fa5d..0d6723107e 100644 --- a/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.fan.v3.json +++ b/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.fan.v3.json @@ -174,7 +174,7 @@ "friendlyName": "Temperature", "channel": "temp_dec", "type": "Number", - "unit": "CELCIUS", + "unit": "CELSIUS", "refresh": true, "transformation": "/10", "ChannelGroup": "Status", diff --git a/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.heater.za1.json b/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.heater.za1.json index 4dc9fb14e4..6468c49ef6 100644 --- a/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.heater.za1.json +++ b/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.heater.za1.json @@ -28,7 +28,7 @@ "friendlyName": "Target Temperature", "channel": "target_temperature", "type": "Number:Temperature", - "unit": "CELCIUS", + "unit": "CELSIUS", "stateDescription": { "pattern": "%.1f %unit%", "readOnly": true @@ -121,7 +121,7 @@ "friendlyName": "Temperature", "channel": "temperature", "type": "Number:Temperature", - "unit": "CELCIUS", + "unit": "CELSIUS", "stateDescription": { "pattern": "%.1f %unit%", "readOnly": true diff --git a/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.heater.za2-miot.json b/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.heater.za2-miot.json index a761d4bacf..4e43fbeae5 100644 --- a/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.heater.za2-miot.json +++ b/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.heater.za2-miot.json @@ -68,7 +68,7 @@ "friendlyName": "Heater - Target Temperature", "channel": "target-temperature", "type": "Number:Temperature", - "unit": "CELCIUS", + "unit": "CELSIUS", "stateDescription": { "minimum": 16, "maximum": 28, @@ -155,7 +155,7 @@ "friendlyName": "Environment - Temperature", "channel": "temperature", "type": "Number:Temperature", - "unit": "CELCIUS", + "unit": "CELSIUS", "stateDescription": { "minimum": -30, "maximum": 100, diff --git a/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.heater.zb1-miot.json b/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.heater.zb1-miot.json index f8ac1fa120..726e8f6903 100644 --- a/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.heater.zb1-miot.json +++ b/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.heater.zb1-miot.json @@ -155,7 +155,7 @@ "friendlyName": "Environment - Temperature", "channel": "temperature", "type": "Number:Temperature", - "unit": "CELCIUS", + "unit": "CELSIUS", "stateDescription": { "minimum": -30, "maximum": 100, diff --git a/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.humidifier.ca4.json b/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.humidifier.ca4.json index ce84de3170..43223cf710 100644 --- a/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.humidifier.ca4.json +++ b/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.humidifier.ca4.json @@ -282,7 +282,7 @@ "friendlyName": "Temperature", "channel": "temperature", "type": "Number:Temperature", - "unit": "CELCIUS", + "unit": "CELSIUS", "stateDescription": { "minimum": -40, "maximum": 125, diff --git a/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.humidifier.cb1.json b/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.humidifier.cb1.json index c52e3ed9a1..c2bf99303e 100644 --- a/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.humidifier.cb1.json +++ b/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.humidifier.cb1.json @@ -166,7 +166,7 @@ "friendlyName": "Temperature", "channel": "temperature", "type": "Number:Temperature", - "unit": "CELCIUS", + "unit": "CELSIUS", "stateDescription": { "pattern": "%.1f %unit%", "readOnly": true diff --git a/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.humidifier.v1.json b/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.humidifier.v1.json index 0aa9b347bf..a21ff474e2 100644 --- a/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.humidifier.v1.json +++ b/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.humidifier.v1.json @@ -176,7 +176,7 @@ "friendlyName": "Temperature", "channel": "temperature", "type": "Number:Temperature", - "unit": "CELCIUS", + "unit": "CELSIUS", "stateDescription": { "pattern": "%.1f %unit%", "readOnly": true diff --git a/bundles/org.openhab.binding.miio/src/main/resources/database/zimi.powerstrip.v2.json b/bundles/org.openhab.binding.miio/src/main/resources/database/zimi.powerstrip.v2.json index f307890e28..411e576130 100644 --- a/bundles/org.openhab.binding.miio/src/main/resources/database/zimi.powerstrip.v2.json +++ b/bundles/org.openhab.binding.miio/src/main/resources/database/zimi.powerstrip.v2.json @@ -77,7 +77,7 @@ "friendlyName": "Temperature", "channel": "temperature", "type": "Number:Temperature", - "unit": "CELCIUS", + "unit": "CELSIUS", "stateDescription": { "pattern": "%.1f %unit%", "readOnly": true