]> git.basschouten.com Git - openhab-addons.git/commitdiff
[miio] update json files to new definition (#9239)
authorMarcel <marcel@verpaalen.com>
Sat, 5 Dec 2020 20:59:48 +0000 (12:59 -0800)
committerGitHub <noreply@github.com>
Sat, 5 Dec 2020 20:59:48 +0000 (12:59 -0800)
* Update some of the miot files to the new definition
* Apply units,category & tags for some channels
* apply standard sorting

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
28 files changed:
bundles/org.openhab.binding.miio/README.md
bundles/org.openhab.binding.miio/src/main/resources/database/cgllc.airmonitor.b1.json
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.v1.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/lumi.curtain.hagl05-miot.json
bundles/org.openhab.binding.miio/src/main/resources/database/lumi.gateway.json
bundles/org.openhab.binding.miio/src/main/resources/database/mijia.vacuum.v2-miot.json
bundles/org.openhab.binding.miio/src/main/resources/database/scishare.coffee.s1102.json
bundles/org.openhab.binding.miio/src/main/resources/database/viomi.vacuum.v8.json
bundles/org.openhab.binding.miio/src/main/resources/database/xjx.toilet.json
bundles/org.openhab.binding.miio/src/main/resources/database/yeelink.bhf1.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.fan.sa1.json
bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.fan.v3.json
bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.fan.za4.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 000fd4b3212100c2ea25c81b6a7fdb7736acca5d..f8659b300331f4e75fcdeb7b41084ba2a4b17b92 100644 (file)
@@ -1386,8 +1386,8 @@ e.g. `smarthome:send actionCommand 'upd_timer["1498595904821", "on"]'` would ena
 | brush-left-time  | Number  | Brush Cleaner - Brush Left Time     |            |
 | brush-life-level1 | Number  | Brush Cleaner - Brush Life Level    |            |
 | brush-left-time1 | Number  | Brush Cleaner - Brush Left Time     |            |
-| clean-area       | Number  | Clean Record - Clean Area           |            |
-| clean-time       | Number  | Clean Record - Clean Time           |            |
+| clean-area       | Number:Area | Clean Record - Clean Area           |            |
+| clean-time       | Number:Time | Clean Record - Clean Time           |            |
 | total-clean-area | Number  | Clean Record - Total Clean Area     |            |
 | total-clean-time | Number  | Clean Record - Total Clean Time     |            |
 | total-clean-count | Number  | Clean Record - Total Clean Count    |            |
@@ -4446,8 +4446,8 @@ Number brush-life-level "Brush Cleaner - Brush Life Level" (G_vacuum) {channel="
 Number brush-left-time "Brush Cleaner - Brush Left Time" (G_vacuum) {channel="miio:basic:vacuum:brush-left-time"}
 Number brush-life-level1 "Brush Cleaner - Brush Life Level" (G_vacuum) {channel="miio:basic:vacuum:brush-life-level1"}
 Number brush-left-time1 "Brush Cleaner - Brush Left Time" (G_vacuum) {channel="miio:basic:vacuum:brush-left-time1"}
-Number clean-area "Clean Record - Clean Area" (G_vacuum) {channel="miio:basic:vacuum:clean-area"}
-Number clean-time "Clean Record - Clean Time" (G_vacuum) {channel="miio:basic:vacuum:clean-time"}
+Number:Area clean-area "Clean Record - Clean Area" (G_vacuum) {channel="miio:basic:vacuum:clean-area"}
+Number:Time clean-time "Clean Record - Clean Time" (G_vacuum) {channel="miio:basic:vacuum:clean-time"}
 Number total-clean-area "Clean Record - Total Clean Area" (G_vacuum) {channel="miio:basic:vacuum:total-clean-area"}
 Number total-clean-time "Clean Record - Total Clean Time" (G_vacuum) {channel="miio:basic:vacuum:total-clean-time"}
 Number total-clean-count "Clean Record - Total Clean Count" (G_vacuum) {channel="miio:basic:vacuum:total-clean-count"}
index 5987912a32daee6193701bfe4d55780466366cad..eb952bae7846bf2da0e0c94f67d6bcec21529939 100644 (file)
                                "friendlyName": "Temperature",
                                "channel": "temperature",
                                "channelType": "temperatureC",
-                               "unit": "CELCIUS",
                                "type": "Number:Temperature",
+                               "unit": "CELCIUS",
                                "refresh": true,
                                "ChannelGroup": "Status",
-                               "actions": []
+                               "actions": [],
+                               "category": "temperature",
+                               "tags": [
+                                       "Measurement",
+                                       "Temperature"
+                               ]
                        }
                ]
        }
index cd2a1c75260bae286a14e81fdc21253f30afa3cf..b15387c694793dc5501f31119793d2a4591f79f3 100644 (file)
                                "friendlyName": "Temperature",
                                "channel": "temperature",
                                "channelType": "temperatureC",
-                               "unit": "CELCIUS",
                                "type": "Number:Temperature",
+                               "unit": "CELCIUS",
                                "refresh": true,
                                "ChannelGroup": "Status",
-                               "actions": []
+                               "actions": [],
+                               "category": "temperature",
+                               "tags": [
+                                       "Measurement",
+                                       "Temperature"
+                               ]
                        }
                ]
        }
index 493f3b6f1a400feded8958ee29ac1006c170d450..f4133b9cf46a005faf53a5aadfa0d41d925ee317 100644 (file)
                                "friendlyName": "Temperature",
                                "channel": "temperature",
                                "channelType": "temperatureC",
-                               "unit": "CELCIUS",
                                "type": "Number:Temperature",
+                               "unit": "CELCIUS",
                                "refresh": true,
                                "ChannelGroup": "",
