]> git.basschouten.com Git - openhab-addons.git/commitdiff
[miio] Move (remaining) channel details to json files (#11568)
authorMarcel <marcel@verpaalen.com>
Sat, 20 Nov 2021 11:32:10 +0000 (12:32 +0100)
committerGitHub <noreply@github.com>
Sat, 20 Nov 2021 11:32:10 +0000 (12:32 +0100)
Move remaining channel details to the respective channels to simplify
and avoid mistakes/errors.

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
42 files changed:
bundles/org.openhab.binding.miio/README.md
bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/basic/MiIoBasicChannel.java
bundles/org.openhab.binding.miio/src/main/resources/OH-INF/thing/commonChannels.xml
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.v2.json
bundles/org.openhab.binding.miio/src/main/resources/database/chuangmi.plug.v3.json
bundles/org.openhab.binding.miio/src/main/resources/database/cuco.plug.cp1-miot.json
bundles/org.openhab.binding.miio/src/main/resources/database/dmaker.airfresh.a1.json
bundles/org.openhab.binding.miio/src/main/resources/database/dmaker.airfresh.t2017.json
bundles/org.openhab.binding.miio/src/main/resources/database/dmaker.fan.p5.json
bundles/org.openhab.binding.miio/src/main/resources/database/lumi.curtain.hagl05-miot.json
bundles/org.openhab.binding.miio/src/main/resources/database/philips.light.bceiling1.json
bundles/org.openhab.binding.miio/src/main/resources/database/philips.light.bulb.json
bundles/org.openhab.binding.miio/src/main/resources/database/philips.light.candle.json
bundles/org.openhab.binding.miio/src/main/resources/database/philips.light.cbulb.json
bundles/org.openhab.binding.miio/src/main/resources/database/philips.light.ceil-miot.json
bundles/org.openhab.binding.miio/src/main/resources/database/philips.light.ceiling.json
bundles/org.openhab.binding.miio/src/main/resources/database/philips.light.mono.json
bundles/org.openhab.binding.miio/src/main/resources/database/philips.light.moonlight.json
bundles/org.openhab.binding.miio/src/main/resources/database/philips.light.rwread.json
bundles/org.openhab.binding.miio/src/main/resources/database/philips.light.sread1.json
bundles/org.openhab.binding.miio/src/main/resources/database/qmi.powerstrip.v1.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.v18-miot.json
bundles/org.openhab.binding.miio/src/main/resources/database/viomi.vacuum.v8.json
bundles/org.openhab.binding.miio/src/main/resources/database/xiaomi.aircondition.mc1-miot.json
bundles/org.openhab.binding.miio/src/main/resources/database/yeelink.bhf1.json
bundles/org.openhab.binding.miio/src/main/resources/database/yeelink.light.ceiling.json
bundles/org.openhab.binding.miio/src/main/resources/database/yeelink.light.ceiling2.json
bundles/org.openhab.binding.miio/src/main/resources/database/yeelink.light.ceiling4.json
bundles/org.openhab.binding.miio/src/main/resources/database/yeelink.light.light15.json
bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.airmonitor.v1.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.v1.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.za4.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 12a7a4729c424350406acc14b5e002081a262e71..1a3a95208019f94a5adf2c58f255e6e64f23da8b 100644 (file)
@@ -811,7 +811,7 @@ Note, not all the values need to be in the json file, e.g. a subset of the param
 | Channel              | Type                 | Description                              | Comment    |
 |----------------------|----------------------|------------------------------------------|------------|
 | power                | Switch               | Power                                    |            |
-| airFreshMode         | String               | Mode                                     |            |
+| airFreshMode         | String               | Mode                                     | Value mapping `["auto"="Auto","sleep"="Sleep","favourite"="Favorite"]` |
 | airFreshPTCPower     | Switch               | PTC                                      |            |
 | airFreshPTCStatus    | Switch               | PTC Status                               |            |
 | airFreshDisplay      | Switch               | Display                                  |            |
@@ -831,11 +831,11 @@ Note, not all the values need to be in the json file, e.g. a subset of the param
 | Channel              | Type                 | Description                              | Comment    |
 |----------------------|----------------------|------------------------------------------|------------|
 | power                | Switch               | Power                                    |            |
-| airFreshMode         | String               | Mode                                     |            |
+| airFreshMode         | String               | Mode                                     | Value mapping `["auto"="Auto","sleep"="Sleep","favourite"="Favorite"]` |
 | airFreshPTCPower     | Switch               | PTC                                      |            |
-| airFreshPtcLevel     | String               | PTC Level                                |            |
+| airFreshPtcLevel     | String               | PTC Level                                | Value mapping `["low"="Low","medium"="Medium","high"="High"]` |
 | airFreshPTCStatus    | Switch               | PTC Status                               |            |
-| airFreshDisplayDirection | String               | Screen direction                         |            |
+| airFreshDisplayDirection | String               | Screen direction                         | Value mapping `["forward"="Normal","left"="Left","right"="Right"]` |
 | airFreshDisplay      | Switch               | Display                                  |            |
 | airFreshChildLock    | Switch               | Child Lock                               |            |
 | airFreshSound        | Switch               | Sound                                    |            |
@@ -1427,14 +1427,16 @@ Note, not all the values need to be in the json file, e.g. a subset of the param
 | Channel              | Type                 | Description                              | Comment    |
 |----------------------|----------------------|------------------------------------------|------------|
 | fault                | Number               | Curtain - Device Fault                   | Value mapping `["0"="No faults"]` |
-| current-position     | Number               | Curtain - Current Position               |            |
+| motor_control        | Number               | Curtain - Motor Control                  | Value mapping `["0"="Pause","1"="Open","2"="Close","3"="auto"]` |
+| current-position     | Number:Dimensionless | Curtain - Current Position               |            |
 | status               | Number               | Curtain - Status                         | Value mapping `["0"="Stopped","1"="Opening","2"="Closing"]` |
-| target-position      | Number               | Curtain - Target Position                |            |
+| target-position      | Number:Dimensionless | Curtain - Target Position                |            |
 | manual-enabled       | Number               | curtain_cfg - Manual Enabled             | Value mapping `["0"="Disable","1"="Enable"]` |
-| polarity             | Number               | curtain_cfg - Polarity                   | Value mapping `["0"="Positive","1"="Reverse"]` |
+| polarity             | Number               | Curtain_cfg - Polarity                   | Value mapping `["0"="Positive","1"="Reverse"]` |
 | pos-limit            | Number               | curtain_cfg - Position Limit             | Value mapping `["0"="Unlimit","1"="Limit"]` |
-| en-night-tip-light   | Switch               | Set Night Tip Light                      | Value mapping `["0"="Disable","1"="Enable"]` |
-| run-time             | Number               | curtain_cfg - Run-time                   |            |
+| en_night_tip_light   | Number               | Curtain_cfg - En_night_tip_light         | Value mapping `["0"="Disable","1"="Enable"]` |
+| run-time             | Number               | Curtain_cfg - Run-time                   |            |
+| adjust_value         | Number               | Motor_controller - Adjust_value          |            |
 
 ### Mi Air Purifier virtual (<a name="lumi-gateway-mgl03">lumi.gateway.mgl03</a>) Channels
 
@@ -1772,6 +1774,7 @@ Note, not all the values need to be in the json file, e.g. a subset of the param
 | autoCct              | String               | Auto CCT                                 |            |
 | dimmingPeriod        | Number               | Dimming Period                           |            |
 | MibandStatus         | String               | Mi Band Status                           |            |
+| actions              | String               | Actions                                  | Value mapping `["light-brightness-down"="Light Brightness Down","light-brightness-up"="Light Brightness Up","light-toggle"="Light Toggle"]` |
 
 ### Philips ZhiRui Downlight (<a name="philips-light-downlight">philips.light.downlight</a>) Channels
 
@@ -1875,6 +1878,7 @@ Note, not all the values need to be in the json file, e.g. a subset of the param
 | autoCct              | String               | Auto CCT                                 |            |
 | dimmingPeriod        | Number               | Dimming Period                           |            |
 | MibandStatus         | String               | Mi Band Status                           |            |
+| actions              | String               | Actions                                  | Value mapping `["light-brightness-down"="Light Brightness Down","light-brightness-up"="Light Brightness Up","light-toggle"="Light Toggle"]` |
 
 ### Zhirui Ceiling Lamp Nordic 40W (<a name="philips-light-mceilm">philips.light.mceilm</a>) Channels
 
@@ -1890,6 +1894,7 @@ Note, not all the values need to be in the json file, e.g. a subset of the param
 | autoCct              | String               | Auto CCT                                 |            |
 | dimmingPeriod        | Number               | Dimming Period                           |            |
 | MibandStatus         | String               | Mi Band Status                           |            |
+| actions              | String               | Actions                                  | Value mapping `["light-brightness-down"="Light Brightness Down","light-brightness-up"="Light Brightness Up","light-toggle"="Light Toggle"]` |
 
 ### Zhirui Ceiling Lamp Nordic 28W (<a name="philips-light-mceils">philips.light.mceils</a>) Channels
 
@@ -1905,6 +1910,7 @@ Note, not all the values need to be in the json file, e.g. a subset of the param
 | autoCct              | String               | Auto CCT                                 |            |
 | dimmingPeriod        | Number               | Dimming Period                           |            |
 | MibandStatus         | String               | Mi Band Status                           |            |
+| actions              | String               | Actions                                  | Value mapping `["light-brightness-down"="Light Brightness Down","light-brightness-up"="Light Brightness Up","light-toggle"="Light Toggle"]` |
 
 ### Philips Smart Lamp (<a name="philips-light-mono1">philips.light.mono1</a>) Channels
 
@@ -1941,6 +1947,7 @@ Note, not all the values need to be in the json file, e.g. a subset of the param
 | autoCct              | String               | Auto CCT                                 |            |
 | dimmingPeriod        | Number               | Dimming Period                           |            |
 | MibandStatus         | String               | Mi Band Status                           |            |
+| actions              | String               | Actions                                  | Value mapping `["light-brightness-down"="Light Brightness Down","light-brightness-up"="Light Brightness Up","light-toggle"="Light Toggle"]` |
 
 ###  Zhirui Ceiling Lamp Black 40W (<a name="philips-light-obceim">philips.light.obceim</a>) Channels
 
@@ -1956,6 +1963,7 @@ Note, not all the values need to be in the json file, e.g. a subset of the param
 | autoCct              | String               | Auto CCT                                 |            |
 | dimmingPeriod        | Number               | Dimming Period                           |            |
 | MibandStatus         | String               | Mi Band Status                           |            |
+| actions              | String               | Actions                                  | Value mapping `["light-brightness-down"="Light Brightness Down","light-brightness-up"="Light Brightness Up","light-toggle"="Light Toggle"]` |
 
 ### Zhirui Ceiling Lamp Black 28W (<a name="philips-light-obceis">philips.light.obceis</a>) Channels
 
@@ -1971,6 +1979,7 @@ Note, not all the values need to be in the json file, e.g. a subset of the param
 | autoCct              | String               | Auto CCT                                 |            |
 | dimmingPeriod        | Number               | Dimming Period                           |            |
 | MibandStatus         | String               | Mi Band Status                           |            |
+| actions              | String               | Actions                                  | Value mapping `["light-brightness-down"="Light Brightness Down","light-brightness-up"="Light Brightness Up","light-toggle"="Light Toggle"]` |
 
 ### Mijia Philips Study Desk Lamp (<a name="philips-light-rwread">philips.light.rwread</a>) Channels
 
@@ -1996,6 +2005,7 @@ Note, not all the values need to be in the json file, e.g. a subset of the param
 | autoCct              | String               | Auto CCT                                 |            |
 | dimmingPeriod        | Number               | Dimming Period                           |            |
 | MibandStatus         | String               | Mi Band Status                           |            |
+| actions              | String               | Actions                                  | Value mapping `["light-brightness-down"="Light Brightness Down","light-brightness-up"="Light Brightness Up","light-toggle"="Light Toggle"]` |
 
 ### Zhirui Ceiling Lamp Starry 40W (<a name="philips-light-sceilm">philips.light.sceilm</a>) Channels
 
@@ -2011,6 +2021,7 @@ Note, not all the values need to be in the json file, e.g. a subset of the param
 | autoCct              | String               | Auto CCT                                 |            |
 | dimmingPeriod        | Number               | Dimming Period                           |            |
 | MibandStatus         | String               | Mi Band Status                           |            |
+| actions              | String               | Actions                                  | Value mapping `["light-brightness-down"="Light Brightness Down","light-brightness-up"="Light Brightness Up","light-toggle"="Light Toggle"]` |
 
 ### Zhirui Ceiling Lamp Starry 28W (<a name="philips-light-sceils">philips.light.sceils</a>) Channels
 
@@ -2026,6 +2037,7 @@ Note, not all the values need to be in the json file, e.g. a subset of the param
 | autoCct              | String               | Auto CCT                                 |            |
 | dimmingPeriod        | Number               | Dimming Period                           |            |
 | MibandStatus         | String               | Mi Band Status                           |            |
+| actions              | String               | Actions                                  | Value mapping `["light-brightness-down"="Light Brightness Down","light-brightness-up"="Light Brightness Up","light-toggle"="Light Toggle"]` |
 
 ### Philips EyeCare Connected Desk Lamp gen2. (<a name="philips-light-sread1">philips.light.sread1</a>) Channels
 
@@ -2077,6 +2089,7 @@ Note, not all the values need to be in the json file, e.g. a subset of the param
 | autoCct              | String               | Auto CCT                                 |            |
 | dimmingPeriod        | Number               | Dimming Period                           |            |
 | MibandStatus         | String               | Mi Band Status                           |            |
+| actions              | String               | Actions                                  | Value mapping `["light-brightness-down"="Light Brightness Down","light-brightness-up"="Light Brightness Up","light-toggle"="Light Toggle"]` |
 
 ### Zhirui Ceiling Lamp Gorgeous 40W (<a name="philips-light-xzceim">philips.light.xzceim</a>) Channels
 
@@ -2092,6 +2105,7 @@ Note, not all the values need to be in the json file, e.g. a subset of the param
 | autoCct              | String               | Auto CCT                                 |            |
 | dimmingPeriod        | Number               | Dimming Period                           |            |
 | MibandStatus         | String               | Mi Band Status                           |            |
+| actions              | String               | Actions                                  | Value mapping `["light-brightness-down"="Light Brightness Down","light-brightness-up"="Light Brightness Up","light-toggle"="Light Toggle"]` |
 
 ### Zhirui Ceiling Lamp Gorgeous 28W (<a name="philips-light-xzceis">philips.light.xzceis</a>) Channels
 
@@ -2107,6 +2121,7 @@ Note, not all the values need to be in the json file, e.g. a subset of the param
 | autoCct              | String               | Auto CCT                                 |            |
 | dimmingPeriod        | Number               | Dimming Period                           |            |
 | MibandStatus         | String               | Mi Band Status                           |            |
+| actions              | String               | Actions                                  | Value mapping `["light-brightness-down"="Light Brightness Down","light-brightness-up"="Light Brightness Up","light-toggle"="Light Toggle"]` |
 
 ### Philips ZhiYi Ceiling lamp (<a name="philips-light-zyceiling">philips.light.zyceiling</a>) Channels
 
@@ -2209,7 +2224,7 @@ Note, not all the values need to be in the json file, e.g. a subset of the param
 
 | Channel              | Type                 | Description                              | Comment    |
 |----------------------|----------------------|------------------------------------------|------------|
-| vacuumaction         | Number               | Vacuum Action                            |            |
+| vacuumaction         | Number               | Vacuum Action                            | Value mapping `["1"="Start","0"="Stop","2"="Pause"]` |
 | state                | Number               | State                                    |            |
 | mode                 | Number               | Mode                                     |            |
 | err_state            | Number               | Error                                    |            |
@@ -2229,7 +2244,7 @@ Note, not all the values need to be in the json file, e.g. a subset of the param
 
 | Channel              | Type                 | Description                              | Comment    |
 |----------------------|----------------------|------------------------------------------|------------|
-| vacuumaction         | Number               | Vacuum Action                            |            |
+| vacuumaction         | Number               | Vacuum Action                            | Value mapping `["1"="Start","0"="Stop","2"="Pause"]` |
 | state                | Number               | State                                    |            |
 | mode                 | Number               | Mode                                     |            |
 | err_state            | Number               | Error                                    |            |
@@ -2249,7 +2264,7 @@ Note, not all the values need to be in the json file, e.g. a subset of the param
 
 | Channel              | Type                 | Description                              | Comment    |
 |----------------------|----------------------|------------------------------------------|------------|
-| vacuumaction         | Number               | Vacuum Action                            |            |
+| vacuumaction         | Number               | Vacuum Action                            | Value mapping `["1"="Start","0"="Stop","2"="Pause"]` |
 | state                | Number               | State                                    |            |
 | mode                 | Number               | Mode                                     |            |
 | err_state            | Number               | Error                                    |            |
@@ -4976,7 +4991,7 @@ Note, not all the values need to be in the json file, e.g. a subset of the param
 | speedLevel           | Number               | Speed Level                              |            |
 | speed                | Number               | Speed                                    |            |
 | naturalLevel         | Number               | Natural Level                            |            |
-| move                 | String               | Move Direction                           |            |
+| move                 | String               | Move Direction                           | Value mapping `[""="None","left"="Left","right"="Right"]` |
 
 ### Smartmi Standing Fan 2S (<a name="zhimi-fan-za4">zhimi.fan.za4</a>) Channels
 
@@ -4993,7 +5008,7 @@ Note, not all the values need to be in the json file, e.g. a subset of the param
 | speedLevel           | Number               | Speed Level                              |            |
 | speed                | Number               | Speed                                    |            |
 | naturalLevel         | Number               | Natural Level                            |            |
-| move                 | String               | Move Direction                           |            |
+| move                 | String               | Move Direction                           | Value mapping `[""="None","left"="Left","right"="Right"]` |
 
 ### Smartmi Standing Fan 3  (<a name="zhimi-fan-za5">zhimi.fan.za5</a>) Channels
 
@@ -6320,14 +6335,16 @@ note: Autogenerated example. Replace the id (curtain) in the channel with your o
 ```
 Group G_curtain "Xiaomiyoupin Curtain Controller (Wi-Fi)" <status>
 Number fault "Curtain - Device Fault" (G_curtain) {channel="miio:basic:curtain:fault"}
-Number current_position "Curtain - Current Position" (G_curtain) {channel="miio:basic:curtain:current-position"}
+Number motor_control "Curtain - Motor Control" (G_curtain) {channel="miio:basic:curtain:motor_control"}
+Number:Dimensionless current_position "Curtain - Current Position" (G_curtain) {channel="miio:basic:curtain:current-position"}
 Number status "Curtain - Status" (G_curtain) {channel="miio:basic:curtain:status"}
-Number target_position "Curtain - Target Position" (G_curtain) {channel="miio:basic:curtain:target-position"}
+Number:Dimensionless target_position "Curtain - Target Position" (G_curtain) {channel="miio:basic:curtain:target-position"}
 Number manual_enabled "curtain_cfg - Manual Enabled" (G_curtain) {channel="miio:basic:curtain:manual-enabled"}
-Number polarity "curtain_cfg - Polarity" (G_curtain) {channel="miio:basic:curtain:polarity"}
+Number polarity "Curtain_cfg - Polarity" (G_curtain) {channel="miio:basic:curtain:polarity"}
 Number pos_limit "curtain_cfg - Position Limit" (G_curtain) {channel="miio:basic:curtain:pos-limit"}
-Switch en_night_tip_light "Set Night Tip Light" (G_curtain) {channel="miio:basic:curtain:en-night-tip-light"}
-Number run_time "curtain_cfg - Run-time" (G_curtain) {channel="miio:basic:curtain:run-time"}
+Number en_night_tip_light "Curtain_cfg - En_night_tip_light" (G_curtain) {channel="miio:basic:curtain:en_night_tip_light"}
+Number run_time "Curtain_cfg - Run-time" (G_curtain) {channel="miio:basic:curtain:run-time"}
+Number adjust_value "Motor_controller - Adjust_value" (G_curtain) {channel="miio:basic:curtain:adjust_value"}
 ```
 
 ### Mi Air Purifier virtual (lumi.gateway.mgl03) item file lines
@@ -6737,6 +6754,7 @@ String WallScene "Wall Scene" (G_light) {channel="miio:basic:light:WallScene"}
 String autoCct "Auto CCT" (G_light) {channel="miio:basic:light:autoCct"}
 Number dimmingPeriod "Dimming Period" (G_light) {channel="miio:basic:light:dimmingPeriod"}
 String MibandStatus "Mi Band Status" (G_light) {channel="miio:basic:light:MibandStatus"}
+String actions "Actions" (G_light) {channel="miio:basic:light:actions"}
 ```
 
 ### Philips ZhiRui Downlight (philips.light.downlight) item file lines
@@ -6861,6 +6879,7 @@ String WallScene "Wall Scene" (G_light) {channel="miio:basic:light:WallScene"}
 String autoCct "Auto CCT" (G_light) {channel="miio:basic:light:autoCct"}
 Number dimmingPeriod "Dimming Period" (G_light) {channel="miio:basic:light:dimmingPeriod"}
 String MibandStatus "Mi Band Status" (G_light) {channel="miio:basic:light:MibandStatus"}
+String actions "Actions" (G_light) {channel="miio:basic:light:actions"}
 ```
 
 ### Zhirui Ceiling Lamp Nordic 40W (philips.light.mceilm) item file lines
@@ -6879,6 +6898,7 @@ String WallScene "Wall Scene" (G_light) {channel="miio:basic:light:WallScene"}
 String autoCct "Auto CCT" (G_light) {channel="miio:basic:light:autoCct"}
 Number dimmingPeriod "Dimming Period" (G_light) {channel="miio:basic:light:dimmingPeriod"}
 String MibandStatus "Mi Band Status" (G_light) {channel="miio:basic:light:MibandStatus"}
+String actions "Actions" (G_light) {channel="miio:basic:light:actions"}
 ```
 
 ### Zhirui Ceiling Lamp Nordic 28W (philips.light.mceils) item file lines
@@ -6897,6 +6917,7 @@ String WallScene "Wall Scene" (G_light) {channel="miio:basic:light:WallScene"}
 String autoCct "Auto CCT" (G_light) {channel="miio:basic:light:autoCct"}
 Number dimmingPeriod "Dimming Period" (G_light) {channel="miio:basic:light:dimmingPeriod"}
 String MibandStatus "Mi Band Status" (G_light) {channel="miio:basic:light:MibandStatus"}
+String actions "Actions" (G_light) {channel="miio:basic:light:actions"}
 ```
 
 ### Philips Smart Lamp (philips.light.mono1) item file lines
@@ -6942,6 +6963,7 @@ String WallScene "Wall Scene" (G_light) {channel="miio:basic:light:WallScene"}
 String autoCct "Auto CCT" (G_light) {channel="miio:basic:light:autoCct"}
 Number dimmingPeriod "Dimming Period" (G_light) {channel="miio:basic:light:dimmingPeriod"}
 String MibandStatus "Mi Band Status" (G_light) {channel="miio:basic:light:MibandStatus"}
+String actions "Actions" (G_light) {channel="miio:basic:light:actions"}
 ```
 
 ###  Zhirui Ceiling Lamp Black 40W (philips.light.obceim) item file lines
@@ -6960,6 +6982,7 @@ String WallScene "Wall Scene" (G_light) {channel="miio:basic:light:WallScene"}
 String autoCct "Auto CCT" (G_light) {channel="miio:basic:light:autoCct"}
 Number dimmingPeriod "Dimming Period" (G_light) {channel="miio:basic:light:dimmingPeriod"}
 String MibandStatus "Mi Band Status" (G_light) {channel="miio:basic:light:MibandStatus"}
+String actions "Actions" (G_light) {channel="miio:basic:light:actions"}
 ```
 
 ### Zhirui Ceiling Lamp Black 28W (philips.light.obceis) item file lines
@@ -6978,6 +7001,7 @@ String WallScene "Wall Scene" (G_light) {channel="miio:basic:light:WallScene"}
 String autoCct "Auto CCT" (G_light) {channel="miio:basic:light:autoCct"}
 Number dimmingPeriod "Dimming Period" (G_light) {channel="miio:basic:light:dimmingPeriod"}
 String MibandStatus "Mi Band Status" (G_light) {channel="miio:basic:light:MibandStatus"}
+String actions "Actions" (G_light) {channel="miio:basic:light:actions"}
 ```
 
 ### Mijia Philips Study Desk Lamp (philips.light.rwread) item file lines
@@ -7009,6 +7033,7 @@ String WallScene "Wall Scene" (G_light) {channel="miio:basic:light:WallScene"}
 String autoCct "Auto CCT" (G_light) {channel="miio:basic:light:autoCct"}
 Number dimmingPeriod "Dimming Period" (G_light) {channel="miio:basic:light:dimmingPeriod"}
 String MibandStatus "Mi Band Status" (G_light) {channel="miio:basic:light:MibandStatus"}
+String actions "Actions" (G_light) {channel="miio:basic:light:actions"}
 ```
 
 ### Zhirui Ceiling Lamp Starry 40W (philips.light.sceilm) item file lines
@@ -7027,6 +7052,7 @@ String WallScene "Wall Scene" (G_light) {channel="miio:basic:light:WallScene"}
 String autoCct "Auto CCT" (G_light) {channel="miio:basic:light:autoCct"}
 Number dimmingPeriod "Dimming Period" (G_light) {channel="miio:basic:light:dimmingPeriod"}
 String MibandStatus "Mi Band Status" (G_light) {channel="miio:basic:light:MibandStatus"}
+String actions "Actions" (G_light) {channel="miio:basic:light:actions"}
 ```
 
 ### Zhirui Ceiling Lamp Starry 28W (philips.light.sceils) item file lines
@@ -7045,6 +7071,7 @@ String WallScene "Wall Scene" (G_light) {channel="miio:basic:light:WallScene"}
 String autoCct "Auto CCT" (G_light) {channel="miio:basic:light:autoCct"}
 Number dimmingPeriod "Dimming Period" (G_light) {channel="miio:basic:light:dimmingPeriod"}
 String MibandStatus "Mi Band Status" (G_light) {channel="miio:basic:light:MibandStatus"}
+String actions "Actions" (G_light) {channel="miio:basic:light:actions"}
 ```
 
 ### Philips EyeCare Connected Desk Lamp gen2. (philips.light.sread1) item file lines
@@ -7108,6 +7135,7 @@ String WallScene "Wall Scene" (G_light) {channel="miio:basic:light:WallScene"}
 String autoCct "Auto CCT" (G_light) {channel="miio:basic:light:autoCct"}
 Number dimmingPeriod "Dimming Period" (G_light) {channel="miio:basic:light:dimmingPeriod"}
 String MibandStatus "Mi Band Status" (G_light) {channel="miio:basic:light:MibandStatus"}
+String actions "Actions" (G_light) {channel="miio:basic:light:actions"}
 ```
 
 ### Zhirui Ceiling Lamp Gorgeous 40W (philips.light.xzceim) item file lines
@@ -7126,6 +7154,7 @@ String WallScene "Wall Scene" (G_light) {channel="miio:basic:light:WallScene"}
 String autoCct "Auto CCT" (G_light) {channel="miio:basic:light:autoCct"}
 Number dimmingPeriod "Dimming Period" (G_light) {channel="miio:basic:light:dimmingPeriod"}
 String MibandStatus "Mi Band Status" (G_light) {channel="miio:basic:light:MibandStatus"}
+String actions "Actions" (G_light) {channel="miio:basic:light:actions"}
 ```
 
 ### Zhirui Ceiling Lamp Gorgeous 28W (philips.light.xzceis) item file lines
@@ -7144,6 +7173,7 @@ String WallScene "Wall Scene" (G_light) {channel="miio:basic:light:WallScene"}
 String autoCct "Auto CCT" (G_light) {channel="miio:basic:light:autoCct"}
 Number dimmingPeriod "Dimming Period" (G_light) {channel="miio:basic:light:dimmingPeriod"}
 String MibandStatus "Mi Band Status" (G_light) {channel="miio:basic:light:MibandStatus"}
+String actions "Actions" (G_light) {channel="miio:basic:light:actions"}
 ```
 
 ### Philips ZhiYi Ceiling lamp (philips.light.zyceiling) item file lines
index 9391acd15bdadfb70f4bc97813f777985fc3ba25..33dc575743288bccb08520a5cadf3af6b81d046f 100644 (file)
@@ -48,6 +48,9 @@ public class MiIoBasicChannel {
     @SerializedName("channel")
     @Expose
     private @Nullable String channel;
+    @SerializedName("description")
+    @Expose
+    private @Nullable String description;
     @SerializedName("channelType")
     @Expose
     private @Nullable String channelType;
@@ -142,6 +145,15 @@ public class MiIoBasicChannel {
         this.channel = channel;
     }
 
+    public String getDescription() {
+        final String description = this.description;
+        return description != null ? description : "";
+    }
+
+    public void setDescription(@Nullable String description) {
+        this.description = description;
+    }
+
     public String getChannelType() {
         final @Nullable String ct = channelType;
         if (ct == null || ct.isEmpty()) {
index d6ff826d8f2ffd3309ad502247d7c0c2a86e9f4c..f0a6b876330ce749338fde9c6517aa7f29f597a6 100644 (file)
                <state readOnly="true"/>
        </channel-type>
 
-       <!-- Generic Numeric QtyType channels -->
-       <channel-type id="temperatureRW">
-               <item-type>Number:Temperature</item-type>
-               <label>Temperature</label>
-               <state pattern="%.1f %unit%"/>
-       </channel-type>
-       <channel-type id="time">
-               <item-type>Number:Time</item-type>
-               <label>Hours</label>
-               <state readOnly="true" pattern="%.0f %unit%"/>
-       </channel-type>
-
        <!-- Common Actions channels -->
        <channel-type id="commands" advanced="true">
                <item-type>String</item-type>
                <item-type>Switch</item-type>
                <label>Power On/Off</label>
        </channel-type>
-       <channel-type id="ambientPower">
-               <item-type>Switch</item-type>
-               <label>Ambient Power On/Off</label>
-       </channel-type>
-       <channel-type id="eyecare">
-               <item-type>Switch</item-type>
-               <label>Eyecare Mode On/Off</label>
-       </channel-type>
-       <channel-type id="clean">
-               <item-type>Switch</item-type>
-               <label>Cleaning On/Off</label>
-       </channel-type>
-       <channel-type id="mode">
-               <item-type>String</item-type>
-               <label>Mode</label>
-       </channel-type>
-       <channel-type id="modeGreen">
-               <item-type>String</item-type>
-               <label>Mode</label>
-               <state>
-                       <options>
-                               <option value="green">Green</option>
-                               <option value="normal">Normal</option>
-                       </options>
-               </state>
-       </channel-type>
-       <channel-type id="brightness">
-               <item-type>Number</item-type>
-               <label>Brightness</label>
-       </channel-type>
-       <channel-type id="ambientBrightness">
-               <item-type>Number</item-type>
-               <label>Ambient Brightness</label>
-       </channel-type>
-       <channel-type id="nightlightBrightness">
-               <item-type>Number</item-type>
-               <label>Nightlight Brightness</label>
-       </channel-type>
-       <channel-type id="illumination">
-               <item-type>Number</item-type>
-               <label>Environment Illumination</label>
-       </channel-type>
-       <channel-type id="led">
-               <item-type>Switch</item-type>
-               <label>LED</label>
-       </channel-type>
-       <channel-type id="colorMode">
-               <item-type>Number</item-type>
-               <label>Color Mode</label>
-       </channel-type>
-       <channel-type id="ambientColorMode">
-               <item-type>Number</item-type>
-               <label>Ambient Color Mode</label>
-       </channel-type>
-       <channel-type id="colorTemperature">
-               <item-type>Number</item-type>
-               <label>Color Temperature</label>
-       </channel-type>
-       <channel-type id="ambientColorTemperature">
-               <item-type>Number</item-type>
-               <label>Ambient Color Temperature</label>
-       </channel-type>
-       <channel-type id="cct">
-               <item-type>Number</item-type>
-               <label>Correlated Color Temperature</label>
-       </channel-type>
-       <channel-type id="scene">
-               <item-type>Number</item-type>
-               <label>Scene</label>
-       </channel-type>
-       <channel-type id="customScene">
-               <item-type>String</item-type>
-               <label>Custom Scene</label>
-       </channel-type>
-       <channel-type id="dv">
-               <item-type>Number</item-type>
-               <label>DV</label>
-       </channel-type>
-       <channel-type id="delayoff">
-               <item-type>Number</item-type>
-               <label>Delay Off</label>
-       </channel-type>
-       <channel-type id="act_det">
-               <item-type>Switch</item-type>
-               <label>AirAutoDetect</label>
-       </channel-type>
-       <channel-type id="buzzer">
-               <item-type>Switch</item-type>
-               <label>Buzzer</label>
-       </channel-type>
-       <channel-type id="childlock">
-               <item-type>Switch</item-type>
-               <label>Child Lock</label>
-       </channel-type>
-       <channel-type id="color">
-               <item-type>Color</item-type>
-               <label>Color</label>
-       </channel-type>
-       <channel-type id="ambientColor">
-               <item-type>Color</item-type>
-               <label>Ambient Color</label>
-       </channel-type>
-       <channel-type id="setHumidity">
-               <item-type>Number</item-type>
-               <label>Humidity Set</label>
-       </channel-type>
-
-       <!-- Common Properties channels -->
-       <channel-type id="temperature">
-               <item-type>Number</item-type>
-               <label>Temperature</label>
-               <state pattern="%.1f" readOnly="true"/>
-       </channel-type>
-       <channel-type id="temperatureC">
-               <item-type>Number:Temperature</item-type>
-               <label>Temperature</label>
-               <state readOnly="true" pattern="%.1f %unit%"/>
-       </channel-type>
-       <channel-type id="humidity">
-               <item-type>Number</item-type>
-               <label>Humidity</label>
-               <state pattern="%.1f %%" readOnly="true"/>
-       </channel-type>
-       <channel-type id="pm25">
-               <item-type>Number</item-type>
-               <label>PM2.5</label>
-               <description>Particulate Matter 2.5</description>
-               <state pattern="%.1f" readOnly="true"/>
-       </channel-type>
-       <channel-type id="co2">
-               <item-type>Number</item-type>
-               <label>CO2</label>
-               <description>Carbon Dioxide</description>
-               <state readOnly="true"/>
-       </channel-type>
-       <channel-type id="tvoc">
-               <item-type>Number</item-type>
-               <label>tVOC</label>
-               <description>Total Volatile Organic Compounds</description>
-               <state readOnly="true"/>
-       </channel-type>
-       <channel-type id="aqi">
-               <item-type>Number</item-type>
-               <label>Air Quality Index</label>
-               <state readOnly="true"/>
-       </channel-type>
-       <channel-type id="averageaqi">
-               <item-type>Number</item-type>
-               <label>Air Quality Index Average</label>
-               <state readOnly="true"/>
-       </channel-type>
-       <channel-type id="favoritelevel">
-               <item-type>Number</item-type>
-               <label>Favorite_level</label>
-               <state pattern="%.0f"/>
-       </channel-type>
-       <channel-type id="filtermaxlife">
-               <item-type>Number</item-type>
-               <label>Filter Max Life</label>
-               <state readOnly="true"/>
-       </channel-type>
-       <channel-type id="filterhours">
-               <item-type>Number:Time</item-type>
-               <label>Filter Use Time</label>
-               <state pattern="%.0f  %unit%" readOnly="true"/>
-       </channel-type>
-       <channel-type id="usedhours">
-               <item-type>Number:Time</item-type>
-               <label>Run Time</label>
-               <state pattern="%.0f %unit%" readOnly="true"/>
-       </channel-type>
-       <channel-type id="powerhours">
-               <item-type>Number:Time</item-type>
-               <label>Powered On Time</label>
-               <state pattern="%.0f %unit%" readOnly="true"/>
-       </channel-type>
-       <channel-type id="motorspeed">
-               <item-type>Number</item-type>
-               <label>Motor Speed</label>
-               <state pattern="%.0f rpm" readOnly="true"/>
-       </channel-type>
-       <channel-type id="filterlive">
-               <item-type>Number</item-type>
-               <label>Filter Life</label>
-               <state pattern="%.0f%%" readOnly="true"/>
-       </channel-type>
-       <channel-type id="purifyvolume">
-               <item-type>Number</item-type>
-               <label>Volume Purified</label>
-               <state pattern="%.0f m3" readOnly="true"/>
-       </channel-type>
-       <channel-type id="current">
-               <item-type>Number</item-type>
-               <label>Current</label>
-               <state pattern="%.2fA" readOnly="true"/>
-       </channel-type>
-       <channel-type id="powerUsage">
-               <item-type>Number</item-type>
-               <label>Power Usage</label>
-               <state pattern="%.0fW" readOnly="true"/>
-       </channel-type>
-       <channel-type id="powerPrice">
-               <item-type>Number</item-type>
-               <label>Power Price</label>
-               <state pattern="%.0f kW/h"/>
-       </channel-type>
-       <channel-type id="translevel">
-               <item-type>Number</item-type>
-               <label>Trans Level</label>
-       </channel-type>
-       <channel-type id="waterlevel">
-               <item-type>Number</item-type>
-               <label>Water Level</label>
-               <state pattern="%.0f %%"/>
-       </channel-type>
-       <channel-type id="dry">
-               <item-type>Switch</item-type>
-               <label>Dry</label>
-       </channel-type>
-       <channel-type id="depth">
-               <item-type>Number</item-type>
-               <label>Depth</label>
-       </channel-type>
-       <channel-type id="angleEnable">
-               <item-type>Switch</item-type>
-               <label>Enable Angle</label>
-       </channel-type>
-       <channel-type id="angle">
-               <item-type>Number</item-type>
-               <label>Angle</label>
-               <state min="0" max="360" step="1" pattern="%.0f" readOnly="false"/>
-       </channel-type>
-       <channel-type id="move">
-               <item-type>String</item-type>
-               <label>Move</label>
-               <state>
-                       <options>
-                               <option value="left">left</option>
-                               <option value="right">right</option>
-                       </options>
-               </state>
-       </channel-type>
-       <channel-type id="poweroffTime">
-               <item-type>Number</item-type>
-               <label>Power Off Timer</label>
-               <state min="0" max="28800" step="1" pattern="%.0f" readOnly="false"/>
-       </channel-type>
-       <channel-type id="speed">
-               <item-type>Number</item-type>
-               <label>Speed</label>
-               <state pattern="%.0f" readOnly="false"/>
-       </channel-type>
-       <channel-type id="speedLevel">
-               <item-type>Number</item-type>
-               <label>Speed Level</label>
-               <state min="0" max="99" step="1" pattern="%.0f%%" readOnly="false"/>
-       </channel-type>
-       <channel-type id="naturalLevel">
-               <item-type>Number</item-type>
-               <label>Natural Fan Level</label>
-               <state min="0" max="99" step="1" pattern="%.0f%%" readOnly="false"/>
-       </channel-type>
-       <channel-type id="acPower">
-               <item-type>Switch</item-type>
-               <label>AC Power</label>
-               <state readOnly="true"/>
-       </channel-type>
-       <channel-type id="bat_state">
-               <item-type>String</item-type>
-               <label>Battery State</label>
-               <state readOnly="true"/>
-       </channel-type>
-       <channel-type id="gonight">
-               <item-type>Switch</item-type>
-               <label>Go Night</label>
-               <state readOnly="false"/>
-       </channel-type>
-       <channel-type id="usb">
-               <item-type>Switch</item-type>
-               <label>USB Power</label>
-               <state readOnly="false"/>
-       </channel-type>
-       <channel-type id="humidifierMode">
-               <item-type>String</item-type>
-               <label>Mode</label>
-               <state>
-                       <options>
-                               <option value="auto">Auto</option>
-                               <option value="silent">Silent</option>
-                               <option value="medium">Medium</option>
-                               <option value="high">High</option>
-                       </options>
-               </state>
-       </channel-type>
-       <channel-type id="airFreshMode">
-               <item-type>String</item-type>
-               <label>Mode</label>
-               <state>
-                       <options>
-                               <option value="auto">Auto</option>
-                               <option value="favourite">Favorite</option>
-                               <option value="sleep">Sleep</option>
-                       </options>
-               </state>
-       </channel-type>
-       <channel-type id="airFreshFavoriteSpeed">
-               <item-type>Number</item-type>
-               <label>Favorite Speed</label>
-               <state min="0" max="300" pattern="%.0f" readOnly="false"/>
-       </channel-type>
-       <channel-type id="airFreshDisplay">
-               <item-type>Switch</item-type>
-               <label>Light On/Off</label>
-       </channel-type>
-       <channel-type id="airFreshSound">
-               <item-type>Switch</item-type>
-               <label>Sound On/Off</label>
-       </channel-type>
-       <channel-type id="airFreshChildLock">
-               <item-type>Switch</item-type>
-               <label>Child Lock On/Off</label>
-       </channel-type>
-       <channel-type id="airFreshDisplayDirection">
-               <item-type>String</item-type>
-               <label>Display Direction</label>
-               <state>
-                       <options>
-                               <option value="forward">Normal</option>
-                               <option value="left">Counterclockwise 90°</option>
-                               <option value="right">Clockwise 90°</option>
-                       </options>
-               </state>
-       </channel-type>
-       <channel-type id="airFreshPTCPower">
-               <item-type>Switch</item-type>
-               <label>PTC Power On/Off</label>
-       </channel-type>
-       <channel-type id="airFreshPTCStatus">
-               <item-type>Switch</item-type>
-               <label>PTC Status On/Off</label>
-               <state readOnly="true"/>
-       </channel-type>
-       <channel-type id="airFreshPtcLevel">
-               <item-type>String</item-type>
-               <label>PTC Level</label>
-               <state>
-                       <options>
-                               <option value="low">Low</option>
-                               <option value="medium">Medium</option>
-                               <option value="high">High</option>
-                       </options>
-               </state>
-       </channel-type>
-       <channel-type id="airFreshCurrentSpeed">
-               <item-type>Number</item-type>
-               <label>Current Speed</label>
-               <state pattern="%.0f m³/h" readOnly="true"/>
-       </channel-type>
-       <channel-type id="airFreshCO2">
-               <item-type>Number</item-type>
-               <label>CO2</label>
-               <state pattern="%.0f" readOnly="true"/>
-       </channel-type>
-       <channel-type id="airFreshPM25">
-               <item-type>Number</item-type>
-               <label>PM2.5</label>
-               <state pattern="%.0f" readOnly="true"/>
-       </channel-type>
-       <channel-type id="airFreshTemperature">
-               <item-type>Number</item-type>
-               <label>Temperature Outside</label>
-               <state pattern="%.0f°C" readOnly="true"/>
-       </channel-type>
-       <channel-type id="airFreshResetFilter">
-               <item-type>String</item-type>
-               <label>Reset Filter</label>
-               <state>
-                       <options>
-                               <option value="intermediate">Reset Filter</option>
-                               <option value="efficient">Reset Filter Pro</option>
-                       </options>
-               </state>
-       </channel-type>
-       <channel-type id="airFreshResetFilterA1">
-               <item-type>String</item-type>
-               <label>Reset Filter</label>
-               <state>
-                       <options>
-                               <option value="">Reset Filter</option>
-                       </options>
-               </state>
-       </channel-type>
-       <channel-type id="airFreshFilterPercents">
-               <item-type>Number</item-type>
-               <label>Filter Percents Remaining</label>
-               <state pattern="%.0f%%" readOnly="true"/>
-       </channel-type>
-       <channel-type id="airFreshFilterDays">
-               <item-type>Number</item-type>
-               <label>Filter Days Remaining</label>
-               <state pattern="%.0f" readOnly="true"/>
-       </channel-type>
-       <channel-type id="airFreshFilterProPercents">
-               <item-type>Number</item-type>
-               <label>Filter Pro Percents Remaining</label>
-               <state pattern="%.0f%%" readOnly="true"/>
-       </channel-type>
-       <channel-type id="airFreshFilterProDays">
-               <item-type>Number</item-type>
-               <label>Filter Pro Days Remaining</label>
-               <state pattern="%.0f" readOnly="true"/>
-       </channel-type>
-       <channel-type id="miot_uint8">
-               <item-type>Number</item-type>
-               <label>Generic Number</label>
-       </channel-type>
-       <channel-type id="miot_int32">
-               <item-type>Number</item-type>
-               <label>Generic Number</label>
-       </channel-type>
-       <channel-type id="miot_float">
-               <item-type>Number</item-type>
-               <label>Generic Number</label>
-       </channel-type>
-       <channel-type id="miot_string">
-               <item-type>String</item-type>
-               <label>Generic String</label>
-       </channel-type>
-       <channel-type id="miot_bool">
-               <item-type>Switch</item-type>
-               <label>Generic Bool</label>
-       </channel-type>
-       <channel-type id="LumiCurtainHagl05_fault">
-               <item-type>Number</item-type>
-               <label>Curtain - Device Fault</label>
-               <state>
-                       <options>
-                               <option value="0">No faults</option>
-                       </options>
-               </state>
-       </channel-type>
-       <channel-type id="LumiCurtainHagl05_status">
-               <item-type>Number</item-type>
-               <label>Curtain - Status</label>
-               <state>
-                       <options>
-                               <option value="0">Stopped</option>
-                               <option value="1">Opening</option>
-                               <option value="2">Closing</option>
-                       </options>
-               </state>
-       </channel-type>
-       <channel-type id="LumiCurtainHagl05_manual-enabled">
-               <item-type>Number</item-type>
-               <label>curtain_cfg - manual_enabled</label>
-               <state>
-                       <options>
-                               <option value="0">Disable</option>
-                               <option value="1">Enable</option>
-                       </options>
-               </state>
-       </channel-type>
-       <channel-type id="LumiCurtainHagl05_polarity">
-               <item-type>Number</item-type>
-               <label>curtain_cfg - polarity</label>
-               <state>
-                       <options>
-                               <option value="0">Positive</option>
-                               <option value="1">Reverse</option>
-                       </options>
-               </state>
-       </channel-type>
-       <channel-type id="LumiCurtainHagl05_pos-limit">
-               <item-type>Number</item-type>
-               <label>curtain_cfg - pos_limit</label>
-               <state>
-                       <options>
-                               <option value="0">Unlimit</option>
-                               <option value="1">Limit</option>
-                       </options>
-               </state>
-       </channel-type>
-       <channel-type id="LumiCurtainHagl05_en-night-tip-light">
-               <item-type>Switch</item-type>
-               <label>curtain_cfg - en_night_tip_light</label>
-               <state>
-                       <options>
-                               <option value="0">Disable</option>
-                               <option value="1">Enable</option>
-                       </options>
-               </state>
-       </channel-type>
-       <channel-type id="vacuumaction">
-               <item-type>Number</item-type>
-               <label>Vacuum Action</label>
-               <state>
-                       <options>
-                               <option value="0">Stop</option>
-                               <option value="1">Vacuum</option>
-                               <option value="2">Pause</option>
-                       </options>
-               </state>
-       </channel-type>
-       <channel-type id="dreameControl">
-               <item-type>String</item-type>
-               <label>Control Vacuum</label>
-               <command>
-                       <options>
-                               <option value="vacuum">Vacuum</option>
-                               <option value="pause">Pause</option>
-                               <option value="stop">Stop</option>
-                               <option value="dock">Dock</option>
-                               <option value="sweep">Sweep</option>
-                               <option value="stopsweep">Stop Sweep</option>
-                       </options>
-               </command>
-       </channel-type>
-       <channel-type id="MijiaVacuumV2_status">
-               <item-type>Number</item-type>
-               <label>Robot Cleaner - Status</label>
-               <state>
-                       <options>
-                               <option value="1">Idle</option>
-                               <option value="2">Sweeping</option>
-                               <option value="3">Paused</option>
-                               <option value="4">Error</option>
-                               <option value="5">Charging</option>
-                               <option value="6">Go Charging</option>
-                       </options>
-               </state>
-       </channel-type>
-       <channel-type id="MijiaVacuumV2_fault">
-               <item-type>Number</item-type>
-               <label>Robot Cleaner - Device Fault</label>
-               <state>
-                       <options>
-                               <option value="0">No Faults</option>
-                               <option value="1">Left-wheel-error</option>
-                               <option value="2">Right-wheel-error</option>
-                               <option value="3">Cliff-error</option>
-                               <option value="4">Low-battery-error</option>
-                               <option value="5">Bump-error</option>
-                               <option value="6">Main-brush-error</option>
-                               <option value="7">Side-brush-error</option>
-                               <option value="8">Fan-motor-error</option>
-                               <option value="9">Dustbin-error</option>
-                               <option value="10">Charging-error</option>
-                               <option value="11">No-wate-error</option>
-                               <option value="12">Pick-up-error</option>
-                       </options>
-               </state>
-       </channel-type>
-       <channel-type id="MijiaVacuumV2_mode">
-               <item-type>Number</item-type>
-               <label>Robot Cleaner - Mode</label>
-               <state>
-                       <options>
-                               <option value="1">Auto-clean</option>
-                               <option value="2">Spot-clean</option>
-                               <option value="3">Wallflow-clean</option>
-                       </options>
-               </state>
-       </channel-type>
-       <channel-type id="MijiaVacuumV2_target-water-level">
-               <item-type>Number</item-type>
-               <label>Robot Cleaner - Target Water Level</label>
-               <state>
-                       <options>
-                               <option value="1">Level1</option>
-                               <option value="2">Level2</option>
-                               <option value="3">Level3</option>
-                       </options>
-               </state>
-       </channel-type>
-       <channel-type id="MijiaVacuumV2_fan-level">
-               <item-type>Number</item-type>
-               <label>Robot Cleaner - Fan Level</label>
-               <state>
-                       <options>
-                               <option value="0">Silence</option>
-                               <option value="1">Stanrd</option>
-                               <option value="2">Middle</option>
-                               <option value="3">Enchance</option>
-                       </options>
-               </state>
-       </channel-type>
-       <channel-type id="MijiaVacuumV2_charging-state">
-               <item-type>Number</item-type>
-               <label>Battery - Charging State</label>
-               <state>
-                       <options>
-                               <option value="0">Not-charging</option>
-                               <option value="1">Charging</option>
-                               <option value="2">Charging-competely</option>
-                       </options>
-               </state>
-       </channel-type>
-       <channel-type id="MijiaVacuumV2_language">
-               <item-type>Number</item-type>
-               <label>Language - Language</label>
-               <state>
-                       <options>
-                               <option value="0">English</option>
-                               <option value="1">简体中文</option>
-                               <option value="2">Español</option>
-                               <option value="3">Русский</option>
-                               <option value="4">Italiano</option>
-                               <option value="5">Français</option>
-                               <option value="6">Deutsch</option>
-                               <option value="7">한국어</option>
-                               <option value="8">Polski</option>
-                       </options>
-               </state>
-       </channel-type>
-       <channel-type id="MijiaVacuumV2_mop-status">
-               <item-type>Number</item-type>
-               <label>Other Status - Mop Status</label>
-               <state>
-                       <options>
-                               <option value="0">Mop UnInstall</option>
-                               <option value="1">Mop Install</option>
-                       </options>
-               </state>
-       </channel-type>
-       <channel-type id="MijiaVacuumV2_action">
-               <item-type>String</item-type>
-               <label>Robot Cleaner - Actions</label>
-               <state>
-                       <options>
-                               <option value="start">Start Vacuum</option>
-                               <option value="stop">Stop Vacuum</option>
-                               <option value="dock">Go-To Dock</option>
-                       </options>
-               </state>
-       </channel-type>
-       <channel-type id="ZhimiHeaterZa2_target-temperature">
-               <item-type>Number:Temperature</item-type>
-               <label>Heater - Target Temperature</label>
-               <state min="16" max="28" step="1" pattern="%.1f %unit%">
-               </state>
-       </channel-type>
-       <channel-type id="ZhimiHeaterZb1_country-code">
-               <item-type>Number</item-type>
-               <label>Private-Service - Country-Code</label>
-               <state>
-                       <options>
-                               <option value="0">Unknown</option>
-                               <option value="1">US</option>
-                               <option value="7">RU</option>
-                               <option value="33">FR</option>
-                               <option value="44">EU</option>
-                               <option value="81">JP</option>
-                               <option value="82">KR</option>
-                               <option value="86">CN</option>
-                               <option value="852">HK</option>
-                               <option value="886">TW</option>
-                       </options>
-               </state>
-       </channel-type>
-       <channel-type id="humidifierOperationMode">
-               <item-type>Number</item-type>
-               <label>Operation Mode</label>
-               <state>
-                       <options>
-                               <option value="0">Auto</option>
-                               <option value="1">Low</option>
-                               <option value="2">Medium</option>
-                               <option value="3">High</option>
-                       </options>
-               </state>
-       </channel-type>
-       <channel-type id="humidifierLedBrightness">
-               <item-type>Number</item-type>
-               <label>LED Brightness</label>
-               <state>
-                       <options>
-                               <option value="0">Off</option>
-                               <option value="1">Dim</option>
-                               <option value="2">Bright</option>
-                       </options>
-               </state>
-       </channel-type>
-       <channel-type id="humidifierLastPressedButton">
-               <item-type>Number</item-type>
-               <label>Last Pressed Button</label>
-               <state>
-                       <options>
-                               <option value="0">No</option>
-                               <option value="1">LED</option>
-                               <option value="2">Power</option>
-                       </options>
-               </state>
-       </channel-type>
-       <channel-type id="countryCode">
-               <item-type>Number</item-type>
-               <label>Country</label>
-               <state>
-                       <options>
-                               <option value="0">Unlocked</option>
-                               <option value="1">US</option>
-                               <option value="82">KR</option>
-                               <option value="44">EU</option>
-                               <option value="81">JP</option>
-                               <option value="7">RU</option>
-                               <option value="86">CN</option>
-                               <option value="852">HK</option>
-                               <option value="886">TW</option>
-                               <option value="33">FR</option>
-                       </options>
-               </state>
-       </channel-type>
 
 </thing:thing-descriptions>
index a91b75b79ec9cc069650adbbcee76d4621702dc7..9c0ed5462a2178a0f049917286dad2c6d7762a38 100644 (file)
                                "property": "pm25",
                                "friendlyName": "PM2.5",
                                "channel": "pm25",
-                               "channelType": "pm25",
                                "type": "Number",
+                               "stateDescription": {
+                                       "pattern": "%.1f",
+                                       "readOnly": true
+                               },
                                "refresh": true,
                                "ChannelGroup": "Status",
                                "actions": []
@@ -30,7 +33,7 @@
                                "property": "co2e",
                                "friendlyName": "CO2e",
                                "channel": "co2",
-                               "channelType": "co2",
+                               "description": "Carbon Dioxide",
                                "type": "Number",
                                "refresh": true,
                                "ChannelGroup": "Status",
@@ -43,7 +46,7 @@
                                "property": "tvoc",
                                "friendlyName": "tVOC",
                                "channel": "tvoc",
-                               "channelType": "tvoc",
+                               "description": "Total Volatile Organic Compounds",
                                "type": "Number",
                                "refresh": true,
                                "ChannelGroup": "Status",
index 75202f8aaa16323a2562db95fafca3c40a4aba17..95f00dbd8aa7c8d30db8ebdea0d5dc0d843b2144 100644 (file)
                                "property": "pm25",
                                "friendlyName": "PM2.5",
                                "channel": "pm25",
-                               "channelType": "pm25",
                                "type": "Number",
+                               "stateDescription": {
+                                       "pattern": "%.1f",
+                                       "readOnly": true
+                               },
                                "refresh": true,
                                "ChannelGroup": "Status",
                                "actions": []
@@ -30,7 +33,7 @@
                                "property": "co2",
                                "friendlyName": "CO2",
                                "channel": "co2",
-                               "channelType": "co2",
+                               "description": "Carbon Dioxide",
                                "type": "Number",
                                "refresh": true,
                                "ChannelGroup": "Status",
@@ -45,7 +48,7 @@
                                "property": "tvoc",
                                "friendlyName": "tVOC",
                                "channel": "tvoc",
-                               "channelType": "tvoc",
+                               "description": "Total Volatile Organic Compounds",
                                "type": "Number",
                                "refresh": true,
                                "ChannelGroup": "Status",
index 3e2d57876aa5901efc7cf3c208d3bee4ba346e43..8c5e79c704fe7464092c8043538794b3a33a4c08 100644 (file)
@@ -10,7 +10,6 @@
                                "property": "power",
                                "friendlyName": "Power",
                                "channel": "power",
-                               "channelType": "power",
                                "type": "Switch",
                                "refresh": true,
                                "actions": [
@@ -46,7 +45,6 @@
                                "property": "wifi_led",
                                "friendlyName": "Indicator light",
                                "channel": "led",
-                               "channelType": "led",
                                "type": "Switch",
                                "refresh": true,
                                "actions": [
index 4d110f8e0dc53ab5eb9257f4dad01c6562ba88a2..854e43023f59b2af7666991ba2dfe6a6f7c00a62 100644 (file)
@@ -8,7 +8,6 @@
                                "property": "on",
                                "friendlyName": "Power",
                                "channel": "power",
-                               "channelType": "power",
                                "type": "Switch",
                                "refresh": true,
                                "actions": [
@@ -26,7 +25,6 @@
                                "property": "usb_on",
                                "friendlyName": "USB",
                                "channel": "usb",
-                               "channelType": "usb",
                                "type": "Switch",
                                "refresh": true,
                                "ChannelGroup": "actions",
index 243a5060b9969895dc2c7e47ddaf0c592bf82d78..f4197d977dc3b05b721465785cf9a4b7afc1ba3e 100644 (file)
@@ -8,7 +8,6 @@
                                "property": "power",
                                "friendlyName": "Power",
                                "channel": "power",
-                               "channelType": "power",
                                "type": "Switch",
                                "refresh": true,
                                "actions": [
@@ -26,7 +25,6 @@
                                "property": "usb_on",
                                "friendlyName": "USB",
                                "channel": "usb",
-                               "channelType": "usb",
                                "type": "Switch",
                                "refresh": true,
                                "ChannelGroup": "actions",
index 4670777563b83aabe99a4998d88217b837648e5b..28f0aaa2ee77cd7a2005cb9be5324decaf8cdc33 100644 (file)
@@ -10,7 +10,6 @@
                                "property": "power",
                                "friendlyName": "Power",
                                "channel": "power",
-                               "channelType": "power",
                                "type": "Switch",
                                "refresh": true,
                                "actions": [
@@ -29,7 +28,6 @@
                                "property": "usb_on",
                                "friendlyName": "USB",
                                "channel": "usb",
-                               "channelType": "usb",
                                "type": "Switch",
                                "refresh": true,
                                "ChannelGroup": "actions",
@@ -62,7 +60,6 @@
                                "property": "wifi_led",
                                "friendlyName": "Wifi LED",
                                "channel": "led",
-                               "channelType": "led",
                                "type": "Switch",
                                "refresh": true,
                                "ChannelGroup": "actions",
index 970e625a6851292ae92c0d1df0300f42fa7a391d..c74bc4d3b92c9e67eec91ea97cdbacc11eb95387 100644 (file)
@@ -12,7 +12,6 @@
                                "piid": 4,
                                "friendlyName": "Device Information-CurrentFirmware Version",
                                "channel": "FirmwareRevision",
-                               "channelType": "miot_string",
                                "type": "String",
                                "refresh": true,
                                "actions": []
@@ -23,7 +22,6 @@
                                "piid": 1,
                                "friendlyName": "Device Information-Device Manufacturer",
                                "channel": "Manufacturer",
-                               "channelType": "miot_string",
                                "type": "String",
                                "refresh": true,
                                "actions": []
@@ -34,7 +32,6 @@
                                "piid": 2,
                                "friendlyName": "Device Information-Device Model",
                                "channel": "Model",
-                               "channelType": "miot_string",
                                "type": "String",
                                "refresh": true,
                                "actions": []
@@ -45,7 +42,6 @@
                                "piid": 3,
                                "friendlyName": "Device Information-Device Serial Number",
                                "channel": "SerialNumber",
-                               "channelType": "miot_string",
                                "type": "String",
                                "refresh": true,
                                "actions": []
@@ -56,7 +52,6 @@
                                "piid": 1,
                                "friendlyName": "Switch-Switch Status",
                                "channel": "On",
-                               "channelType": "miot_bool",
                                "type": "Switch",
                                "refresh": true,
                                "actions": [
index d0c1da4454bfba08847ca5e3194a80dd83852a01..35eb0c3abe90b490943457796f2009b43aadb8a3 100644 (file)
@@ -8,7 +8,6 @@
                                "property": "power",
                                "friendlyName": "Power",
                                "channel": "power",
-                               "channelType": "power",
                                "type": "Switch",
                                "refresh": true,
                                "actions": [
                                "property": "mode",
                                "friendlyName": "Mode",
                                "channel": "airFreshMode",
-                               "channelType": "airFreshMode",
                                "type": "String",
+                               "stateDescription": {
+                                       "options": [
+                                               {
+                                                       "value": "auto",
+                                                       "label": "Auto"
+                                               },
+                                               {
+                                                       "value": "sleep",
+                                                       "label": "Sleep"
+                                               },
+                                               {
+                                                       "value": "favourite",
+                                                       "label": "Favorite"
+                                               }
+                                       ]
+                               },
                                "refresh": true,
                                "actions": [
                                        {
                                ],
                                "tags": [
                                        "Control"
-                               ]
+                               ],
+                               "readmeComment": "Value mapping `[\"auto\"\u003d\"Auto\",\"sleep\"\u003d\"Sleep\",\"favourite\"\u003d\"Favorite\"]`"
                        },
                        {
                                "property": "ptc_on",
                                "friendlyName": "PTC",
                                "channel": "airFreshPTCPower",
-                               "channelType": "airFreshPTCPower",
                                "type": "Switch",
                                "refresh": true,
                                "actions": [
@@ -57,7 +71,6 @@
                                "property": "ptc_status",
                                "friendlyName": "PTC Status",
                                "channel": "airFreshPTCStatus",
-                               "channelType": "airFreshPTCStatus",
                                "type": "Switch",
                                "refresh": true,
                                "ChannelGroup": "Status",
@@ -67,7 +80,6 @@
                                "property": "display",
                                "friendlyName": "Display",
                                "channel": "airFreshDisplay",
-                               "channelType": "airFreshDisplay",
                                "type": "Switch",
                                "refresh": true,
                                "actions": [
@@ -81,7 +93,6 @@
                                "property": "child_lock",
                                "friendlyName": "Child Lock",
                                "channel": "airFreshChildLock",
-                               "channelType": "airFreshChildLock",
                                "type": "Switch",
                                "refresh": true,
                                "actions": [
                                "property": "sound",
                                "friendlyName": "Sound",
                                "channel": "airFreshSound",
-                               "channelType": "airFreshSound",
                                "type": "Switch",
                                "refresh": true,
                                "actions": [
                                "property": "pm25",
                                "friendlyName": "PM2.5",
                                "channel": "airFreshPM25",
-                               "channelType": "airFreshPM25",
                                "type": "Number",
+                               "stateDescription": {
+                                       "pattern": "%.0f"
+                               },
                                "refresh": true,
                                "ChannelGroup": "Status",
                                "actions": []
                                "property": "co2",
                                "friendlyName": "CO2",
                                "channel": "airFreshCO2",
-                               "channelType": "airFreshCO2",
                                "type": "Number",
+                               "stateDescription": {
+                                       "pattern": "%.0f"
+                               },
                                "refresh": true,
                                "ChannelGroup": "Status",
                                "actions": [],
                                "property": "control_speed",
                                "friendlyName": "Current Speed",
                                "channel": "airFreshCurrentSpeed",
-                               "channelType": "airFreshCurrentSpeed",
                                "type": "Number",
+                               "stateDescription": {
+                                       "pattern": "%.0f m³/h"
+                               },
                                "refresh": true,
                                "ChannelGroup": "Status",
                                "actions": []
                                "property": "favourite_speed",
                                "friendlyName": "Favorite Speed",
                                "channel": "airFreshFavoriteSpeed",
-                               "channelType": "airFreshFavoriteSpeed",
                                "type": "Number",
+                               "stateDescription": {
+                                       "minimum": 0,
+                                       "maximum": 300,
+                                       "pattern": "%.0f"
+                               },
                                "refresh": true,
                                "actions": [
                                        {
                                "property": "temperature_outside",
                                "friendlyName": "Temperature Outside",
                                "channel": "airFreshTemperature",
-                               "channelType": "airFreshTemperature",
                                "type": "Number",
+                               "stateDescription": {
+                                       "pattern": "%.0f°C"
+                               },
                                "refresh": true,
                                "ChannelGroup": "Status",
                                "actions": []
                                "property": "filter_rate",
                                "friendlyName": "Filter Percents Remaining",
                                "channel": "airFreshFilterPercents",
-                               "channelType": "airFreshFilterPercents",
                                "type": "Number",
+                               "stateDescription": {
+                                       "pattern": "%.0f%%"
+                               },
                                "refresh": true,
                                "actions": []
                        },
                                "property": "filter_day",
                                "friendlyName": "Filter Days Remaining",
                                "channel": "airFreshFilterDays",
-                               "channelType": "airFreshFilterDays",
                                "type": "Number",
+                               "stateDescription": {
+                                       "pattern": "%.0f"
+                               },
                                "refresh": true,
                                "ChannelGroup": "Status",
                                "actions": []
                                "property": "",
                                "friendlyName": "Reset Filter",
                                "channel": "airFreshResetFilterA1",
-                               "channelType": "airFreshResetFilterA1",
                                "type": "String",
                                "refresh": false,
                                "ChannelGroup": "actions",
index 8485af890692a25eba6c484141b9d30c8e6ac8c8..f1929aa4249192bce5bcdbbecdd36c9233d20a93 100644 (file)
@@ -8,7 +8,6 @@
                                "property": "power",
                                "friendlyName": "Power",
                                "channel": "power",
-                               "channelType": "power",
                                "type": "Switch",
                                "refresh": true,
                                "actions": [
                                "property": "mode",
                                "friendlyName": "Mode",
                                "channel": "airFreshMode",
-                               "channelType": "airFreshMode",
                                "type": "String",
+                               "stateDescription": {
+                                       "options": [
+                                               {
+                                                       "value": "auto",
+                                                       "label": "Auto"
+                                               },
+                                               {
+                                                       "value": "sleep",
+                                                       "label": "Sleep"
+                                               },
+                                               {
+                                                       "value": "favourite",
+                                                       "label": "Favorite"
+                                               }
+                                       ]
+                               },
                                "refresh": true,
                                "actions": [
                                        {
                                ],
                                "tags": [
                                        "Control"
-                               ]
+                               ],
+                               "readmeComment": "Value mapping `[\"auto\"\u003d\"Auto\",\"sleep\"\u003d\"Sleep\",\"favourite\"\u003d\"Favorite\"]`"
                        },
                        {
                                "property": "ptc_on",
                                "friendlyName": "PTC",
                                "channel": "airFreshPTCPower",
-                               "channelType": "airFreshPTCPower",
                                "type": "Switch",
                                "refresh": true,
                                "actions": [
                                "property": "ptc_level",
                                "friendlyName": "PTC Level",
                                "channel": "airFreshPtcLevel",
-                               "channelType": "airFreshPtcLevel",
                                "type": "String",
+                               "stateDescription": {
+                                       "options": [
+                                               {
+                                                       "value": "low",
+                                                       "label": "Low"
+                                               },
+                                               {
+                                                       "value": "medium",
+                                                       "label": "Medium"
+                                               },
+                                               {
+                                                       "value": "high",
+                                                       "label": "High"
+                                               }
+                                       ]
+                               },
                                "refresh": true,
                                "actions": [
                                        {
                                                "command": "set_ptc_level",
                                                "parameterType": "STRING"
                                        }
-                               ]
+                               ],
+                               "readmeComment": "Value mapping `[\"low\"\u003d\"Low\",\"medium\"\u003d\"Medium\",\"high\"\u003d\"High\"]`"
                        },
                        {
                                "property": "ptc_status",
                                "friendlyName": "PTC Status",
                                "channel": "airFreshPTCStatus",
-                               "channelType": "airFreshPTCStatus",
                                "type": "Switch",
                                "refresh": true,
                                "ChannelGroup": "Status",
                                "property": "screen_direction",
                                "friendlyName": "Screen direction",
                                "channel": "airFreshDisplayDirection",
-                               "channelType": "airFreshDisplayDirection",
                                "type": "String",
+                               "stateDescription": {
+                                       "options": [
+                                               {
+                                                       "value": "forward",
+                                                       "label": "Normal"
+                                               },
+                                               {
+                                                       "value": "left",
+                                                       "label": "Left"
+                                               },
+                                               {
+                                                       "value": "right",
+                                                       "label": "Right"
+                                               }
+                                       ]
+                               },
                                "refresh": true,
                                "actions": [
                                        {
                                                "command": "set_screen_direction",
                                                "parameterType": "STRING"
                                        }
-                               ]
+                               ],
+                               "readmeComment": "Value mapping `[\"forward\"\u003d\"Normal\",\"left\"\u003d\"Left\",\"right\"\u003d\"Right\"]`"
                        },
                        {
                                "property": "display",
                                "friendlyName": "Display",
                                "channel": "airFreshDisplay",
-                               "channelType": "airFreshDisplay",
                                "type": "Switch",
                                "refresh": true,
                                "actions": [
                                "property": "child_lock",
                                "friendlyName": "Child Lock",
                                "channel": "airFreshChildLock",
-                               "channelType": "airFreshChildLock",
                                "type": "Switch",
                                "refresh": true,
                                "actions": [
                                "property": "sound",
                                "friendlyName": "Sound",
                                "channel": "airFreshSound",
-                               "channelType": "airFreshSound",
                                "type": "Switch",
                                "refresh": true,
                                "actions": [
                                "property": "pm25",
                                "friendlyName": "PM2.5",
                                "channel": "airFreshPM25",
-                               "channelType": "airFreshPM25",
                                "type": "Number",
+                               "stateDescription": {
+                                       "pattern": "%.0f"
+                               },
                                "refresh": true,
                                "ChannelGroup": "Status",
                                "actions": []
                                "property": "co2",
                                "friendlyName": "CO2",
                                "channel": "airFreshCO2",
-                               "channelType": "airFreshCO2",
                                "type": "Number",
+                               "stateDescription": {
+                                       "pattern": "%.0f"
+                               },
                                "refresh": true,
                                "ChannelGroup": "Status",
                                "actions": [],
                                "property": "control_speed",
                                "friendlyName": "Current Speed",
                                "channel": "airFreshCurrentSpeed",
-                               "channelType": "airFreshCurrentSpeed",
                                "type": "Number",
+                               "stateDescription": {
+                                       "pattern": "%.0f m³/h"
+                               },
                                "refresh": true,
                                "ChannelGroup": "Status",
                                "actions": []
                                "property": "favourite_speed",
                                "friendlyName": "Favorite Speed",
                                "channel": "airFreshFavoriteSpeed",
-                               "channelType": "airFreshFavoriteSpeed",
                                "type": "Number",
+                               "stateDescription": {
+                                       "minimum": 0,
+                                       "maximum": 300,
+                                       "pattern": "%.0f"
+                               },
                                "refresh": true,
                                "actions": [
                                        {
                                "property": "temperature_outside",
                                "friendlyName": "Temperature Outside",
                                "channel": "airFreshTemperature",
-                               "channelType": "airFreshTemperature",
                                "type": "Number",
+                               "stateDescription": {
+                                       "pattern": "%.0f°C"
+                               },
                                "refresh": true,
                                "ChannelGroup": "Status",
                                "actions": []
                                "property": "filter_intermediate",
                                "friendlyName": "Filter Percents Remaining",
                                "channel": "airFreshFilterPercents",
-                               "channelType": "airFreshFilterPercents",
                                "type": "Number",
+                               "stateDescription": {
+                                       "pattern": "%.0f%%"
+                               },
                                "refresh": true,
                                "actions": []
                        },
                                "property": "filter_inter_day",
                                "friendlyName": "Filter Days Remaining",
                                "channel": "airFreshFilterDays",
-                               "channelType": "airFreshFilterDays",
                                "type": "Number",
+                               "stateDescription": {
+                                       "pattern": "%.0f"
+                               },
                                "refresh": true,
                                "ChannelGroup": "Status",
                                "actions": []
                                "property": "filter_efficient",
                                "friendlyName": "Filter Pro Percents Remaining",
                                "channel": "airFreshFilterProPercents",
-                               "channelType": "airFreshFilterProPercents",
                                "type": "Number",
+                               "stateDescription": {
+                                       "pattern": "%.0f%%"
+                               },
                                "refresh": true,
                                "ChannelGroup": "Status",
                                "actions": []
                                "property": "filter_effi_day",
                                "friendlyName": "Filter Pro Days Remaining",
                                "channel": "airFreshFilterProDays",
-                               "channelType": "airFreshFilterProDays",
                                "type": "Number",
+                               "stateDescription": {
+                                       "pattern": "%.0f"
+                               },
                                "refresh": true,
                                "ChannelGroup": "Status",
                                "actions": []
                                "property": "",
                                "friendlyName": "Reset Filter",
                                "channel": "airFreshResetFilter",
-                               "channelType": "airFreshResetFilter",
                                "type": "String",
                                "refresh": false,
                                "ChannelGroup": "actions",
index f032281ea9af0d19ffa097bb171a8bbe90277750..743a6a08caa537f93287206fbdfdda0fab4f8a86 100644 (file)
@@ -8,7 +8,6 @@
                                "property": "power",
                                "friendlyName": "Power",
                                "channel": "power",
-                               "channelType": "power",
                                "type": "Switch",
                                "refresh": true,
                                "actions": [
@@ -39,7 +38,6 @@
                                "property": "mode",
                                "friendlyName": "Mode",
                                "channel": "mode",
-                               "channelType": "mode",
                                "type": "Number",
                                "refresh": true,
                                "ChannelGroup": "actions",
                                "property": "roll_angle",
                                "friendlyName": "Angle",
                                "channel": "angle",
-                               "channelType": "angle",
                                "type": "Number",
+                               "stateDescription": {
+                                       "minimum": 0,
+                                       "maximum": 360,
+                                       "step": 1,
+                                       "pattern": "%.0f"
+                               },
                                "refresh": true,
                                "ChannelGroup": "actions",
                                "actions": [
                                "property": "speed",
                                "friendlyName": "Speed",
                                "channel": "speed",
-                               "channelType": "speed",
                                "type": "Number",
+                               "stateDescription": {
+                                       "pattern": "%.0f"
+                               },
                                "refresh": true,
                                "ChannelGroup": "actions",
                                "actions": [
index e1c562d57604520d4102f0b4ec70c1e54997905e..ce6fda7cb3bef7a59394d027dd6af11866f5f6cc 100644 (file)
@@ -12,7 +12,6 @@
                                "piid": 1,
                                "friendlyName": "Curtain - Device Fault",
                                "channel": "fault",
-                               "channelType": "LumiCurtainHagl05_fault",
                                "type": "Number",
                                "stateDescription": {
                                        "readOnly": true,
                                "actions": [],
                                "readmeComment": "Value mapping `[\"0\"\u003d\"No faults\"]`"
                        },
+                       {
+                               "property": "motor-control",
+                               "siid": 2,
+                               "piid": 2,
+                               "friendlyName": "Curtain - Motor Control",
+                               "channel": "motor_control",
+                               "type": "Number",
+                               "stateDescription": {
+                                       "options": [
+                                               {
+                                                       "value": "0",
+                                                       "label": "Pause"
+                                               },
+                                               {
+                                                       "value": "1",
+                                                       "label": "Open"
+                                               },
+                                               {
+                                                       "value": "2",
+                                                       "label": "Close"
+                                               },
+                                               {
+                                                       "value": "3",
+                                                       "label": "auto"
+                                               }
+                                       ]
+                               },
+                               "refresh": false,
+                               "actions": [
+                                       {
+                                               "command": "set_properties",
+                                               "parameterType": "NUMBER"
+                                       }
+                               ],
+                               "readmeComment": "Value mapping `[\"0\"\u003d\"Pause\",\"1\"\u003d\"Open\",\"2\"\u003d\"Close\",\"3\"\u003d\"auto\"]`"
+                       },
                        {
                                "property": "current-position",
                                "siid": 2,
                                "piid": 3,
                                "friendlyName": "Curtain - Current Position",
                                "channel": "current-position",
-                               "channelType": "miot_uint8",
-                               "type": "Number",
+                               "type": "Number:Dimensionless",
+                               "unit": "percentage",
+                               "stateDescription": {
+                                       "minimum": 0,
+                                       "maximum": 100,
+                                       "step": 1,
+                                       "pattern": "%.0f %unit%",
+                                       "readOnly": true
+                               },
                                "refresh": true,
                                "actions": []
                        },
@@ -44,7 +86,6 @@
                                "piid": 6,
                                "friendlyName": "Curtain - Status",
                                "channel": "status",
-                               "channelType": "LumiCurtainHagl05_status",
                                "type": "Number",
                                "stateDescription": {
                                        "readOnly": true,
                                "piid": 7,
                                "friendlyName": "Curtain - Target Position",
                                "channel": "target-position",
-                               "channelType": "miot_uint8",
-                               "type": "Number",
+                               "type": "Number:Dimensionless",
+                               "unit": "percentage",
+                               "stateDescription": {
+                                       "minimum": 0,
+                                       "maximum": 100,
+                                       "step": 1,
+                                       "pattern": "%.0f %unit%"
+                               },
                                "refresh": true,
                                "actions": [
                                        {
                                "piid": 1,
                                "friendlyName": "curtain_cfg - Manual Enabled",
                                "channel": "manual-enabled",
-                               "channelType": "LumiCurtainHagl05_manual-enabled",
                                "type": "Number",
                                "stateDescription": {
                                        "options": [
                                "property": "polarity",
                                "siid": 4,
                                "piid": 2,
-                               "friendlyName": "curtain_cfg - Polarity",
+                               "friendlyName": "Curtain_cfg - Polarity",
                                "channel": "polarity",
-                               "channelType": "LumiCurtainHagl05_polarity",
                                "type": "Number",
                                "stateDescription": {
                                        "options": [
                                "piid": 3,
                                "friendlyName": "curtain_cfg - Position Limit",
                                "channel": "pos-limit",
-                               "channelType": "LumiCurtainHagl05_pos-limit",
                                "type": "Number",
                                "stateDescription": {
                                        "options": [
                                "property": "en-night-tip-light",
                                "siid": 4,
                                "piid": 4,
-                               "friendlyName": "Set Night Tip Light",
-                               "channel": "en-night-tip-light",
-                               "channelType": "LumiCurtainHagl05_en-night-tip-light",
-                               "type": "Switch",
+                               "friendlyName": "Curtain_cfg - En_night_tip_light",
+                               "channel": "en_night_tip_light",
+                               "type": "Number",
                                "stateDescription": {
                                        "options": [
                                                {
                                "property": "run-time",
                                "siid": 4,
                                "piid": 5,
-                               "friendlyName": "curtain_cfg - Run-time",
+                               "friendlyName": "Curtain_cfg - Run-time",
                                "channel": "run-time",
-                               "channelType": "miot_int32",
                                "type": "Number",
+                               "stateDescription": {
+                                       "minimum": 0,
+                                       "maximum": 255,
+                                       "step": 1,
+                                       "pattern": "%.0f",
+                                       "readOnly": true
+                               },
                                "refresh": true,
                                "actions": []
+                       },
+                       {
+                               "property": "adjust-value",
+                               "siid": 5,
+                               "piid": 1,
+                               "friendlyName": "Motor_controller - Adjust_value",
+                               "channel": "adjust_value",
+                               "type": "Number",
+                               "stateDescription": {
+                                       "minimum": -100,
+                                       "maximum": 100,
+                                       "step": 1,
+                                       "pattern": "%.0f"
+                               },
+                               "refresh": false,
+                               "actions": [
+                                       {
+                                               "command": "set_properties",
+                                               "parameterType": "NUMBER"
+                                       }
+                               ]
                        }
                ],
                "experimental": true
index 69b4aad9962b0305fca96e15cd397d5cfd252c81..8998b0e8e293722a34af2fad0917058b41679892 100644 (file)
@@ -13,7 +13,6 @@
                                "property": "power",
                                "friendlyName": "Power",
                                "channel": "power",
-                               "channelType": "power",
                                "type": "Switch",
                                "refresh": true,
                                "actions": [
@@ -59,7 +58,6 @@
                                "property": "cct",
                                "friendlyName": "Correlated Color Temperature",
                                "channel": "cct",
-                               "channelType": "cct",
                                "type": "Dimmer",
                                "refresh": true,
                                "actions": [
@@ -73,7 +71,6 @@
                                "property": "snm",
                                "friendlyName": "Scene",
                                "channel": "scene",
-                               "channelType": "scene",
                                "type": "Number",
                                "refresh": true,
                                "actions": [
@@ -87,7 +84,6 @@
                                "property": "dv",
                                "friendlyName": "DV",
                                "channel": "dv",
-                               "channelType": "dv",
                                "type": "Number",
                                "refresh": true,
                                "ChannelGroup": "actions",
                                "property": "",
                                "friendlyName": "Delay Off",
                                "channel": "delayoff",
-                               "channelType": "delayoff",
                                "type": "Switch",
                                "refresh": false,
                                "ChannelGroup": "actions",
index 6285f85096d3884622294a00f1ae33e80bc9f346..8cfdb128422b7380c184b8d59642929ddc7c3216 100644 (file)
@@ -13,7 +13,6 @@
                                "property": "power",
                                "friendlyName": "Power",
                                "channel": "power",
-                               "channelType": "power",
                                "type": "Switch",
                                "refresh": true,
                                "actions": [
@@ -60,7 +59,6 @@
                                "property": "cct",
                                "friendlyName": "Correlated Color Temperature",
                                "channel": "cct",
-                               "channelType": "cct",
                                "type": "Dimmer",
                                "refresh": true,
                                "ChannelGroup": "actions",
@@ -75,7 +73,6 @@
                                "property": "snm",
                                "friendlyName": "Scene",
                                "channel": "scene",
-                               "channelType": "scene",
                                "type": "Number",
                                "refresh": true,
                                "ChannelGroup": "actions",
@@ -90,7 +87,6 @@
                                "property": "dv",
                                "friendlyName": "DV",
                                "channel": "dv",
-                               "channelType": "dv",
                                "type": "Number",
                                "refresh": true,
                                "ChannelGroup": "actions",
                                "property": "",
                                "friendlyName": "Delay Off",
                                "channel": "delayoff",
-                               "channelType": "delayoff",
                                "type": "Switch",
                                "refresh": false,
                                "ChannelGroup": "actions",
index 05e14e54371f3beb9608e34c0aed80e6b64cae16..517502b1554ce055567c5652704ea0471f7bf3a7 100644 (file)
@@ -9,7 +9,6 @@
                                "property": "power",
                                "friendlyName": "Power",
                                "channel": "power",
-                               "channelType": "power",
                                "type": "Switch",
                                "refresh": true,
                                "actions": [
@@ -56,7 +55,6 @@
                                "property": "cct",
                                "friendlyName": "Correlated Color Temperature",
                                "channel": "cct",
-                               "channelType": "cct",
                                "type": "Dimmer",
                                "refresh": true,
                                "ChannelGroup": "actions",
@@ -71,7 +69,6 @@
                                "property": "snm",
                                "friendlyName": "Scene",
                                "channel": "scene",
-                               "channelType": "scene",
                                "type": "Number",
                                "refresh": true,
                                "ChannelGroup": "actions",
@@ -86,7 +83,6 @@
                                "property": "",
                                "friendlyName": "Delay Off",
                                "channel": "delayoff",
-                               "channelType": "delayoff",
                                "type": "Switch",
                                "refresh": false,
                                "ChannelGroup": "actions",
index 99d6fde03a180efc52d581a303413b02530dcbe5..a7b8c4eaf9282efb0be6ca2cc66851866959899c 100644 (file)
@@ -10,7 +10,6 @@
                                "property": "power",
                                "friendlyName": "Power",
                                "channel": "power",
-                               "channelType": "power",
                                "type": "Switch",
                                "refresh": true,
                                "actions": [
@@ -57,7 +56,6 @@
                                "property": "cct",
                                "friendlyName": "Correlated Color Temperature",
                                "channel": "cct",
-                               "channelType": "cct",
                                "type": "Dimmer",
                                "refresh": true,
                                "ChannelGroup": "actions",
@@ -72,7 +70,6 @@
                                "property": "snm",
                                "friendlyName": "Scene",
                                "channel": "scene",
-                               "channelType": "scene",
                                "type": "Number",
                                "refresh": true,
                                "ChannelGroup": "actions",
                                "property": "",
                                "friendlyName": "Delay Off",
                                "channel": "delayoff",
-                               "channelType": "delayoff",
                                "type": "Switch",
                                "refresh": false,
                                "ChannelGroup": "actions",
index 5a45e63c8cb54aaea1d5089a1b93166544a8034d..2304d9a062d830fa2272ef15eb8503060b194970 100644 (file)
@@ -24,7 +24,6 @@
                                "piid": 1,
                                "friendlyName": "Power",
                                "channel": "on",
-                               "channelType": "miot_bool",
                                "type": "Switch",
                                "refresh": true,
                                "actions": [
@@ -44,7 +43,6 @@
                                "piid": 2,
                                "friendlyName": "Mode",
                                "channel": "mode",
-                               "channelType": "miot_uint8",
                                "type": "Number",
                                "refresh": true,
                                "actions": [
@@ -83,7 +81,6 @@
                                "piid": 4,
                                "friendlyName": "Color Temperature",
                                "channel": "cct",
-                               "channelType": "miot_uint32",
                                "type": "Number",
                                "refresh": true,
                                "actions": [
                                "piid": 1,
                                "friendlyName": "Delayed Turn-off",
                                "channel": "dv",
-                               "channelType": "miot_uint16",
                                "type": "Number",
+                               "stateDescription": {
+                                       "minimum": 0,
+                                       "maximum": 21600,
+                                       "step": 1,
+                                       "pattern": "%.0f %unit%"
+                               },
                                "refresh": true,
                                "actions": [
                                        {
                                "piid": 2,
                                "friendlyName": "Wall Scene Enable",
                                "channel": "WallSceneEn",
-                               "channelType": "miot_bool",
                                "type": "Switch",
                                "refresh": true,
                                "actions": [
                                "piid": 3,
                                "friendlyName": "Wall Scene",
                                "channel": "WallScene",
-                               "channelType": "miot_string",
                                "type": "String",
                                "refresh": true,
                                "actions": [
                                "piid": 4,
                                "friendlyName": "Auto CCT",
                                "channel": "autoCct",
-                               "channelType": "miot_string",
                                "type": "String",
                                "refresh": true,
                                "actions": [
                                "piid": 6,
                                "friendlyName": "Dimming Period",
                                "channel": "dimmingPeriod",
-                               "channelType": "miot_uint16",
                                "type": "Number",
+                               "stateDescription": {
+                                       "minimum": 0,
+                                       "maximum": 65535,
+                                       "step": 1,
+                                       "pattern": "%.0f"
+                               },
                                "refresh": true,
                                "actions": [
                                        {
                                "piid": 12,
                                "friendlyName": "Mi Band Status",
                                "channel": "MibandStatus",
-                               "channelType": "miot_string",
                                "type": "String",
                                "refresh": true,
                                "actions": []
+                       },
+                       {
+                               "property": "",
+                               "friendlyName": "Actions",
+                               "channel": "actions",
+                               "type": "String",
+                               "stateDescription": {
+                                       "options": [
+                                               {
+                                                       "value": "light-brightness-down",
+                                                       "label": "Light Brightness Down"
+                                               },
+                                               {
+                                                       "value": "light-brightness-up",
+                                                       "label": "Light Brightness Up"
+                                               },
+                                               {
+                                                       "value": "light-toggle",
+                                                       "label": "Light Toggle"
+                                               }
+                                       ]
+                               },
+                               "refresh": false,
+                               "actions": [
+                                       {
+                                               "command": "action",
+                                               "parameterType": "EMPTY",
+                                               "siid": 2,
+                                               "aiid": 1,
+                                               "condition": {
+                                                       "name": "matchValue",
+                                                       "parameters": [
+                                                               {
+                                                                       "matchValue": "light-brightness-down"
+                                                               }
+                                                       ]
+                                               }
+                                       },
+                                       {
+                                               "command": "action",
+                                               "parameterType": "EMPTY",
+                                               "siid": 2,
+                                               "aiid": 2,
+                                               "condition": {
+                                                       "name": "matchValue",
+                                                       "parameters": [
+                                                               {
+                                                                       "matchValue": "light-brightness-up"
+                                                               }
+                                                       ]
+                                               }
+                                       },
+                                       {
+                                               "command": "action",
+                                               "parameterType": "EMPTY",
+                                               "siid": 2,
+                                               "aiid": 3,
+                                               "condition": {
+                                                       "name": "matchValue",
+                                                       "parameters": [
+                                                               {
+                                                                       "matchValue": "light-toggle"
+                                                               }
+                                                       ]
+                                               }
+                                       }
+                               ],
+                               "readmeComment": "Value mapping `[\"light-brightness-down\"\u003d\"Light Brightness Down\",\"light-brightness-up\"\u003d\"Light Brightness Up\",\"light-toggle\"\u003d\"Light Toggle\"]`"
                        }
                ],
                "experimental": true
index 17e1051c3a0bc2cf05319a0eb1871ac6965ef654..42a4972717c911e1cf192241e1d625dac526cc7f 100644 (file)
@@ -9,7 +9,6 @@
                                "property": "power",
                                "friendlyName": "Power",
                                "channel": "power",
-                               "channelType": "power",
                                "type": "Switch",
                                "refresh": true,
                                "actions": [
@@ -56,7 +55,6 @@
                                "property": "cct",
                                "friendlyName": "Correlated Color Temperature",
                                "channel": "cct",
-                               "channelType": "cct",
                                "type": "Dimmer",
                                "refresh": true,
                                "ChannelGroup": "actions",
@@ -71,7 +69,6 @@
                                "property": "snm",
                                "friendlyName": "Scene",
                                "channel": "scene",
-                               "channelType": "scene",
                                "type": "Number",
                                "refresh": true,
                                "ChannelGroup": "actions",
index bebb00d60e8727eb202d0429aec3549264eed300..ada9d8256fac5325fa65907a2d377d319ba4288d 100644 (file)
@@ -8,7 +8,6 @@
                                "property": "power",
                                "friendlyName": "Power",
                                "channel": "power",
-                               "channelType": "power",
                                "type": "Switch",
                                "refresh": true,
                                "actions": [
@@ -55,7 +54,6 @@
                                "property": "scene_num",
                                "friendlyName": "Scene",
                                "channel": "scene",
-                               "channelType": "scene",
                                "type": "Number",
                                "refresh": true,
                                "ChannelGroup": "actions",
index bb705f6ac244f61c0a4cdab3a26f777217759d1b..2ec405f496a853944f230fc831ea08008b726bde 100644 (file)
@@ -8,7 +8,6 @@
                                "property": "pow",
                                "friendlyName": "Power",
                                "channel": "power",
-                               "channelType": "power",
                                "type": "Switch",
                                "refresh": true,
                                "actions": [
@@ -51,7 +50,6 @@
                                "property": "cct",
                                "friendlyName": "Correlated Color Temperature",
                                "channel": "cct",
-                               "channelType": "cct",
                                "type": "Dimmer",
                                "refresh": true,
                                "ChannelGroup": "actions",
@@ -66,7 +64,6 @@
                                "property": "snm",
                                "friendlyName": "Scene",
                                "channel": "scene",
-                               "channelType": "scene",
                                "type": "Number",
                                "refresh": true,
                                "ChannelGroup": "actions",
@@ -81,7 +78,6 @@
                                "property": "dv",
                                "friendlyName": "DV",
                                "channel": "dv",
-                               "channelType": "dv",
                                "type": "Number",
                                "refresh": true,
                                "ChannelGroup": "actions",
@@ -95,7 +91,6 @@
                                "property": "",
                                "friendlyName": "Go Night",
                                "channel": "gonight",
-                               "channelType": "gonight",
                                "type": "Switch",
                                "refresh": false,
                                "ChannelGroup": "actions",
                                "property": "",
                                "friendlyName": "Delay Off",
                                "channel": "delayoff",
-                               "channelType": "delayoff",
                                "type": "Switch",
                                "refresh": false,
                                "ChannelGroup": "actions",
index b3f9279f20103c3847cf1e5bb9197767234fb1ab..5e74a457854483870abca11178e301a362a167f9 100644 (file)
@@ -8,7 +8,6 @@
                                "property": "power",
                                "friendlyName": "Power",
                                "channel": "power",
-                               "channelType": "power",
                                "type": "Switch",
                                "refresh": true,
                                "actions": [
@@ -55,7 +54,6 @@
                                "property": "snm",
                                "friendlyName": "Scene",
                                "channel": "scene",
-                               "channelType": "scene",
                                "type": "Number",
                                "refresh": true,
                                "ChannelGroup": "actions",
@@ -83,7 +81,6 @@
                                "property": "dv",
                                "friendlyName": "DV",
                                "channel": "dv",
-                               "channelType": "dv",
                                "type": "Number",
                                "refresh": true,
                                "ChannelGroup": "actions",
index 7b4237ce981d252a0fdf4c7fad9bab5dfc1a375f..42b02375d1daec0fbcdbf5ab8352384cefb02f55 100644 (file)
@@ -9,7 +9,6 @@
                                "property": "power",
                                "friendlyName": "Power",
                                "channel": "power",
-                               "channelType": "power",
                                "type": "Switch",
                                "refresh": true,
                                "actions": [
@@ -56,7 +55,6 @@
                                "property": "ambstatus",
                                "friendlyName": "Ambient Power",
                                "channel": "ambientPower",
-                               "channelType": "ambientPower",
                                "type": "Switch",
                                "refresh": true,
                                "ChannelGroup": "actions",
@@ -71,7 +69,6 @@
                                "property": "ambvalue",
                                "friendlyName": "Ambient Brightness",
                                "channel": "ambientBrightness",
-                               "channelType": "ambientBrightness",
                                "type": "Number",
                                "refresh": true,
                                "ChannelGroup": "actions",
                                "property": "dvalue",
                                "friendlyName": "Ambient Illumination",
                                "channel": "illumination",
-                               "channelType": "illumination",
                                "type": "Number",
+                               "stateDescription": {
+                                       "pattern": "%.1f",
+                                       "readOnly": true
+                               },
                                "refresh": true,
                                "actions": []
                        },
@@ -95,7 +95,6 @@
                                "property": "eyecare",
                                "friendlyName": "Eyecare",
                                "channel": "eyecare",
-                               "channelType": "eyecare",
                                "type": "Switch",
                                "refresh": true,
                                "ChannelGroup": "actions",
index 369b220eaaf232881d677cac9fcace9e6d63e545..d5d68e3152e6f8635d9cd19c2fd3620139ff9cf9 100644 (file)
@@ -89,7 +89,6 @@
                                "property": "wifi_led",
                                "friendlyName": "wifi LED",
                                "channel": "led",
-                               "channelType": "led",
                                "type": "Switch",
                                "refresh": true,
                                "actions": [
index b49a64da81afaf1c25e8268d2ecbfe8c8bbb16b7..ca1e246b9848532ff3efe933e0899c929136ff8c 100644 (file)
@@ -9,7 +9,6 @@
                                "property": "",
                                "friendlyName": "Power",
                                "channel": "power",
-                               "channelType": "power",
                                "type": "Switch",
                                "refresh": false,
                                "actions": [
index 115f948a68d7de4988a24a34821482d0715adbcc..efc34cbc5932e804973aadef7a3e46c8697774a2 100644 (file)
@@ -12,7 +12,6 @@
                                "channel": "vacuumaction",
                                "type": "String",
                                "stateDescription": {
-                                       "readOnly": true,
                                        "options": [
                                                {
                                                        "value": "start-sweep",
index 6aa4387dd99625c1762b18245e0d18b095c5af28..1a7de8e576dff3b7cf564bd66d5c18c1c147cc19 100644 (file)
                                "property": "",
                                "friendlyName": "Vacuum Action",
                                "channel": "vacuumaction",
-                               "channelType": "vacuumaction",
                                "type": "Number",
+                               "stateDescription": {
+                                       "options": [
+                                               {
+                                                       "value": "1",
+                                                       "label": "Start"
+                                               },
+                                               {
+                                                       "value": "0",
+                                                       "label": "Stop"
+                                               },
+                                               {
+                                                       "value": "2",
+                                                       "label": "Pause"
+                                               }
+                                       ]
+                               },
                                "refresh": false,
                                "actions": [
                                        {
                                                        0
                                                ]
                                        }
-                               ]
+                               ],
+                               "readmeComment": "Value mapping `[\"1\"\u003d\"Start\",\"0\"\u003d\"Stop\",\"2\"\u003d\"Pause\"]`"
                        },
                        {
                                "property": "run_state",
                                "friendlyName": "State",
                                "channel": "state",
-                               "channelType": "state",
                                "type": "Number",
                                "refresh": true,
                                "actions": []
@@ -38,7 +53,6 @@
                                "property": "mode",
                                "friendlyName": "Mode",
                                "channel": "mode",
-                               "channelType": "mode",
                                "type": "Number",
                                "refresh": true,
                                "actions": [
index 144bcb234c098ebc784c8cfba960e06e89a964ce..96879ececfab48532c55d8c4cad7e278df517745 100644 (file)
@@ -94,7 +94,6 @@
                                "stateDescription": {
                                        "minimum": 16,
                                        "maximum": 31,
-                                       "step": 0.0,
                                        "pattern": "%.1f %unit%"
                                },
                                "refresh": true,
                                "piid": 3,
                                "friendlyName": "Electricity - Count",
                                "channel": "elec-count",
-                               "channelType": "miot_uint16",
                                "type": "Number",
                                "stateDescription": {
                                        "minimum": 0,
                                        "maximum": 65535,
                                        "step": 1,
-                                       "pattern": "%.1f",
+                                       "pattern": "%.0f",
                                        "readOnly": true
                                },
                                "refresh": true,
index badbcecd62aa4c93f505cebdeb93e0c01a56fcbc..b14bbeca8a71a6a057c4b94fdc6256c1279318d5 100644 (file)
                                "property": "nl_br",
                                "friendlyName": "Nightlight Brightness",
                                "channel": "nightlightBrightness",
-                               "channelType": "nightlightBrightness",
                                "type": "Number",
                                "refresh": true,
                                "actions": [],
index 8bb665c0921ec3803a549e3e00164becd2a3fa5f..09851a3c2b157dbfde3609da9236965c33e9004c 100644 (file)
                                "property": "",
                                "friendlyName": "Set Scene",
                                "channel": "customScene",
-                               "channelType": "customScene",
                                "type": "String",
                                "refresh": false,
                                "ChannelGroup": "actions",
                                "property": "nl_br",
                                "friendlyName": "Nightlight Brightness",
                                "channel": "nightlightBrightness",
-                               "channelType": "nightlightBrightness",
                                "type": "Number",
                                "refresh": true,
                                "actions": [],
index 66ebf9009ae49af9b9140a52bb1ad5a9d67cf189..c6cc80f464ccda98f737985530874abd3d34da2e 100644 (file)
                                "property": "",
                                "friendlyName": "Set Scene",
                                "channel": "customScene",
-                               "channelType": "customScene",
                                "type": "String",
                                "refresh": false,
                                "ChannelGroup": "actions",
                                "property": "nl_br",
                                "friendlyName": "Nightlight Brightness",
                                "channel": "nightlightBrightness",
-                               "channelType": "nightlightBrightness",
                                "type": "Number",
                                "refresh": true,
                                "actions": [],
index 5af25be9960c277858e8a226a04d5351f2545ea0..064f54009db180a92b7e13a2c808b74a0ae2f1f4 100644 (file)
                                "property": "bg_power",
                                "friendlyName": "Ambient Power",
                                "channel": "ambientPower",
-                               "channelType": "ambientPower",
                                "type": "Switch",
                                "refresh": true,
                                "ChannelGroup": "actions",
                                "property": "bg_rgb",
                                "friendlyName": "Ambient Color",
                                "channel": "ambientColor",
-                               "channelType": "ambientColor",
                                "type": "Color",
                                "refresh": true,
                                "ChannelGroup": "actions",
                                "property": "bg_ct",
                                "friendlyName": "Ambient Color Temperature",
                                "channel": "ambientColorTemperature",
-                               "channelType": "ambientColorTemperature",
                                "type": "Number",
                                "refresh": true,
                                "ChannelGroup": "actions",
                                "property": "",
                                "friendlyName": "Set Scene",
                                "channel": "customScene",
-                               "channelType": "customScene",
                                "type": "String",
                                "refresh": false,
                                "ChannelGroup": "actions",
                                "property": "bg_lmode",
                                "friendlyName": "Ambient Color Mode",
                                "channel": "ambientColorMode",
-                               "channelType": "ambientColorMode",
                                "type": "Number",
                                "refresh": true,
                                "actions": []
                                "property": "nl_br",
                                "friendlyName": "Nightlight Brightness",
                                "channel": "nightlightBrightness",
-                               "channelType": "nightlightBrightness",
                                "type": "Number",
                                "refresh": true,
                                "actions": [],
index 0390aab285b8eeb107219a807a54341a0e6a435d..fac444533ff0615b240df46ecc8795797a678cc5 100644 (file)
                                "property": "bg_bright",
                                "friendlyName": "Ambient Brightness",
                                "channel": "ambientBrightness",
-                               "channelType": "ambientBrightness",
                                "type": "Number",
                                "refresh": true,
                                "ChannelGroup": "actions",
                                "property": "bg_power",
                                "friendlyName": "Ambient Power",
                                "channel": "ambientPower",
-                               "channelType": "ambientPower",
                                "type": "Switch",
                                "refresh": true,
                                "ChannelGroup": "actions",
                                "property": "bg_rgb",
                                "friendlyName": "Ambient Color",
                                "channel": "ambientColor",
-                               "channelType": "ambientColor",
                                "type": "Color",
                                "refresh": true,
                                "ChannelGroup": "actions",
                                "property": "bg_ct",
                                "friendlyName": "Ambient Color Temperature",
                                "channel": "ambientColorTemperature",
-                               "channelType": "ambientColorTemperature",
                                "type": "Number",
                                "refresh": true,
                                "ChannelGroup": "actions",
                                "property": "bg_lmode",
                                "friendlyName": "Ambient Color Mode",
                                "channel": "ambientColorMode",
-                               "channelType": "ambientColorMode",
                                "type": "Number",
                                "refresh": true,
                                "actions": []
index f2c2a7c92a6e69699dd9d672c480757dce727068..6e2736d98d4eea896bdf19e21d5f18c9b784a1ee 100644 (file)
@@ -8,7 +8,6 @@
                                "property": "power",
                                "friendlyName": "Power",
                                "channel": "power",
-                               "channelType": "power",
                                "type": "Switch",
                                "refresh": true,
                                "actions": [
@@ -26,7 +25,6 @@
                                "property": "aqi",
                                "friendlyName": "Air Quality Index",
                                "channel": "aqi",
-                               "channelType": "aqi",
                                "type": "Number",
                                "refresh": true,
                                "ChannelGroup": "Status",
index f2f73e769545aded23c1bc38273dd1d3a1383787..e90c98a859770b3f6bc5ee35e054648fecdffda1 100644 (file)
@@ -19,7 +19,6 @@
                                "property": "power",
                                "friendlyName": "Power",
                                "channel": "power",
-                               "channelType": "power",
                                "type": "Switch",
                                "refresh": true,
                                "actions": [
@@ -37,7 +36,6 @@
                                "property": "mode",
                                "friendlyName": "Mode",
                                "channel": "mode",
-                               "channelType": "mode",
                                "type": "String",
                                "stateDescription": {
                                        "options": [
                                "property": "aqi",
                                "friendlyName": "Air Quality Index",
                                "channel": "aqi",
-                               "channelType": "aqi",
                                "type": "Number",
                                "refresh": true,
                                "ChannelGroup": "Status",
                                "property": "average_aqi",
                                "friendlyName": "Average Air Quality Index",
                                "channel": "averageaqi",
-                               "channelType": "averageaqi",
                                "type": "Number",
                                "refresh": true,
                                "ChannelGroup": "Status",
                                "property": "led",
                                "friendlyName": "LED Status",
                                "channel": "led",
-                               "channelType": "led",
                                "type": "Switch",
                                "refresh": true,
                                "ChannelGroup": "actions",
                                "property": "buzzer",
                                "friendlyName": "Buzzer Status",
                                "channel": "buzzer",
-                               "channelType": "buzzer",
                                "type": "Switch",
                                "refresh": true,
                                "ChannelGroup": "actions",
                                "property": "f1_hour",
                                "friendlyName": "Filter Max Life",
                                "channel": "filtermaxlife",
-                               "channelType": "filtermaxlife",
                                "type": "Number",
                                "refresh": true,
                                "ChannelGroup": "Status",
                                "property": "f1_hour_used",
                                "friendlyName": "Filter Hours used",
                                "channel": "filterhours",
-                               "channelType": "filterhours",
                                "type": "Number:Time",
                                "unit": "hours",
+                               "stateDescription": {
+                                       "pattern": "%.0f %unit%"
+                               },
                                "refresh": true,
                                "transformation": "SecondsToHours",
                                "ChannelGroup": "Status",
                                "property": "use_time",
                                "friendlyName": "Run Time",
                                "channel": "usedhours",
-                               "channelType": "usedhours",
                                "type": "Number:Time",
                                "unit": "hours",
+                               "stateDescription": {
+                                       "pattern": "%.0f %unit%"
+                               },
                                "refresh": true,
                                "transformation": "SecondsToHours",
                                "ChannelGroup": "Status",
                                "property": "motor1_speed",
                                "friendlyName": "Motor Speed",
                                "channel": "motorspeed",
-                               "channelType": "motorspeed",
                                "type": "Number",
+                               "stateDescription": {
+                                       "pattern": "%.0f rpm"
+                               },
                                "refresh": true,
                                "ChannelGroup": "Status",
                                "actions": []
                                "property": "purify_volume",
                                "friendlyName": "Purified Volume",
                                "channel": "purifyvolume",
-                               "channelType": "purifyvolume",
                                "type": "Number:Volume",
                                "unit": "liter",
+                               "stateDescription": {
+                                       "pattern": "%.0f m3"
+                               },
                                "refresh": true,
                                "ChannelGroup": "Status",
                                "actions": [],
index 47952528d3aec5c707ee471aab7a79d1101905da..81b03943a89e20a58f6b45b665a31e6e42623fd5 100644 (file)
@@ -8,7 +8,6 @@
                                "property": "power",
                                "friendlyName": "Power",
                                "channel": "power",
-                               "channelType": "power",
                                "type": "Switch",
                                "refresh": true,
                                "actions": [
@@ -26,7 +25,6 @@
                                "property": "mode",
                                "friendlyName": "Mode",
                                "channel": "mode",
-                               "channelType": "mode",
                                "type": "String",
                                "refresh": true,
                                "ChannelGroup": "actions",
@@ -59,7 +57,6 @@
                                "property": "aqi",
                                "friendlyName": "Air Quality Index",
                                "channel": "aqi",
-                               "channelType": "aqi",
                                "type": "Number",
                                "refresh": true,
                                "ChannelGroup": "Status",
@@ -91,7 +88,6 @@
                                "property": "led",
                                "friendlyName": "LED Status",
                                "channel": "led",
-                               "channelType": "led",
                                "type": "Switch",
                                "refresh": true,
                                "ChannelGroup": "actions",
                                "property": "act_det",
                                "friendlyName": "Air AutoDetect",
                                "channel": "act_det",
-                               "channelType": "act_det",
                                "type": "Switch",
                                "refresh": true,
                                "ChannelGroup": "actions",
                                "property": "buzzer",
                                "friendlyName": "Buzzer Status",
                                "channel": "buzzer",
-                               "channelType": "buzzer",
                                "type": "Switch",
                                "refresh": true,
                                "ChannelGroup": "actions",
                                "property": "f1_hour",
                                "friendlyName": "Filter Max Life",
                                "channel": "filtermaxlife",
-                               "channelType": "filtermaxlife",
                                "type": "Number",
                                "refresh": true,
                                "ChannelGroup": "Status",
                                "property": "filter1_life",
                                "friendlyName": "Filter Life",
                                "channel": "filterlive",
-                               "channelType": "filterlive",
                                "type": "Number",
+                               "stateDescription": {
+                                       "pattern": "%.0f%%"
+                               },
                                "refresh": true,
                                "ChannelGroup": "Status",
                                "actions": []
index 92299edb63f50a1c68df36262cc42cc76fd32181..7642d5b7b3b62ac95c5cc39120b6449d36b85d44 100644 (file)
@@ -9,7 +9,6 @@
                                "property": "power",
                                "friendlyName": "Power",
                                "channel": "power",
-                               "channelType": "power",
                                "type": "Switch",
                                "refresh": true,
                                "actions": [
@@ -27,7 +26,6 @@
                                "property": "mode",
                                "friendlyName": "Mode",
                                "channel": "mode",
-                               "channelType": "mode",
                                "type": "String",
                                "refresh": true,
                                "ChannelGroup": "actions",
@@ -60,7 +58,6 @@
                                "property": "aqi",
                                "friendlyName": "Air Quality Index",
                                "channel": "aqi",
-                               "channelType": "aqi",
                                "type": "Number",
                                "refresh": true,
                                "ChannelGroup": "Status",
@@ -73,7 +70,6 @@
                                "property": "average_aqi",
                                "friendlyName": "Average Air Quality Index",
                                "channel": "averageaqi",
-                               "channelType": "averageaqi",
                                "type": "Number",
                                "refresh": true,
                                "ChannelGroup": "Status",
@@ -86,7 +82,6 @@
                                "property": "led",
                                "friendlyName": "LED Status",
                                "channel": "led",
-                               "channelType": "led",
                                "type": "Switch",
                                "refresh": true,
                                "ChannelGroup": "actions",
                                "property": "f1_hour",
                                "friendlyName": "Filter Max Life",
                                "channel": "filtermaxlife",
-                               "channelType": "filtermaxlife",
                                "type": "Number",
                                "refresh": true,
                                "ChannelGroup": "Status",
                                "property": "f1_hour_used",
                                "friendlyName": "Filter Hours used",
                                "channel": "filterhours",
-                               "channelType": "filterhours",
                                "type": "Number:Time",
                                "unit": "hours",
+                               "stateDescription": {
+                                       "pattern": "%.0f %unit%"
+                               },
                                "refresh": true,
                                "transformation": "SecondsToHours",
                                "ChannelGroup": "Status",
                                "property": "use_time",
                                "friendlyName": "Run Time",
                                "channel": "usedhours",
-                               "channelType": "usedhours",
                                "type": "Number:Time",
                                "unit": "hours",
+                               "stateDescription": {
+                                       "pattern": "%.0f %unit%"
+                               },
                                "refresh": true,
                                "transformation": "SecondsToHours",
                                "ChannelGroup": "Status",
                                "property": "motor1_speed",
                                "friendlyName": "Motor Speed",
                                "channel": "motorspeed",
-                               "channelType": "motorspeed",
                                "type": "Number",
+                               "stateDescription": {
+                                       "pattern": "%.0f rpm"
+                               },
                                "refresh": true,
                                "ChannelGroup": "Status",
                                "actions": []
                                "property": "favorite_level",
                                "friendlyName": "Favorite Level",
                                "channel": "favoritelevel",
-                               "channelType": "favoritelevel",
                                "type": "Number",
+                               "stateDescription": {
+                                       "pattern": "%.0f"
+                               },
                                "refresh": true,
                                "ChannelGroup": "Status",
                                "actions": [
                                "property": "purify_volume",
                                "friendlyName": "Purivied Volume",
                                "channel": "purifyvolume",
-                               "channelType": "purifyvolume",
                                "type": "Number",
+                               "stateDescription": {
+                                       "pattern": "%.0f m3"
+                               },
                                "refresh": true,
                                "ChannelGroup": "Status",
                                "actions": []
                                "property": "child_lock",
                                "friendlyName": "Child Lock",
                                "channel": "childlock",
-                               "channelType": "childlock",
                                "type": "Switch",
                                "refresh": true,
                                "ChannelGroup": "Status",
index 68e75135cb97465d0be599f0f680c592e3b49bbb..42fb5c90ccc43d256bcc966cb19b44862d6efe15 100644 (file)
@@ -8,7 +8,6 @@
                                "property": "power",
                                "friendlyName": "Power",
                                "channel": "power",
-                               "channelType": "power",
                                "type": "Switch",
                                "refresh": true,
                                "actions": [
@@ -26,7 +25,6 @@
                                "property": "mode",
                                "friendlyName": "Mode",
                                "channel": "mode",
-                               "channelType": "mode",
                                "type": "String",
                                "refresh": true,
                                "ChannelGroup": "actions",
@@ -59,7 +57,6 @@
                                "property": "aqi",
                                "friendlyName": "Air Quality Index",
                                "channel": "aqi",
-                               "channelType": "aqi",
                                "type": "Number",
                                "refresh": true,
                                "ChannelGroup": "Status",
@@ -72,7 +69,6 @@
                                "property": "average_aqi",
                                "friendlyName": "Average Air Quality Index",
                                "channel": "averageaqi",
-                               "channelType": "averageaqi",
                                "type": "Number",
                                "refresh": true,
                                "ChannelGroup": "Status",
@@ -94,7 +90,6 @@
                                "property": "led",
                                "friendlyName": "LED Status",
                                "channel": "led",
-                               "channelType": "led",
                                "type": "Switch",
                                "refresh": true,
                                "ChannelGroup": "actions",
                                "property": "f1_hour",
                                "friendlyName": "Filter Max Life",
                                "channel": "filtermaxlife",
-                               "channelType": "filtermaxlife",
                                "type": "Number",
                                "refresh": true,
                                "ChannelGroup": "Status",
                                "property": "f1_hour_used",
                                "friendlyName": "Filter Hours used",
                                "channel": "filterhours",
-                               "channelType": "filterhours",
                                "type": "Number:Time",
                                "unit": "hours",
+                               "stateDescription": {
+                                       "pattern": "%.0f %unit%"
+                               },
                                "refresh": true,
                                "transformation": "SecondsToHours",
                                "ChannelGroup": "Status",
                                "property": "motor1_speed",
                                "friendlyName": "Motor Speed",
                                "channel": "motorspeed",
-                               "channelType": "motorspeed",
                                "type": "Number",
+                               "stateDescription": {
+                                       "pattern": "%.0f rpm"
+                               },
                                "refresh": true,
                                "ChannelGroup": "Status",
                                "actions": []
                                "property": "favorite_level",
                                "friendlyName": "Favorite Level",
                                "channel": "favoritelevel",
-                               "channelType": "favoritelevel",
                                "type": "Number",
+                               "stateDescription": {
+                                       "pattern": "%.0f"
+                               },
                                "refresh": true,
                                "ChannelGroup": "Status",
                                "actions": [
                                "property": "child_lock",
                                "friendlyName": "Child Lock",
                                "channel": "childlock",
-                               "channelType": "childlock",
                                "type": "Switch",
                                "refresh": true,
                                "ChannelGroup": "Status",
index 90c95b04499dbb2ab9a7032763e6acd823a857a5..9c7cf22894dcdcf0301c9785c49b7f9bb824090e 100644 (file)
@@ -9,7 +9,6 @@
                                "property": "power",
                                "friendlyName": "Power",
                                "channel": "power",
-                               "channelType": "power",
                                "type": "Switch",
                                "refresh": true,
                                "actions": [
@@ -27,7 +26,6 @@
                                "property": "angle_enable",
                                "friendlyName": "Rotation",
                                "channel": "angleEnable",
-                               "channelType": "angleEnable",
                                "type": "Switch",
                                "refresh": true,
                                "actions": [
                                "property": "use_time",
                                "friendlyName": "Run Time",
                                "channel": "usedhours",
-                               "channelType": "usedhours",
                                "type": "Number:Time",
                                "unit": "hours",
+                               "stateDescription": {
+                                       "pattern": "%.0f %unit%"
+                               },
                                "refresh": true,
                                "transformation": "SecondsToHours",
                                "ChannelGroup": "Status",
                                "property": "angle",
                                "friendlyName": "Angle",
                                "channel": "angle",
-                               "channelType": "angle",
                                "type": "Number",
+                               "stateDescription": {
+                                       "minimum": 0,
+                                       "maximum": 360,
+                                       "step": 1,
+                                       "pattern": "%.0f"
+                               },
                                "refresh": true,
                                "ChannelGroup": "actions",
                                "actions": [
                                "property": "poweroff_time",
                                "friendlyName": "Timer",
                                "channel": "poweroffTime",
-                               "channelType": "poweroffTime",
                                "type": "Number",
+                               "stateDescription": {
+                                       "minimum": 0,
+                                       "maximum": 28800,
+                                       "step": 1,
+                                       "pattern": "%.0f"
+                               },
                                "refresh": true,
                                "ChannelGroup": "actions",
                                "actions": [
@@ -84,7 +94,6 @@
                                "property": "buzzer",
                                "friendlyName": "Buzzer",
                                "channel": "buzzer",
-                               "channelType": "buzzer",
                                "type": "Number",
                                "refresh": true,
                                "ChannelGroup": "actions",
                                "property": "speed_level",
                                "friendlyName": "Speed Level",
                                "channel": "speedLevel",
-                               "channelType": "speedLevel",
                                "type": "Number",
+                               "stateDescription": {
+                                       "minimum": 0,
+                                       "maximum": 99,
+                                       "step": 1,
+                                       "pattern": "%.0f%%"
+                               },
                                "refresh": true,
                                "ChannelGroup": "actions",
                                "actions": [
                                "property": "speed",
                                "friendlyName": "Speed",
                                "channel": "speed",
-                               "channelType": "speed",
                                "type": "Number",
+                               "stateDescription": {
+                                       "pattern": "%.0f"
+                               },
                                "refresh": true,
                                "ChannelGroup": "actions",
                                "actions": [
                                "property": "natural_level",
                                "friendlyName": "Natural Level",
                                "channel": "naturalLevel",
-                               "channelType": "naturalLevel",
                                "type": "Number",
+                               "stateDescription": {
+                                       "minimum": 0,
+                                       "maximum": 99,
+                                       "step": 1,
+                                       "pattern": "%.0f%%"
+                               },
                                "refresh": true,
                                "ChannelGroup": "actions",
                                "actions": [
                                "property": "",
                                "friendlyName": "Move Direction",
                                "channel": "move",
-                               "channelType": "move",
                                "type": "String",
+                               "stateDescription": {
+                                       "options": [
+                                               {
+                                                       "value": "",
+                                                       "label": "None"
+                                               },
+                                               {
+                                                       "value": "left",
+                                                       "label": "Left"
+                                               },
+                                               {
+                                                       "value": "right",
+                                                       "label": "Right"
+                                               }
+                                       ]
+                               },
                                "refresh": true,
                                "ChannelGroup": "actions",
                                "actions": [
                                                "command": "set_move",
                                                "parameterType": "STRING"
                                        }
-                               ]
+                               ],
+                               "readmeComment": "Value mapping `[\"\"\u003d\"None\",\"left\"\u003d\"Left\",\"right\"\u003d\"Right\"]`"
                        }
                ]
        }
index a21ff474e2c315c04b9a2f759ac19f9bb3d60f7e..f64237fa045c77e109e3cddfd011ba7513b7a775 100644 (file)
@@ -9,7 +9,6 @@
                                "property": "power",
                                "friendlyName": "Power",
                                "channel": "power",
-                               "channelType": "power",
                                "type": "Switch",
                                "refresh": true,
                                "actions": [
@@ -27,7 +26,6 @@
                                "property": "mode",
                                "friendlyName": "Mode",
                                "channel": "mode",
-                               "channelType": "mode",
                                "type": "String",
                                "refresh": true,
                                "ChannelGroup": "actions",
@@ -60,7 +58,6 @@
                                "property": "limit_hum",
                                "friendlyName": "Humidity Set",
                                "channel": "setHumidity",
-                               "channelType": "setHumidity",
                                "type": "Number",
                                "refresh": true,
                                "ChannelGroup": "Status",
@@ -75,7 +72,6 @@
                                "property": "aqi",
                                "friendlyName": "Air Quality Index",
                                "channel": "aqi",
-                               "channelType": "aqi",
                                "type": "Number",
                                "refresh": true,
                                "ChannelGroup": "Status",
@@ -88,7 +84,6 @@
                                "property": "trans_level",
                                "friendlyName": "Trans_level",
                                "channel": "translevel",
-                               "channelType": "translevel",
                                "type": "Number",
                                "refresh": true,
                                "ChannelGroup": "Status",
                                "property": "buzzer",
                                "friendlyName": "Buzzer Status",
                                "channel": "buzzer",
-                               "channelType": "buzzer",
                                "type": "Switch",
                                "refresh": true,
                                "ChannelGroup": "actions",
                                "property": "depth",
                                "friendlyName": "Depth",
                                "channel": "depth",
-                               "channelType": "depth",
                                "type": "Number",
                                "refresh": true,
                                "ChannelGroup": "Status",
                                "property": "dry",
                                "friendlyName": "Dry",
                                "channel": "dry",
-                               "channelType": "dry",
                                "type": "Switch",
                                "refresh": true,
                                "ChannelGroup": "Status",
                                "property": "use_time",
                                "friendlyName": "Run Time",
                                "channel": "usedhours",
-                               "channelType": "usedhours",
                                "type": "Number:Time",
                                "unit": "hours",
+                               "stateDescription": {
+                                       "pattern": "%.0f %unit%"
+                               },
                                "refresh": true,
                                "transformation": "SecondsToHours",
                                "ChannelGroup": "Status",
                                "property": "speed",
                                "friendlyName": "Motor Speed",
                                "channel": "motorspeed",
-                               "channelType": "motorspeed",
                                "type": "Number",
+                               "stateDescription": {
+                                       "pattern": "%.0f rpm"
+                               },
                                "refresh": true,
                                "ChannelGroup": "Status",
                                "actions": []
                                "property": "child_lock",
                                "friendlyName": "Child Lock",
                                "channel": "childlock",
-                               "channelType": "childlock",
                                "type": "Switch",
                                "refresh": true,
                                "ChannelGroup": "Status",
index 411e57613016336c8c72fecf372141ebf20ad40a..ca8547bf895a62465585a2ab17948b239cbb7235 100644 (file)
@@ -9,7 +9,6 @@
                                "property": "power",
                                "friendlyName": "Power",
                                "channel": "power",
-                               "channelType": "power",
                                "type": "Switch",
                                "refresh": true,
                                "actions": [
                                "property": "power_consume_rate",
                                "friendlyName": "Power Consumption",
                                "channel": "powerUsage",
-                               "channelType": "powerUsage",
                                "type": "Number",
+                               "stateDescription": {
+                                       "pattern": "%.0fW"
+                               },
                                "refresh": true,
                                "actions": [
                                        {
@@ -40,7 +41,6 @@
                                "property": "wifi_led",
                                "friendlyName": "wifi LED",
                                "channel": "led",
-                               "channelType": "led",
                                "type": "Switch",
                                "refresh": true,
                                "actions": [
                                "property": "current",
                                "friendlyName": "Current",
                                "channel": "current",
-                               "channelType": "current",
                                "type": "Number",
+                               "stateDescription": {
+                                       "pattern": "%.2fA"
+                               },
                                "refresh": true,
                                "actions": []
                        },