diff --git a/bundles/org.openhab.binding.miio/README.md b/bundles/org.openhab.binding.miio/README.md index 6f1d6d3f483f4..01952370a0cb1 100644 --- a/bundles/org.openhab.binding.miio/README.md +++ b/bundles/org.openhab.binding.miio/README.md @@ -137,6 +137,7 @@ However, for devices that are unsupported, you may override the value and try to | Xiaomi Philips LED Ceiling Lamp | miio:basic | [philips.light.ceiling](#philips-light-ceiling) | Yes | | | Xiaomi Philips LED Ceiling Lamp | miio:basic | [philips.light.zyceiling](#philips-light-zyceiling) | Yes | | | Xiaomi Philips Bulb | miio:basic | [philips.light.bulb](#philips-light-bulb) | Yes | | +| Xiaomi Philips Wi-Fi Bulb E27 White | miio:basic | [philips.light.hbulb](#philips-light-hbulb) | Yes | | | PHILIPS Zhirui Smart LED Bulb E14 Candle Lamp | miio:basic | [philips.light.candle](#philips-light-candle) | Yes | | | Xiaomi Philips Downlight | miio:basic | [philips.light.downlight](#philips-light-downlight) | Yes | | | Xiaomi Philips ZhiRui bedside lamp | miio:basic | [philips.light.moonlight](#philips-light-moonlight) | Yes | | @@ -1023,6 +1024,18 @@ e.g. `smarthome:send actionCommand 'upd_timer["1498595904821", "on"]'` would ena | switchscene | Switch | Switch Scene | | delayoff | Switch | Delay Off | +### Xiaomi Philips Wi-Fi Bulb E27 White (philips.light.hbulb) Channels + +| Channel | Type | Description | +|------------------|---------|-------------------------------------| +| power | Switch | Power | +| brightness | Dimmer | Brightness | +| cct | Dimmer | Correlated Color Temperature | +| scene | Number | Scene | +| dv | Number | DV | +| switchscene | Switch | Switch Scene | +| delayoff | Switch | Delay Off | + ### PHILIPS Zhirui Smart LED Bulb E14 Candle Lamp (philips.light.candle) Channels | Channel | Type | Description | @@ -2592,6 +2605,21 @@ Switch switchscene "Switch Scene" (G_light) {channel="miio:basic:light:switchsce Switch delayoff "Delay Off" (G_light) {channel="miio:basic:light:delayoff"} ``` +### Xiaomi Philips Wi-Fi Bulb E27 White (philips.light.hbulb) item file lines + +note: Autogenerated example. Replace the id (light) in the channel with your own. Replace `basic` with `generic` in the thing UID depending on how your thing was discovered. + +```java +Group G_light "Xiaomi Philips Wi-Fi Bulb E27 White" +Switch power "Power" (G_light) {channel="miio:basic:light:power"} +Dimmer brightness "Brightness" (G_light) {channel="miio:basic:light:brightness"} +Dimmer cct "Correlated Color Temperature" (G_light) {channel="miio:basic:light:cct"} +Number scene "Scene" (G_light) {channel="miio:basic:light:scene"} +Number dv "DV" (G_light) {channel="miio:basic:light:dv"} +Switch switchscene "Switch Scene" (G_light) {channel="miio:basic:light:switchscene"} +Switch delayoff "Delay Off" (G_light) {channel="miio:basic:light:delayoff"} +``` + ### PHILIPS Zhirui Smart LED Bulb E14 Candle Lamp (philips.light.candle) item file lines note: Autogenerated example. Replace the id (light) in the channel with your own. Replace `basic` with `generic` in the thing UID depending on how your thing was discovered. diff --git a/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/MiIoDevices.java b/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/MiIoDevices.java index 244e0735b480d..02e89fd62e51a 100644 --- a/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/MiIoDevices.java +++ b/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/MiIoDevices.java @@ -86,6 +86,7 @@ public enum MiIoDevices { PHILIPS_C("philips.light.ceiling", "Xiaomi Philips LED Ceiling Lamp", THING_TYPE_BASIC), PHILIPS_C2("philips.light.zyceiling", "Xiaomi Philips LED Ceiling Lamp", THING_TYPE_BASIC), PHILIPS_BULB("philips.light.bulb", "Xiaomi Philips Bulb", THING_TYPE_BASIC), + PHILIPS_HBULB("philips.light.hbulb", "Xiaomi Philips Wi-Fi Bulb E27 White", THING_TYPE_BASIC), PHILIPS_CANDLE("philips.light.candle", "PHILIPS Zhirui Smart LED Bulb E14 Candle Lamp", THING_TYPE_BASIC), PHILIPS_DOWN("philips.light.downlight", "Xiaomi Philips Downlight", THING_TYPE_BASIC), PHILIPS_MOON("philips.light.moonlight", "Xiaomi Philips ZhiRui bedside lamp", THING_TYPE_BASIC), diff --git a/bundles/org.openhab.binding.miio/src/main/resources/database/philips.light.bulb.json b/bundles/org.openhab.binding.miio/src/main/resources/database/philips.light.bulb.json index 4daa33fa26373..4efe1b8479212 100644 --- a/bundles/org.openhab.binding.miio/src/main/resources/database/philips.light.bulb.json +++ b/bundles/org.openhab.binding.miio/src/main/resources/database/philips.light.bulb.json @@ -5,7 +5,8 @@ "philips.light.downlight", "philips.light.virtual", "philips.light.zysread", - "philips.light.zystrip" + "philips.light.zystrip", + "philips.light.hbulb" ], "channels": [ {