-                               "actions": []
+                               "actions": [],
+                               "category": "temperature",
+                               "tags": [
+                                       "Measurement",
+                                       "Temperature"
+                               ]
                        },
                        {
                                "property": "wifi_led",
index 617f330c6307110c38c3c86859830050c99fad7c..65fce4d98781eb3e2b1d7fbd90f1a31cb36cb9f5 100644 (file)
                                "friendlyName": "Temperature",
                                "channel": "temperature",
                                "channelType": "temperatureC",
-                               "unit": "CELCIUS",
                                "type": "Number:Temperature",
+                               "unit": "CELCIUS",
                                "refresh": true,
                                "ChannelGroup": "",
-                               "actions": []
+                               "actions": [],
+                               "category": "temperature",
+                               "tags": [
+                                       "Measurement",
+                                       "Temperature"
+                               ]
                        }
                ]
        }
index 00f34c76a95e4a8cc7bf6e00251d495198d07b53..cc91a8132a8f7e9a13b195d748ae0ba308165d60 100644 (file)
                                "friendlyName": "Temperature",
                                "channel": "temperature",
                                "channelType": "temperatureC",
-                               "unit": "CELCIUS",
                                "type": "Number:Temperature",
+                               "unit": "CELCIUS",
                                "refresh": true,
                                "ChannelGroup": "",
-                               "actions": []
+                               "actions": [],
+                               "category": "temperature",
+                               "tags": [
+                                       "Measurement",
+                                       "Temperature"
+                               ]
                        },
                        {
                                "property": "wifi_led",
index 3db10fc8ca0fefb6264bce1028a6af83e20def64..055e860ad30f48c5019c4249bcf6e42265ecd3a1 100644 (file)
                                "friendlyName": "Temperature",
                                "channel": "temperature",
                                "channelType": "temperatureC",
-                               "unit": "CELCIUS",
                                "type": "Number:Temperature",
+                               "unit": "CELCIUS",
                                "refresh": true,
                                "ChannelGroup": "",
-                               "actions": []
+                               "actions": [],
+                               "category": "temperature",
+                               "tags": [
+                                       "Measurement",
+                                       "Temperature"
+                               ]
                        },
                        {
                                "property": "wifi_led",
index 497618906e690bdb6afe37b78d7b6abac020685a..4aa2016f17cde987f2c2de1b056f2160b590a270 100644 (file)
                                "channel": "fault",
                                "channelType": "LumiCurtainHagl05_fault",
                                "type": "Number",
+                               "stateDescription": {
+                                       "readOnly": true,
+                                       "options": [
+                                               {
+                                                       "value": "0",
+                                                       "label": "No faults"
+                                               }
+                                       ]
+                               },
                                "refresh": true,
                                "actions": [],
-                               "value-list": [
-                                       {
-                                               "value": 0,
-                                               "description": "No faults"
-                                       }
-                               ],
                                "readmeComment": "Value mapping [0\u003d\"No faults\"]"
                        },
                        {
                                "channel": "status",
                                "channelType": "LumiCurtainHagl05_status",
                                "type": "Number",
+                               "stateDescription": {
+                                       "readOnly": true,
+                                       "options": [
+                                               {
+                                                       "value": "0",
+                                                       "label": "Stopped"
+                                               },
+                                               {
+                                                       "value": "1",
+                                                       "label": "Opening"
+                                               },
+                                               {
+                                                       "value": "2",
+                                                       "label": "Closing"
+                                               }
+                                       ]
+                               },
                                "refresh": true,
                                "actions": [],
-                               "value-list": [
-                                       {
-                                               "value": 0,
-                                               "description": "Stopped"
-                                       },
-                                       {
-                                               "value": 1,
-                                               "description": "Opening"
-                                       },
-                                       {
-                                               "value": 2,
-                                               "description": "Closing"
-                                       }
-                               ],
                                "readmeComment": "Value mapping [0\u003d\"Stopped\",1\u003d\"Opening\",2\u003d\"Closing\"]"
                        },
                        {
                                "channel": "manual-enabled",
                                "channelType": "LumiCurtainHagl05_manual-enabled",
                                "type": "Number",
+                               "stateDescription": {
+                                       "options": [
+                                               {
+                                                       "value": "0",
+                                                       "label": "Disable"
+                                               },
+                                               {
+                                                       "value": "1",
+                                                       "label": "Enable"
+                                               }
+                                       ]
+                               },
                                "refresh": true,
                                "actions": [
                                        {
                                                "parameterType": "NUMBER"
                                        }
                                ],
-                               "value-list": [
-                                       {
-                                               "value": 0,
-                                               "description": "Disable"
-                                       },
-                                       {
-                                               "value": 1,
-                                               "description": "Enable"
-                                       }
-                               ],
                                "readmeComment": "Value mapping [0\u003d\"Disable\",1\u003d\"Enable\"]"
                        },
                        {
                                "channel": "polarity",
                                "channelType": "LumiCurtainHagl05_polarity",
                                "type": "Number",
+                               "stateDescription": {
+                                       "options": [
+                                               {
+                                                       "value": "0",
+                                                       "label": "Positive"
+                                               },
+                                               {
+                                                       "value": "1",
+                                                       "label": "Reverse"
+                                               }
+                                       ]
+                               },
                                "refresh": true,
                                "actions": [
                                        {
                                                "parameterType": "NUMBER"
                                        }
                                ],
-                               "value-list": [
-                                       {
-                                               "value": 0,
-                                               "description": "Positive"
-                                       },
-                                       {
-                                               "value": 1,
-                                               "description": "Reverse"
-                                       }
-                               ],
                                "readmeComment": "Value mapping [0\u003d\"Positive\",1\u003d\"Reverse\"]"
                        },
                        {
                                "channel": "pos-limit",
                                "channelType": "LumiCurtainHagl05_pos-limit",
                                "type": "Number",
+                               "stateDescription": {
+                                       "options": [
+                                               {
+                                                       "value": "0",
+                                                       "label": "Unlimit"
+                                               },
+                                               {
+                                                       "value": "1",
+                                                       "label": "Limit"
+                                               }
+                                       ]
+                               },
                                "refresh": true,
                                "actions": [
                                        {
                                                "parameterType": "NUMBER"
                                        }
                                ],
-                               "value-list": [
-                                       {
-                                               "value": 0,
-                                               "description": "Unlimit"
-                                       },
-                                       {
-                                               "value": 1,
-                                               "description": "Limit"
-                                       }
-                               ],
                                "readmeComment": "Value mapping [0\u003d\"Unlimit\",1\u003d\"Limit\"]"
                        },
                        {
                                "channel": "en-night-tip-light",
                                "channelType": "LumiCurtainHagl05_en-night-tip-light",
                                "type": "Switch",
+                               "stateDescription": {
+                                       "options": [
+                                               {
+                                                       "value": "0",
+                                                       "label": "Disable"
+                                               },
+                                               {
+                                                       "value": "1",
+                                                       "label": "Enable"
+                                               }
+                                       ]
+                               },
                                "refresh": true,
                                "actions": [
                                        {
                                                "parameterType": "NUMBER"
                                        }
                                ],
-                               "value-list": [
-                                       {
-                                               "value": 0,
-                                               "description": "Disable"
-                                       },
-                                       {
-                                               "value": 1,
-                                               "description": "Enable"
-                                       }
-                               ],
                                "readmeComment": "Value mapping [0\u003d\"Disable\",1\u003d\"Enable\"]"
                        },
                        {
index 4e1768cc0c6f20016d8fe3ab9101d574f24be5dc..8f5b17bacfa5c6601209c781ea16a11f51acf7a6 100644 (file)
@@ -13,7 +13,6 @@
                                "property": "",
                                "friendlyName": "Enable Telnet",
                                "channel": "telnetEnable",
-                               "readmeComment": "Access the device with telnet to further unlock developer mode. See forum",
                                "type": "Switch",
                                "refresh": false,
                                "actions": [
@@ -21,7 +20,8 @@
                                                "command": "enable_telnet_service",
                                                "parameterType": "EMPTY"
                                        }
-                               ]
+                               ],
+                               "readmeComment": "Access the device with telnet to further unlock developer mode. See forum"
                        },
                        {
                                "property": "doorbell_volume",
index 5613a2508e1ed430fc3674f6abd1829c3910ee14..cbf4beec331406c3fa97b100c1f4cfcfb4868667 100644 (file)
@@ -71,6 +71,9 @@
                                                }
                                        }
                                ],
