]> git.basschouten.com Git - openhab-addons.git/commitdiff
[miio] Add temperature value to chuangmi.plug.v1 (#8832)
authorMarcel <marcelrv@users.noreply.github.com>
Thu, 22 Oct 2020 16:06:57 +0000 (18:06 +0200)
committerGitHub <noreply@github.com>
Thu, 22 Oct 2020 16:06:57 +0000 (18:06 +0200)
Based on: https://github.com/marcelrv/openhab2/pull/12

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
bundles/org.openhab.binding.miio/README.md
bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/MiIoDevices.java
bundles/org.openhab.binding.miio/src/main/resources/database/chuangmi.plug.v1.json

index 75d0e9cfff2021e08da0e3c0759caf398cbcc730..1d902294400b9edd84d2429005ca1267806c854b 100644 (file)
@@ -1762,6 +1762,7 @@ e.g. `smarthome:send actionCommand 'upd_timer["1498595904821", "on"]'` would ena
 |------------------|---------|-------------------------------------|------------|
 | power            | Switch  | Power                               |            |
 | usb              | Switch  | USB                                 |            |
+| temperature      | Number  | Temperature                         |            |
 
 ### Mi Power-plug v2 (<a name="chuangmi-plug-v2">chuangmi.plug.v2</a>) Channels
 
@@ -4786,6 +4787,7 @@ note: Autogenerated example. Replace the id (plug) in the channel with your own.
 Group G_plug "Mi Power-plug v1" <status>
 Switch power "Power" (G_plug) {channel="miio:basic:plug:power"}
 Switch usb "USB" (G_plug) {channel="miio:basic:plug:usb"}
+Number temperature "Temperature" (G_plug) {channel="miio:basic:plug:temperature"}
 ```
 
 ### Mi Power-plug v2 (chuangmi.plug.v2) item file lines
index 3755b31c6ff3816a2280e93791007f274a3e6a3a..ca2d1d9c77c969bda7cf9f3e678c1f879d5a988e 100644 (file)
@@ -91,7 +91,6 @@ public enum MiIoDevices {
     MRBOND_AIRER_M1PRO("mrbond.airer.m1pro", "Mr Bond M1 Pro Smart Clothes Dryer", THING_TYPE_BASIC),
     MRBOND_AIRER_M1S("mrbond.airer.m1s", "Mr Bond M1 Smart Clothes Dryer", THING_TYPE_BASIC),
     MRBOND_AIRER_M1SUPER("mrbond.airer.m1super", "Mr Bond M1 Super Smart Clothes Dryer", THING_TYPE_BASIC),
-    PHILIPS_R1("philips.light.sread1", "Xiaomi Philips Eyecare Smart Lamp 2", THING_TYPE_BASIC),
     PHILIPS_SR1("philips.light.sread1", "Xiaomi Philips Eyecare Smart Lamp 2", THING_TYPE_BASIC),
     PHILIPS_SR2("philips.light.sread2", "Xiaomi Philips Eyecare Smart Lamp 2", THING_TYPE_BASIC),
     PHILIPS_C("philips.light.ceiling", "Xiaomi Philips LED Ceiling Lamp", THING_TYPE_BASIC),
index f9038317e7531b41993e0bd362bc042f5af4cd96..2c2172fe8383aa0a957d569dc6c28344c79f2f4e 100644 (file)
                                                "parameterType": "ONOFFPARA"
                                        }
                                ]
+                       },
+                       {
+                               "property": "temperature",
+                               "friendlyName": "Temperature",
+                               "channel": "temperature",
+                               "channelType": "temperature",
+                               "type": "Number",
+                               "refresh": true,
+                               "ChannelGroup": "",
+                               "actions": []
                        }
                ]
        }