Skip to content

Commit

Permalink
[miio] add philips.light.hbulb Wi-Fi Bulb E27 White (openhab#8034)
Browse files Browse the repository at this point in the history
adding Philips Wi-Fi Bulb E27 White

Closes openhab#7947

Signed-off-by: Marcel Verpaalen <[email protected]>
  • Loading branch information
marcelrv authored and knikhilwiz committed Jul 12, 2020
1 parent 491f60e commit b345231
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
28 changes: 28 additions & 0 deletions bundles/org.openhab.binding.miio/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 | |
Expand Down Expand Up @@ -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 (<a name="philips-light-hbulb">philips.light.hbulb</a>) 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 (<a name="philips-light-candle">philips.light.candle</a>) Channels

| Channel | Type | Description |
Expand Down Expand Up @@ -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" <status>
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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"philips.light.downlight",
"philips.light.virtual",
"philips.light.zysread",
"philips.light.zystrip"
"philips.light.zystrip",
"philips.light.hbulb"
],
"channels": [
{
Expand Down

0 comments on commit b345231

Please sign in to comment.