+                               "tags": [
+                                       "Control"
+                               ],
                                "readmeComment": "This channel accepts `start`, `stop`, `findme` and `dock`."
                        },
                        {
                                "channel": "status",
                                "channelType": "MijiaVacuumV2_status",
                                "type": "Number",
+                               "stateDescription": {
+                                       "readOnly": true,
+                                       "options": [
+                                               {
+                                                       "value": "1",
+                                                       "label": "Idle"
+                                               },
+                                               {
+                                                       "value": "2",
+                                                       "label": "Sweeping"
+                                               },
+                                               {
+                                                       "value": "3",
+                                                       "label": "Paused"
+                                               },
+                                               {
+                                                       "value": "4",
+                                                       "label": "Error"
+                                               },
+                                               {
+                                                       "value": "5",
+                                                       "label": "Charging"
+                                               },
+                                               {
+                                                       "value": "6",
+                                                       "label": "Go Charging"
+                                               }
+                                       ]
+                               },
                                "refresh": true,
                                "actions": [],
-                               "value-list": [
-                                       {
-                                               "value": 1,
-                                               "description": "Idle"
-                                       },
-                                       {
-                                               "value": 2,
-                                               "description": "Sweeping"
-                                       },
-                                       {
-                                               "value": 3,
-                                               "description": "Paused"
-                                       },
-                                       {
-                                               "value": 4,
-                                               "description": "Error"
-                                       },
-                                       {
-                                               "value": 5,
-                                               "description": "Charging"
-                                       },
-                                       {
-                                               "value": 6,
-                                               "description": "Go Charging"
-                                       }
+                               "tags": [
+                                       "Status"
                                ],
                                "readmeComment": "Value mapping [1\u003d\"Idle\",2\u003d\"Sweeping\",3\u003d\"Paused\",4\u003d\"Error\",5\u003d\"Charging\",6\u003d\"Go Charging\"]"
                        },
                                "channel": "fault",
                                "channelType": "MijiaVacuumV2_fault",
                                "type": "Number",
+                               "stateDescription": {
+                                       "readOnly": true,
+                                       "options": [
+                                               {
+                                                       "value": "0",
+                                                       "label": "No Faults"
+                                               },
+                                               {
+                                                       "value": "1",
+                                                       "label": "Left-wheel-error"
+                                               },
+                                               {
+                                                       "value": "2",
+                                                       "label": "Right-wheel-error"
+                                               },
+                                               {
+                                                       "value": "3",
+                                                       "label": "Cliff-error"
+                                               },
+                                               {
+                                                       "value": "4",
+                                                       "label": "Low-battery-error"
+                                               },
+                                               {
+                                                       "value": "5",
+                                                       "label": "Bump-error"
+                                               },
+                                               {
+                                                       "value": "6",
+                                                       "label": "Main-brush-error"
+                                               },
+                                               {
+                                                       "value": "7",
+                                                       "label": "Side-brush-error"
+                                               },
+                                               {
+                                                       "value": "8",
+                                                       "label": "Fan-motor-error"
+                                               },
+                                               {
+                                                       "value": "9",
+                                                       "label": "Dustbin-error"
+                                               },
+                                               {
+                                                       "value": "10",
+                                                       "label": "Charging-error"
+                                               },
+                                               {
+                                                       "value": "11",
+                                                       "label": "No-wate-error"
+                                               },
+                                               {
+                                                       "value": "12",
+                                                       "label": "Pick-up-error"
+                                               }
+                                       ]
+                               },
                                "refresh": true,
                                "actions": [],
-                               "value-list": [
-                                       {
-                                               "value": 0,
-                                               "description": "No Faults"
-                                       },
-                                       {
-                                               "value": 1,
-                                               "description": "Left-wheel-error"
-                                       },
-                                       {
-                                               "value": 2,
-                                               "description": "Right-wheel-error"
-                                       },
-                                       {
-                                               "value": 3,
-                                               "description": "Cliff-error"
-                                       },
-                                       {
-                                               "value": 4,
-                                               "description": "Low-battery-error"
-                                       },
-                                       {
-                                               "value": 5,
-                                               "description": "Bump-error"
-                                       },
-                                       {
-                                               "value": 6,
-                                               "description": "Main-brush-error"
-                                       },
-                                       {
-                                               "value": 7,
-                                               "description": "Side-brush-error"
-                                       },
-                                       {
-                                               "value": 8,
-                                               "description": "Fan-motor-error"
-                                       },
-                                       {
-                                               "value": 9,
-                                               "description": "Dustbin-error"
-                                       },
-                                       {
-                                               "value": 10,
-                                               "description": "Charging-error"
-                                       },
-                                       {
-                                               "value": 11,
-                                               "description": "No-wate-error"
-                                       },
-                                       {
-                                               "value": 12,
-                                               "description": "Pick-up-error"
-                                       }
+                               "tags": [
+                                       "Status"
                                ],
                                "readmeComment": "Value mapping [0\u003d\"No Faults\",1\u003d\"Left-wheel-error\",2\u003d\"Right-whelel-error\",3\u003d\"Cliff-error\",4\u003d\"Low-battery-error\",5\u003d\"Bump-error\",6\u003d\"Main-brush-error\",7\u003d\"Side-brush-error\",8\u003d\"Fan-motor-error\",9\u003d\"Dustbin-error\",10\u003d\"Charging-error\",11\u003d\"No-wate-error\",12\u003d\"Pick-up-error\"]"
                        },
                                "channel": "mode",
                                "channelType": "MijiaVacuumV2_mode",
                                "type": "Number",
+                               "stateDescription": {
+                                       "options": [
+                                               {
+                                                       "value": "1",
+                                                       "label": "Auto-clean"
+                                               },
+                                               {
+                                                       "value": "2",
+                                                       "label": "Spot-clean"
+                                               },
+                                               {
+                                                       "value": "3",
+                                                       "label": "Wallflow-clean"
+                                               }
+                                       ]
+                               },
                                "refresh": true,
                                "actions": [
                                        {
                                                "parameterType": "NUMBER"
                                        }
                                ],
-                               "value-list": [
-                                       {
-                                               "value": 1,
-                                               "description": "Auto-clean"
-                                       },
-                                       {
-                                               "value": 2,
-                                               "description": "Spot-clean"
-                                       },
-                                       {
-                                               "value": 3,
-                                               "description": "Wallflow-clean"
-                                       }
+                               "tags": [
+                                       "Control"
                                ],
                                "readmeComment": "Value mapping [1\u003d\"Auto-clean\",2\u003d\"Spot-clean\",3\u003d\"Wallflow-clean\"]"
                        },
                                "channel": "target-water-level",
                                "channelType": "MijiaVacuumV2_target-water-level",
                                "type": "Number",
+                               "stateDescription": {
+                                       "readOnly": true,
+                                       "options": [
+                                               {
+                                                       "value": "1",
+                                                       "label": "Level1"
+                                               },
+                                               {
+                                                       "value": "2",
+                                                       "label": "Level2"
+                                               },
+                                               {
+                                                       "value": "3",
+                                                       "label": "Level3"
+                                               }
+                                       ]
+                               },
                                "refresh": true,
                                "actions": [
                                        {
                                                "parameterType": "NUMBER"
                                        }
                                ],
-                               "value-list": [
-                                       {
-                                               "value": 1,
-                                               "description": "Level1"
-                                       },
-                                       {
-                                               "value": 2,
-                                               "description": "Level2"
-                                       },
-                                       {
-                                               "value": 3,
-                                               "description": "Level3"
-                                       }
+                               "tags": [
+                                       "Setpoint"
                                ],
                                "readmeComment": "Value mapping [1\u003d\"Level1\",2\u003d\"Level2\",3\u003d\"Level3\"]"
                        },
                                "channel": "fan-level",
                                "channelType": "MijiaVacuumV2_fan-level",
                                "type": "Number",
+                               "stateDescription": {
+                                       "options": [
+                                               {
+                                                       "value": "0",
+                                                       "label": "Silence"
+                                               },
+                                               {
+                                                       "value": "1",
+                                                       "label": "Stanrd"
+                                               },
+                                               {
+                                                       "value": "2",
+                                                       "label": "Middle"
+                                               },
+                                               {
+                                                       "value": "3",
+                                                       "label": "Enchance"
+                                               }
+                                       ]
+                               },
                                "refresh": true,
                                "actions": [
                                        {
                                                "parameterType": "NUMBER"
                                        }
                                ],
-                               "value-list": [
-                                       {
-                                               "value": 0,
-                                               "description": "Silence"
-                                       },
-                                       {
-                                               "value": 1,
-                                               "description": "Stanrd"
-                                       },
-                                       {
-                                               "value": 2,
-                                               "description": "Middle"
-                                       },
-                                       {
-                                               "value": 3,
-                                               "description": "Enchance"
-                                       }
+                               "tags": [
+                                       "Setpoint"
                                ],
                                "readmeComment": "Value mapping [0\u003d\"Silence\",1\u003d\"Stanrd\",2\u003d\"Middle\",3\u003d\"Enchance\"]"
                        },
                                "channel": "charging-state",
                                "channelType": "MijiaVacuumV2_charging-state",
                                "type": "Number",
+                               "stateDescription": {
+                                       "readOnly": true,
+                                       "options": [
+                                               {
+                                                       "value": "0",
+                                                       "label": "Not-charging"
+                                               },
+                                               {
+                                                       "value": "1",
+                                                       "label": "Charging"
+                                               },
+                                               {
+                                                       "value": "2",
+                                                       "label": "Charging-competely"
+                                               }
+                                       ]
+                               },
                                "refresh": true,
                                "actions": [],
-                               "value-list": [
-                                       {
-                                               "value": 0,
-                                               "description": "Not-charging"
-                                       },
-                                       {
-                                               "value": 1,
-                                               "description": "Charging"
-                                       },
-                                       {
-                                               "value": 2,
-                                               "description": "Charging-competely"
-                                       }
+                               "tags": [
+                                       "Status"
                                ],
                                "readmeComment": "Value mapping [0\u003d\"Not-charging\",1\u003d\"Charging\",2\u003d\"Charging-competely\"]"
                        },
                                                "command": "set_properties",
                                                "parameterType": "ONOFFBOOL"
                                        }
