]> git.basschouten.com Git - openhab-addons.git/commitdiff
[miio] use json db to drive temperature channel definitions (#9960)
authorMarcel <marcel@verpaalen.com>
Tue, 26 Jan 2021 04:15:26 +0000 (05:15 +0100)
committerGitHub <noreply@github.com>
Tue, 26 Jan 2021 04:15:26 +0000 (20:15 -0800)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
15 files changed:
bundles/org.openhab.binding.miio/src/main/resources/database/cgllc.airmonitor.s1.json
bundles/org.openhab.binding.miio/src/main/resources/database/chuangmi.plug.m1.json
bundles/org.openhab.binding.miio/src/main/resources/database/chuangmi.plug.v3.json
bundles/org.openhab.binding.miio/src/main/resources/database/chuangmi.plug.v3fw.json
bundles/org.openhab.binding.miio/src/main/resources/database/yunmi.waterpurifier.json
bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.airpurifier.m1.json
bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.airpurifier.v6.json
bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.airpurifier.v7.json
bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.heater.za1.json
bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.heater.za2-miot.json
bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.heater.zb1-miot.json
bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.humidifier.ca4.json
bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.humidifier.cb1.json
bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.humidifier.v1.json
bundles/org.openhab.binding.miio/src/main/resources/database/zimi.powerstrip.v2.json

index 773678e9df774034d35d72a7dde0d4c20c17719a..99d2f2d2b749c949dc15ef785c06b5843b37eeaf 100644 (file)
                                "property": "temperature",
                                "friendlyName": "Temperature",
                                "channel": "temperature",
-                               "channelType": "temperatureC",
                                "type": "Number:Temperature",
                                "unit": "CELCIUS",
+                               "stateDescription": {
+                                       "pattern": "%.1f %unit%",
+                                       "readOnly": true
+                               },
                                "refresh": true,
                                "ChannelGroup": "Status",
                                "actions": [],
index e588f51ca58199a95b830d369b71e6bf66da498b..a4ac285faabe29318c941ce70b89bbce44cc569e 100644 (file)
                                "property": "temperature",
                                "friendlyName": "Temperature",
                                "channel": "temperature",
-                               "channelType": "temperatureC",
                                "type": "Number:Temperature",
                                "unit": "CELCIUS",
+                               "stateDescription": {
+                                       "pattern": "%.1f %unit%",
+                                       "readOnly": true
+                               },
                                "refresh": true,
                                "actions": [],
                                "category": "temperature",
index f3e300e00f18e3246e7fa992187834264d10e83f..1316189f2bab408805b1907822a8234c6f1e5eb5 100644 (file)
                                "property": "temperature",
                                "friendlyName": "Temperature",
                                "channel": "temperature",
-                               "channelType": "temperatureC",
                                "type": "Number:Temperature",
                                "unit": "CELCIUS",
+                               "stateDescription": {
+                                       "pattern": "%.1f %unit%",
+                                       "readOnly": true
+                               },
                                "refresh": true,
                                "actions": [],
                                "category": "temperature",
index da0b92b399233dd06234778409ca784e9b8995c7..1999d01a2bcf6b4c78487496c22287427451a1ed 100644 (file)
                                "property": "temperature",
                                "friendlyName": "Temperature",
                                "channel": "temperature",
-                               "channelType": "temperatureC",
                                "type": "Number:Temperature",
                                "unit": "CELCIUS",
+                               "stateDescription": {
+                                       "pattern": "%.1f %unit%",
+                                       "readOnly": true
+                               },
                                "refresh": true,
                                "actions": [],
                                "category": "temperature",
index 2cbcfaab6cbe7cf19e3281353781bee01a01db07..6318b25f6039a9bd0ee32552111b34e28f86239c 100644 (file)
                                "property": "temperature",
                                "friendlyName": "Temperature",
                                "channel": "temperature",
-                               "channelType": "temperatureC",
                                "type": "Number:Temperature",
                                "unit": "CELCIUS",
+                               "stateDescription": {
+                                       "pattern": "%.1f %unit%",
+                                       "readOnly": true
+                               },
                                "refresh": true,
                                "actions": [],
                                "category": "temperature",
index 26d62f5e071fd03942765f7dc302047e3771478c..f3681abfb82a65ae85f8c48211e66792ac03854a 100644 (file)
                                "property": "temp_dec",
                                "friendlyName": "Temperature",
                                "channel": "temperature",
-                               "channelType": "temperatureC",
                                "type": "Number:Temperature",
                                "unit": "CELCIUS",
+                               "stateDescription": {
+                                       "pattern": "%.1f %unit%",
+                                       "readOnly": true
+                               },
                                "refresh": true,
                                "transformation": "/10",
                                "ChannelGroup": "Status",
index 844fd5414a4e58b85ad1fb4037c4b27e5e5e0932..2ce35575a5cb4f8b430abdbf808ccd9383ffdddf 100644 (file)
                                "property": "temp_dec",
                                "friendlyName": "Temperature",
                                "channel": "temperature",
-                               "channelType": "temperatureC",
                                "type": "Number:Temperature",
                                "unit": "CELCIUS",
+                               "stateDescription": {
+                                       "pattern": "%.1f %unit%",
+                                       "readOnly": true
+                               },
                                "refresh": true,
                                "transformation": "/10",
                                "ChannelGroup": "Status",
index 66daf7469166044c0077e46e0aee5048267be04d..c285badc7581478367d1d06a3082fee451a5733d 100644 (file)
                                "property": "temp_dec",
                                "friendlyName": "Temperature",
                                "channel": "temperature",
-                               "channelType": "temperatureC",
                                "type": "Number:Temperature",
                                "unit": "CELCIUS",
+                               "stateDescription": {
+                                       "pattern": "%.1f %unit%",
+                                       "readOnly": true
+                               },
                                "refresh": true,
                                "transformation": "/10",
                                "ChannelGroup": "Status",
index 72856cb47ea4f5e17ca69ebe02dd6201cecf351f..6c60317f43681e27aeeb7d19556f131c6b6ddb5c 100644 (file)
                                "property": "target_temperature",
                                "friendlyName": "Target Temperature",
                                "channel": "target_temperature",
-                               "channelType": "temperatureC",
                                "type": "Number:Temperature",
                                "unit": "CELCIUS",
+                               "stateDescription": {
+                                       "pattern": "%.1f %unit%",
+                                       "readOnly": true
+                               },
                                "refresh": true,
                                "actions": [
                                        {
                                "property": "temperature",
                                "friendlyName": "Temperature",
                                "channel": "temperature",
-                               "channelType": "temperatureC",
                                "type": "Number:Temperature",
                                "unit": "CELCIUS",
+                               "stateDescription": {
+                                       "pattern": "%.1f %unit%",
+                                       "readOnly": true
+                               },
                                "refresh": true,
                                "actions": [],
                                "category": "temperature",
index dff70276dbf78dad5ab3750b4b603a7acb998459..46f853218ab18c330ea934f997fb71c8f87f5fc1 100644 (file)
                                "piid": 8,
                                "friendlyName": "Environment - Temperature",
                                "channel": "temperature",
-                               "channelType": "temperatureC",
                                "type": "Number:Temperature",
                                "unit": "CELCIUS",
+                               "stateDescription": {
+                                       "pattern": "%.1f %unit%",
+                                       "readOnly": true
+                               },
                                "refresh": true,
                                "actions": [],
                                "category": "temperature",
index b46372dda3700a535b53dd780b1d591d64502cce..e9d63466afc07adcf88191e64d5d522fcac8663a 100644 (file)
                                "piid": 8,
                                "friendlyName": "Environment - Temperature",
                                "channel": "temperature",
-                               "channelType": "temperatureC",
                                "type": "Number:Temperature",
                                "unit": "CELCIUS",
+                               "stateDescription": {
+                                       "pattern": "%.1f %unit%",
+                                       "readOnly": true
+                               },
                                "refresh": true,
                                "actions": [],
                                "category": "temperature",
index 7aa538777ff685808ad769bc7bd18d5b6eeffaeb..9f89eab62097165b9c65009340aa5e8debebd8e5 100644 (file)
                                "piid": 7,
                                "friendlyName": "Temperature",
                                "channel": "temperature",
-                               "channelType": "temperatureC",
                                "type": "Number:Temperature",
                                "unit": "CELCIUS",
+                               "stateDescription": {
+                                       "pattern": "%.1f %unit%",
+                                       "readOnly": true
+                               },
                                "refresh": true,
                                "ChannelGroup": "Status",
                                "actions": [],
index b8240984dd2c13d6654c1afe5425e58646e4d028..f24a7a31dcdde15cdb16c1256bef9dd7b005467d 100644 (file)
                                "property": "temperature",
                                "friendlyName": "Temperature",
                                "channel": "temperature",
-                               "channelType": "temperatureC",
                                "type": "Number:Temperature",
                                "unit": "CELCIUS",
+                               "stateDescription": {
+                                       "pattern": "%.1f %unit%",
+                                       "readOnly": true
+                               },
                                "refresh": true,
                                "ChannelGroup": "Status",
                                "actions": [],
index 5ac1e8f645486644a77c1d8c66b3e090b7a03357..0aa9b347bf135ad6442a38b88660608fe299b583 100644 (file)
                                "property": "temp_dec",
                                "friendlyName": "Temperature",
                                "channel": "temperature",
-                               "channelType": "temperatureC",
                                "type": "Number:Temperature",
                                "unit": "CELCIUS",
+                               "stateDescription": {
+                                       "pattern": "%.1f %unit%",
+                                       "readOnly": true
+                               },
                                "refresh": true,
                                "transformation": "/10",
                                "ChannelGroup": "Status",
index 54979f86a4442ed7773734352cf0a50f6f165587..f307890e28836881e5c985595561dac7e349cba2 100644 (file)
                                "property": "temperature",
                                "friendlyName": "Temperature",
                                "channel": "temperature",
-                               "channelType": "temperatureC",
                                "type": "Number:Temperature",
                                "unit": "CELCIUS",
+                               "stateDescription": {
+                                       "pattern": "%.1f %unit%",
+                                       "readOnly": true
+                               },
                                "refresh": true,
                                "actions": [],
                                "category": "temperature",