+                               ],
+                               "tags": [
+                                       "Alarm"
                                ]
                        },
                        {
                                                "command": "set_properties",
                                                "parameterType": "NUMBER"
                                        }
+                               ],
+                               "tags": [
+                                       "Setpoint"
                                ]
                        },
                        {
                                "channelType": "miot_uint8",
                                "type": "Number",
                                "refresh": true,
-                               "actions": []
+                               "actions": [],
+                               "tags": [
+                                       "Status"
+                               ]
                        },
                        {
                                "property": "filter-left-time",
                                "channelType": "miot_uint16",
                                "type": "Number",
                                "refresh": true,
-                               "actions": []
+                               "actions": [],
+                               "tags": [
+                                       "Status"
+                               ]
                        },
                        {
                                "property": "brush-life-level",
                                "channelType": "miot_uint8",
                                "type": "Number",
                                "refresh": true,
-                               "actions": []
+                               "actions": [],
+                               "tags": [
+                                       "Status"
+                               ]
                        },
                        {
                                "property": "brush-left-time",
                                "channelType": "miot_uint16",
                                "type": "Number",
                                "refresh": true,
-                               "actions": []
+                               "actions": [],
+                               "tags": [
+                                       "Status"
+                               ]
                        },
                        {
                                "property": "brush-life-level1",
                                "channelType": "miot_uint8",
                                "type": "Number",
                                "refresh": true,
-                               "actions": []
+                               "actions": [],
+                               "tags": [
+                                       "Status"
+                               ]
                        },
                        {
                                "property": "brush-left-time1",
                                "channelType": "miot_uint16",
                                "type": "Number",
                                "refresh": true,
-                               "actions": []
+                               "actions": [],
+                               "tags": [
+                                       "Status"
+                               ]
                        },
                        {
                                "property": "clean-area",
                                "friendlyName": "Clean Record - Clean Area",
                                "channel": "clean-area",
                                "channelType": "miot_uint16",
-                               "type": "Number",
+                               "type": "Number:Area",
                                "refresh": true,
-                               "actions": []
+                               "actions": [],
+                               "tags": [
+                                       "Measurement"
+                               ]
                        },
                        {
                                "property": "clean-time",
                                "friendlyName": "Clean Record - Clean Time",
                                "channel": "clean-time",
                                "channelType": "miot_uint16",
-                               "type": "Number",
+                               "type": "Number:Time",
+                               "unit": "hours",
                                "refresh": true,
                                "actions": []
                        },
                                "channel": "language",
                                "channelType": "MijiaVacuumV2_language",
                                "type": "Number",
+                               "stateDescription": {
+                                       "options": [
+                                               {
+                                                       "value": "0",
+                                                       "label": "English"
+                                               },
+                                               {
+                                                       "value": "1",
+                                                       "label": "简体中文"
+                                               },
+                                               {
+                                                       "value": "2",
+                                                       "label": "Español"
+                                               },
+                                               {
+                                                       "value": "3",
+                                                       "label": "Русский"
+                                               },
+                                               {
+                                                       "value": "4",
+                                                       "label": "Italiano"
+                                               },
+                                               {
+                                                       "value": "5",
+                                                       "label": "Français"
+                                               },
+                                               {
+                                                       "value": "6",
+                                                       "label": "Deutsch"
+                                               },
+                                               {
+                                                       "value": "7",
+                                                       "label": "한국어"
+                                               },
+                                               {
+                                                       "value": "8",
+                                                       "label": "Polski"
+                                               }
+                                       ]
+                               },
                                "refresh": true,
                                "actions": [
                                        {
                                                "parameterType": "NUMBER"
                                        }
                                ],
-                               "value-list": [
-                                       {
-                                               "value": 0,
-                                               "description": "English"
-                                       },
-                                       {
-                                               "value": 1,
-                                               "description": "简体中文"
-                                       },
-                                       {
-                                               "value": 2,
-                                               "description": "Español"
-                                       },
-                                       {
-                                               "value": 3,
-                                               "description": "Русский"
-                                       },
-                                       {
-                                               "value": 4,
-                                               "description": "Italiano"
-                                       },
-                                       {
-                                               "value": 5,
-                                               "description": "Français"
-                                       },
-                                       {
-                                               "value": 6,
-                                               "description": "Deutsch"
-                                       },
-                                       {
-                                               "value": 7,
-                                               "description": "한국어"
-                                       },
-                                       {
-                                               "value": 8,
-                                               "description": "Polski"
-                                       }
-                               ],
                                "readmeComment": "Value mapping [0\u003d\"English\",1\u003d\"简体中文\",2\u003d\"Español\",3\u003d\"Русский\",4\u003d\"Italiano\",5\u003d\"Français\",6\u003d\"Deutsch\",7\u003d\"한국어\",8\u003d\"Polski\"]"
                        },
                        {
                                "channel": "mop-status",
                                "channelType": "MijiaVacuumV2_mop-status",
                                "type": "Number",
+                               "stateDescription": {
+                                       "readOnly": true,
+                                       "options": [
+                                               {
+                                                       "value": "0",
+                                                       "label": "Mop Uninstall"
+                                               },
+                                               {
+                                                       "value": "1",
+                                                       "label": "Mop Install"
+                                               }
+                                       ]
+                               },
                                "refresh": true,
                                "actions": [],
-                               "value-list": [
-                                       {
-                                               "value": 0,
-                                               "description": "Mop Uninstall"
-                                       },
-                                       {
-                                               "value": 1,
-                                               "description": "Mop Install"
-                                       }
-                               ],
                                "readmeComment": "Value mapping [0\u003d\"MopUninstall\",1\u003d\"MopInstall\"]"
                        }
                ],
index 10e6b704b8bcc41e2ed83a72a8055f49f515b6d3..b49a64da81afaf1c25e8268d2ecbfe8c8bbb16b7 100644 (file)
@@ -24,8 +24,8 @@
                                "friendlyName": "status",
                                "channel": "Status",
                                "type": "String",
-                               "customRefreshCommand": true,
                                "refresh": true,
+                               "customRefreshCommand": "true",
                                "ChannelGroup": "actions",
                                "actions": []
                        },
@@ -86,7 +86,7 @@
                                "readmeComment": "Value is the amount of water (ml) to heat. 2nd parameter in the json db is the water temperature"
                        }
                ],
-               "experimental": true,
-               "readmeComment": "This device does not allow for regular querying for the status. Hence the status is not updated for the action channels."
+               "readmeComment": "This device does not allow for regular querying for the status. Hence the status is not updated for the action channels.",
+               "experimental": true
        }
 }
index 71b0e0bc66747a435d5f2f91a159b56de5bc7175..6013504d1a7d72fd8207c742308d7b566f832f26 100644 (file)
                        }
                ]
        }
-}
\ No newline at end of file
+}
index 206785a9c7e36b77b4ddd8a2704d6334991c4079..23b67cd1240d5417f82f04952e4e9f4f004131a1 100644 (file)
                                "friendlyName": "Seat Temperature",
                                "channel": "seat_temp",
                                "type": "Number",
+                               "unit": "CELCIUS",
                                "refresh": true,
                                "actions": [
                                        {
                                                "command": "set_seat_temp",
                                                "parameterType": "NUMBER"
                                        }
+                               ],
+                               "category": "temperature",
+                               "tags": [
+                                       "Setpoint",
+                                       "Temperature"
                                ]
                        },
                        {
                                "friendlyName": "Water Temperature",
                                "channel": "water_temp_t",
                                "type": "Number",
+                               "unit": "CELCIUS",
                                "refresh": true,
                                "actions": [
                                        {
                                                "command": "set_water_temp_t",
                                                "parameterType": "NUMBER"
                                        }
+                               ],
+                               "category": "temperature",
+                               "tags": [
+                                       "Setpoint",
+                                       "Temperature"
                                ]
                        },
                        {
                                "friendlyName": "Fan Temperature",
                                "channel": "fan_temp",
                                "type": "Number",
+                               "unit": "CELCIUS",
                                "refresh": true,
                                "actions": [
                                        {
                                                "command": "set_fan_temp",
                                                "parameterType": "NUMBER"
                                        }
+                               ],
+                               "category": "temperature",
+                               "tags": [
+                                       "Setpoint",
+                                       "Temperature"
                                ]
                        },
                        {
index 3bb4391115d8eb7be2a285970aaa8cbf39a971bd..69b5b08969cc18ba3399a9b6491bcc04d1222e6e 100644 (file)
                                "friendlyName": "Temperature",
                                "channel": "temperature",
                                "channelType": "temperatureC",
-                               "unit": "CELCIUS",
                                "type": "Number:Temperature",
+                               "unit": "CELCIUS",
                                "refresh": true,
                                "ChannelGroup": "",
-                               "actions": []
+                               "actions": [],
+                               "category": "temperature",
+                               "tags": [
+                                       "Measurement",
+                                       "Temperature"
+                               ]
                        },
                        {
                                "property": "nl_br",
index 628093281cce530174c80e53e0bbda1ec45dc46a..3534873bca19e81dfd1e3d0667c10146cb3b8e90 100644 (file)
                                "friendlyName": "Temperature",
                                "channel": "temperature",
                                "channelType": "temperatureC",
-                               "unit": "CELCIUS",
                                "type": "Number:Temperature",
+                               "unit": "CELCIUS",
                                "refresh": true,
-                               "actions": []
+                               "actions": [],
+                               "category": "temperature",
+                               "tags": [
+                                       "Measurement",
+                                       "Temperature"
+                               ]
                        },
                        {
                                "property": "rinse",
index 79c7522f08ebb1d9faa2e7aaf27db0c4cfafb97b..820757adc1b0e1e0e210f4a85000cd1336df0821 100644 (file)
                                "refresh": true,
                                "transformation": "SecondsToHours",
                                "ChannelGroup": "Status",
-                               "actions": []
+                               "actions": [],
+                               "category": "time"
                        },
                        {
                                "property": "use_time",
                                "refresh": true,
                                "transformation": "SecondsToHours",
                                "ChannelGroup": "Status",
-                               "actions": []
+                               "actions": [],
+                               "category": "time"
                        },
                        {
                                "property": "motor1_speed",
                                "friendlyName": "Temperature",
                                "channel": "temperature",
                                "channelType": "temperatureC",
-                               "unit": "CELCIUS",
                                "type": "Number:Temperature",
+                               "unit": "CELCIUS",
                                "refresh": true,
                                "transformation": "/10",
                                "ChannelGroup": "Status",
-                               "actions": []
+                               "actions": [],
+                               "category": "temperature",
+                               "tags": [
+                                       "Measurement",
+                                       "Temperature"
+                               ]
                        },
                        {
                                "property": "purify_volume",
index 0bd264c7622e25ab411b5b049abc44e5134f7b4a..04e1305f66b1ddbcfaa73d161a7c64d4a097d305 100644 (file)
                                "refresh": true,
                                "transformation": "SecondsToHours",
                                "ChannelGroup": "Status",
-                               "actions": []
+                               "actions": [],
+                               "category": "time"
                        },
                        {
                                "property": "use_time",
                                "refresh": true,
                                "transformation": "SecondsToHours",
                                "ChannelGroup": "Status",
-                               "actions": []
+                               "actions": [],
+                               "category": "time"
                        },
                        {
                                "property": "motor1_speed",
                                "friendlyName": "Temperature",
                                "channel": "temperature",
                                "channelType": "temperatureC",
-                               "unit": "CELCIUS",
                                "type": "Number:Temperature",
+                               "unit": "CELCIUS",
                                "refresh": true,
                                "transformation": "/10",
                                "ChannelGroup": "Status",
-                               "actions": []
+                               "actions": [],
+                               "category": "temperature",
+                               "tags": [
+                                       "Measurement",
+                                       "Temperature"
+                               ]
                        },
                        {
                                "property": "purify_volume",
index 0fd833c8f766b34f4bcffe38be94cdfe6a115cf8..a0617549dc0ba01b411b2cdd6a7062374f666987 100644 (file)
                                "refresh": true,
                                "transformation": "SecondsToHours",
                                "ChannelGroup": "Status",
-                               "actions": []
+                               "actions": [],
+                               "category": "time"
                        },
                        {
                                "property": "motor1_speed",
                                "friendlyName": "Temperature",
                                "channel": "temperature",
                                "channelType": "temperatureC",
-                               "unit": "CELCIUS",
                                "type": "Number:Temperature",
+                               "unit": "CELCIUS",
                                "refresh": true,
                                "transformation": "/10",
                                "ChannelGroup": "Status",
-                               "actions": []
+                               "actions": [],
+                               "category": "temperature",
+                               "tags": [
+                                       "Measurement",
+                                       "Temperature"
+                               ]
                        },
                        {
                                "property": "child_lock",
index 57eafaec00d3d7b118b3c16c57d21ede5fb14c93..97ade3590613094a472499e2968dc1cdd2574de9 100644 (file)
@@ -43,7 +43,8 @@
                                "refresh": true,
                                "transformation": "SecondsToHours",
                                "ChannelGroup": "Status",
-                               "actions": []
+                               "actions": [],
+                               "category": "time"
                        },
                        {
                                "property": "angle",
index af68489f9bf42d3b71de40f62efb966d66680572..25589f9a8bbef3002a5dbd61cedab5fe2d33deec 100644 (file)
@@ -44,7 +44,8 @@
                                "refresh": true,
                                "transformation": "SecondsToHours",
                                "ChannelGroup": "Status",
-                               "actions": []
+                               "actions": [],
+                               "category": "time"
                        },
                        {
                                "property": "angle",
                                "friendlyName": "Temperature",
                                "channel": "temp_dec",
                                "type": "Number",
+                               "unit": "CELCIUS",
                                "refresh": true,
                                "transformation": "/10",
                                "ChannelGroup": "Status",
-                               "actions": []
+                               "actions": [],
+                               "category": "temperature",
+                               "tags": [
+                                       "Measurement",
+                                       "Temperature"
+                               ]
                        },
                        {
                                "property": "humidity",
index 07381cc13da238221422f6c8571f2510b0014b8d..b9617e9417795e07e1f375e9f71943d0342201e9 100644 (file)
@@ -43,7 +43,8 @@
                                "refresh": true,
                                "transformation": "SecondsToHours",
                                "ChannelGroup": "Status",
-                               "actions": []
+                               "actions": [],
+                               "category": "time"
                        },
                        {
                                "property": "angle",
index c372f09948f5d8f9ce9e0cd839102b5c7d0390d7..09129b5391b8f6163120e9e0a69c7cd009d657de 100644 (file)
                                "friendlyName": "Target Temperature",
                                "channel": "target_temperature",
                                "channelType": "temperatureC",
-                               "unit": "CELCIUS",
                                "type": "Number:Temperature",
+                               "unit": "CELCIUS",
                                "refresh": true,
                                "actions": [
                                        {
                                                "command": "set_target_temperature",
                                                "parameterType": "NUMBER"
                                        }
+                               ],
+                               "category": "temperature",
+                               "tags": [
+                                       "Setpoint",
+                                       "Temperature"
                                ]
                        },
                        {
                                "friendlyName": "Temperature",
                                "channel": "temperature",
                                "channelType": "temperatureC",
-                               "unit": "CELCIUS",
                                "type": "Number:Temperature",
+                               "unit": "CELCIUS",
                                "refresh": true,
-                               "actions": []
+                               "actions": [],
+                               "category": "temperature",
+                               "tags": [
+                                       "Measurement",
+                                       "Temperature"
+                               ]
                        },
                        {
                                "property": "use_time",
                                "unit": "hours",
                                "refresh": true,
                                "transformation": "SecondsToHours",
-                               "actions": []
+                               "actions": [],
+                               "category": "time"
                        }
                ],
                "experimental": true
index 2a9a0071091ba334f0347d95e6c24f7a1f3ea7ec..695b09e925f796b76cabcd869d92d95e5c6e145e 100644 (file)
                                                "command": "set_properties",
                                                "parameterType": "NUMBER"
                                        }
+                               ],
+                               "category": "temperature",
+                               "tags": [
+                                       "Setpoint",
+                                       "Temperature"
                                ]
                        },
                        {
                                "type": "Number:Temperature",
                                "unit": "CELCIUS",
                                "refresh": true,
-                               "actions": []
+                               "actions": [],
+                               "category": "temperature",
+                               "tags": [
+                                       "Measurement",
+                                       "Temperature"
+                               ]
                        },
                        {
                                "property": "brightness",
index 7d37d20a22899318d8fc3a402371f18eaa9e6772..d4cf7352d0531f709d4a63aeb2f431ce86fddf0e 100644 (file)
                                                "command": "set_properties",
                                                "parameterType": "NUMBER"
                                        }
+                               ],
+                               "category": "temperature",
+                               "tags": [
+                                       "Setpoint",
+                                       "Temperature"
                                ]
                        },
                        {
                                "type": "Number:Temperature",
                                "unit": "CELCIUS",
                                "refresh": true,
-                               "actions": []
+                               "actions": [],
+                               "category": "temperature",
+                               "tags": [
+                                       "Measurement",
+                                       "Temperature"
+                               ]
                        },
                        {
                                "property": "brightness",
                                "channel": "country-code",
                                "channelType": "ZhimiHeaterZb1_country-code",
                                "type": "Number",
+                               "stateDescription": {
+                                       "readOnly": true,
+                                       "options": [
+                                               {
+                                                       "value": "0",
+                                                       "label": "Unknown"
+                                               },
+                                               {
+                                                       "value": "1",
+                                                       "label": "US"
+                                               },
+                                               {
+                                                       "value": "82",
+                                                       "label": "KR"
+                                               },
+                                               {
+                                                       "value": "44",
+                                                       "label": "EU"
+                                               },
+                                               {
+                                                       "value": "81",
+                                                       "label": "JP"
+                                               },
+                                               {
+                                                       "value": "7",
+                                                       "label": "RU"
+                                               },
+                                               {
+                                                       "value": "86",
+                                                       "label": "CN"
+                                               },
+                                               {
+                                                       "value": "852",
+                                                       "label": "HK"
+                                               },
+                                               {
+                                                       "value": "886",
+                                                       "label": "TW"
+                                               },
+                                               {
+                                                       "value": "33",
+                                                       "label": "FR"
+                                               }
+                                       ]
+                               },
                                "refresh": true,
                                "actions": [
                                        {
                                                "parameterType": "NUMBER"
                                        }
                                ],
-                               "value-list": [
-                                       {
-                                               "value": 0,
-                                               "description": "Unknown"
-                                       },
-                                       {
-                                               "value": 1,
-                                               "description": "US"
-                                       },
-                                       {
-                                               "value": 82,
-                                               "description": "KR"
-                                       },
-                                       {
-                                               "value": 44,
-                                               "description": "EU"
-                                       },
-                                       {
-                                               "value": 81,
-                                               "description": "JP"
-                                       },
-                                       {
-                                               "value": 7,
-                                               "description": "RU"
-                                       },
-                                       {
-                                               "value": 86,
-                                               "description": "CN"
-                                       },
-                                       {
-                                               "value": 852,
-                                               "description": "HK"
-                                       },
-                                       {
-                                               "value": 886,
-                                               "description": "TW"
-                                       },
-                                       {
-                                               "value": 33,
-                                               "description": "FR"
-                                       }
-                               ],
                                "readmeComment": "Value mapping [0\u003d\"Unknown\",1\u003d\"US\",82\u003d\"KR\",44\u003d\"EU\",81\u003d\"JP\",7\u003d\"RU\",86\u003d\"CN\",852\u003d\"HK\",886\u003d\"TW\",33\u003d\"FR\"]"
                        }
                ],
index 5032a80b98ccb164aad2122e9aab763e7e9b37bb..bf5a291ff5231091ffa299d566a836dbd28163fc 100644 (file)
@@ -88,8 +88,8 @@
                                "channelType": "waterlevel",
                                "type": "Number",
                                "refresh": true,
-                               "ChannelGroup": "Status",
                                "transformation": "tankLevel",
+                               "ChannelGroup": "Status",
                                "actions": []
                        },
                        {
                                "refresh": true,
                                "transformation": "SecondsToHours",
                                "ChannelGroup": "Status",
-                               "actions": []
+                               "actions": [],
+                               "category": "time"
                        },
                        {
                                "property": "power_time",
                                "channel": "powerhours",
                                "channelType": "powerhours",
                                "type": "Number:Time",
+                               "unit": "hours",
                                "refresh": true,
                                "transformation": "SecondsToHours",
                                "ChannelGroup": "Status",
-                               "unit": "hours",
-                               "actions": []
+                               "actions": [],
+                               "category": "time"
                        },
                        {
                                "property": "speed_level",
                                "friendlyName": "Temperature",
                                "channel": "temperature",
                                "channelType": "temperatureC",
-                               "unit": "CELCIUS",
                                "type": "Number:Temperature",
+                               "unit": "CELCIUS",
                                "refresh": true,
                                "ChannelGroup": "Status",
-                               "actions": []
+                               "actions": [],
+                               "category": "temperature",
+                               "tags": [
+                                       "Measurement",
+                                       "Temperature"
+                               ]
                        },
                        {
                                "property": "child_lock",
index f7b54c51ddddb81591d07cf1d03b174d69a3337f..95b34cdd98ee6c133735e6d0fe86f58de593fc54 100644 (file)
                                "refresh": true,
                                "transformation": "SecondsToHours",
                                "ChannelGroup": "Status",
-                               "actions": []
+                               "actions": [],
+                               "category": "time"
                        },
                        {
                                "property": "speed",
                                "friendlyName": "Temperature",
                                "channel": "temperature",
                                "channelType": "temperatureC",
-                               "unit": "CELCIUS",
                                "type": "Number:Temperature",
+                               "unit": "CELCIUS",
                                "refresh": true,
                                "ChannelGroup": "Status",
-                               "actions": []
+                               "actions": [],
+                               "category": "temperature",
+                               "tags": [
+                                       "Measurement",
+                                       "Temperature"
+                               ]
                        },
                        {
                                "property": "child_lock",
index 0efa145670d6c73bf356006fba7a3f07a726ec1a..001815ea04e8b84b6ae3c19ffa2aef1c110b6fb9 100644 (file)
                                "refresh": true,
                                "transformation": "SecondsToHours",
                                "ChannelGroup": "Status",
-                               "actions": []
+                               "actions": [],
+                               "category": "time"
                        },
                        {
                                "property": "speed",
                                "friendlyName": "Temperature",
                                "channel": "temperature",
                                "channelType": "temperatureC",
-                               "unit": "CELCIUS",
                                "type": "Number:Temperature",
+                               "unit": "CELCIUS",
                                "refresh": true,
                                "transformation": "/10",
                                "ChannelGroup": "Status",
-                               "actions": []
+                               "actions": [],
+                               "category": "temperature",
+                               "tags": [
+                                       "Measurement",
+                                       "Temperature"
+                               ]
                        },
                        {
                                "property": "child_lock",
index 27ff304b47a232e88d79cf52b97e43ba50d7dbdc..f6fb815a5d10951874fd05f733c1c0beb23a6f56 100644 (file)
                                "friendlyName": "Temperature",
                                "channel": "temperature",
                                "channelType": "temperatureC",
-                               "unit": "CELCIUS",
                                "type": "Number:Temperature",
+                               "unit": "CELCIUS",
                                "refresh": true,
-                               "actions": []
+                               "actions": [],
+                               "category": "temperature",
+                               "tags": [
+                                       "Measurement",
+                                       "Temperature"
+                               ]
                        },
                        {
                                "property": "lp_autooff",