diff --git a/bundles/org.openhab.binding.miio/README.md b/bundles/org.openhab.binding.miio/README.md index 573cd5970c8..6cbccfe5a3a 100644 --- a/bundles/org.openhab.binding.miio/README.md +++ b/bundles/org.openhab.binding.miio/README.md @@ -163,6 +163,19 @@ or in case of unknown models include the model information e.g.: | Philips Light | miio:basic | [philips.light.lrceiling](#philips-light-lrceiling) | Yes | Experimental support. Please report back if all channels are functional. Preferably share the debug log of property refresh and command responses | | Xiaomi PHILIPS Zhirui Smart LED Bulb E14 Candle Lamp White Crystal | miio:basic | [philips.light.candle2](#philips-light-candle2) | Yes | | | philips.light.mono1 | miio:basic | [philips.light.mono1](#philips-light-mono1) | Yes | | +| Light | miio:basic | [philips.light.dlight](#philips-light-dlight) | Yes | Experimental support. Please report back if all channels are functional. Preferably share the debug log of property refresh and command responses | +| Philips Ceiling Light | miio:basic | [philips.light.mceil](#philips-light-mceil) | Yes | Experimental support. Please report back if all channels are functional. Preferably share the debug log of property refresh and command responses | +| Philips Ceiling Light | miio:basic | [philips.light.mceilm](#philips-light-mceilm) | Yes | Experimental support. Please report back if all channels are functional. Preferably share the debug log of property refresh and command responses | +| Philips Ceiling Light | miio:basic | [philips.light.mceils](#philips-light-mceils) | Yes | Experimental support. Please report back if all channels are functional. Preferably share the debug log of property refresh and command responses | +| Philips Ceiling Light | miio:basic | [philips.light.obceil](#philips-light-obceil) | Yes | Experimental support. Please report back if all channels are functional. Preferably share the debug log of property refresh and command responses | +| Philips Ceiling Light | miio:basic | [philips.light.obceim](#philips-light-obceim) | Yes | Experimental support. Please report back if all channels are functional. Preferably share the debug log of property refresh and command responses | +| Philips Ceiling Light | miio:basic | [philips.light.obceis](#philips-light-obceis) | Yes | Experimental support. Please report back if all channels are functional. Preferably share the debug log of property refresh and command responses | +| Philips Ceiling Light | miio:basic | [philips.light.sceil](#philips-light-sceil) | Yes | Experimental support. Please report back if all channels are functional. Preferably share the debug log of property refresh and command responses | +| Philips Ceiling Light | miio:basic | [philips.light.sceilm](#philips-light-sceilm) | Yes | Experimental support. Please report back if all channels are functional. Preferably share the debug log of property refresh and command responses | +| Philips Ceiling Light | miio:basic | [philips.light.sceils](#philips-light-sceils) | Yes | Experimental support. Please report back if all channels are functional. Preferably share the debug log of property refresh and command responses | +| Philips Ceiling Light | miio:basic | [philips.light.xzceil](#philips-light-xzceil) | Yes | Experimental support. Please report back if all channels are functional. Preferably share the debug log of property refresh and command responses | +| Philips Ceiling Light | miio:basic | [philips.light.xzceim](#philips-light-xzceim) | Yes | Experimental support. Please report back if all channels are functional. Preferably share the debug log of property refresh and command responses | +| Philips Ceiling Light | miio:basic | [philips.light.xzceis](#philips-light-xzceis) | Yes | Experimental support. Please report back if all channels are functional. Preferably share the debug log of property refresh and command responses | | philips.light.virtual | miio:basic | [philips.light.virtual](#philips-light-virtual) | Yes | | | philips.light.zysread | miio:basic | [philips.light.zysread](#philips-light-zysread) | Yes | | | philips.light.zystrip | miio:basic | [philips.light.zystrip](#philips-light-zystrip) | Yes | | @@ -1381,6 +1394,201 @@ e.g. `smarthome:send actionCommand 'upd_timer["1498595904821", "on"]'` would ena | brightness | Dimmer | Brightness | | | scene | Number | Scene | | +### Light (philips.light.dlight) Channels + +| Channel | Type | Description | Comment | +|------------------|---------|-------------------------------------|------------| +| on | Switch | Power | | +| mode | Number | Mode | | +| brightness | Number | Brightness | | +| cct | Number | Color Temperature | | +| dv | Number | Delayed Turn-off | | +| WallSceneEn | Switch | Wall Scene Enable | | +| WallScene | String | Wall Scene | | +| autoCct | String | Auto CCT | | +| dimmingPeriod | Number | Dimming Period | | +| MibandStatus | String | Mi Band Status | | + +### Philips Ceiling Light (philips.light.mceil) Channels + +| Channel | Type | Description | Comment | +|------------------|---------|-------------------------------------|------------| +| on | Switch | Power | | +| mode | Number | Mode | | +| brightness | Number | Brightness | | +| cct | Number | Color Temperature | | +| dv | Number | Delayed Turn-off | | +| WallSceneEn | Switch | Wall Scene Enable | | +| WallScene | String | Wall Scene | | +| autoCct | String | Auto CCT | | +| dimmingPeriod | Number | Dimming Period | | +| MibandStatus | String | Mi Band Status | | + +### Philips Ceiling Light (philips.light.mceilm) Channels + +| Channel | Type | Description | Comment | +|------------------|---------|-------------------------------------|------------| +| on | Switch | Power | | +| mode | Number | Mode | | +| brightness | Number | Brightness | | +| cct | Number | Color Temperature | | +| dv | Number | Delayed Turn-off | | +| WallSceneEn | Switch | Wall Scene Enable | | +| WallScene | String | Wall Scene | | +| autoCct | String | Auto CCT | | +| dimmingPeriod | Number | Dimming Period | | +| MibandStatus | String | Mi Band Status | | + +### Philips Ceiling Light (philips.light.mceils) Channels + +| Channel | Type | Description | Comment | +|------------------|---------|-------------------------------------|------------| +| on | Switch | Power | | +| mode | Number | Mode | | +| brightness | Number | Brightness | | +| cct | Number | Color Temperature | | +| dv | Number | Delayed Turn-off | | +| WallSceneEn | Switch | Wall Scene Enable | | +| WallScene | String | Wall Scene | | +| autoCct | String | Auto CCT | | +| dimmingPeriod | Number | Dimming Period | | +| MibandStatus | String | Mi Band Status | | + +### Philips Ceiling Light (philips.light.obceil) Channels + +| Channel | Type | Description | Comment | +|------------------|---------|-------------------------------------|------------| +| on | Switch | Power | | +| mode | Number | Mode | | +| brightness | Number | Brightness | | +| cct | Number | Color Temperature | | +| dv | Number | Delayed Turn-off | | +| WallSceneEn | Switch | Wall Scene Enable | | +| WallScene | String | Wall Scene | | +| autoCct | String | Auto CCT | | +| dimmingPeriod | Number | Dimming Period | | +| MibandStatus | String | Mi Band Status | | + +### Philips Ceiling Light (philips.light.obceim) Channels + +| Channel | Type | Description | Comment | +|------------------|---------|-------------------------------------|------------| +| on | Switch | Power | | +| mode | Number | Mode | | +| brightness | Number | Brightness | | +| cct | Number | Color Temperature | | +| dv | Number | Delayed Turn-off | | +| WallSceneEn | Switch | Wall Scene Enable | | +| WallScene | String | Wall Scene | | +| autoCct | String | Auto CCT | | +| dimmingPeriod | Number | Dimming Period | | +| MibandStatus | String | Mi Band Status | | + +### Philips Ceiling Light (philips.light.obceis) Channels + +| Channel | Type | Description | Comment | +|------------------|---------|-------------------------------------|------------| +| on | Switch | Power | | +| mode | Number | Mode | | +| brightness | Number | Brightness | | +| cct | Number | Color Temperature | | +| dv | Number | Delayed Turn-off | | +| WallSceneEn | Switch | Wall Scene Enable | | +| WallScene | String | Wall Scene | | +| autoCct | String | Auto CCT | | +| dimmingPeriod | Number | Dimming Period | | +| MibandStatus | String | Mi Band Status | | + +### Philips Ceiling Light (philips.light.sceil) Channels + +| Channel | Type | Description | Comment | +|------------------|---------|-------------------------------------|------------| +| on | Switch | Power | | +| mode | Number | Mode | | +| brightness | Number | Brightness | | +| cct | Number | Color Temperature | | +| dv | Number | Delayed Turn-off | | +| WallSceneEn | Switch | Wall Scene Enable | | +| WallScene | String | Wall Scene | | +| autoCct | String | Auto CCT | | +| dimmingPeriod | Number | Dimming Period | | +| MibandStatus | String | Mi Band Status | | + +### Philips Ceiling Light (philips.light.sceilm) Channels + +| Channel | Type | Description | Comment | +|------------------|---------|-------------------------------------|------------| +| on | Switch | Power | | +| mode | Number | Mode | | +| brightness | Number | Brightness | | +| cct | Number | Color Temperature | | +| dv | Number | Delayed Turn-off | | +| WallSceneEn | Switch | Wall Scene Enable | | +| WallScene | String | Wall Scene | | +| autoCct | String | Auto CCT | | +| dimmingPeriod | Number | Dimming Period | | +| MibandStatus | String | Mi Band Status | | + +### Philips Ceiling Light (philips.light.sceils) Channels + +| Channel | Type | Description | Comment | +|------------------|---------|-------------------------------------|------------| +| on | Switch | Power | | +| mode | Number | Mode | | +| brightness | Number | Brightness | | +| cct | Number | Color Temperature | | +| dv | Number | Delayed Turn-off | | +| WallSceneEn | Switch | Wall Scene Enable | | +| WallScene | String | Wall Scene | | +| autoCct | String | Auto CCT | | +| dimmingPeriod | Number | Dimming Period | | +| MibandStatus | String | Mi Band Status | | + +### Philips Ceiling Light (philips.light.xzceil) Channels + +| Channel | Type | Description | Comment | +|------------------|---------|-------------------------------------|------------| +| on | Switch | Power | | +| mode | Number | Mode | | +| brightness | Number | Brightness | | +| cct | Number | Color Temperature | | +| dv | Number | Delayed Turn-off | | +| WallSceneEn | Switch | Wall Scene Enable | | +| WallScene | String | Wall Scene | | +| autoCct | String | Auto CCT | | +| dimmingPeriod | Number | Dimming Period | | +| MibandStatus | String | Mi Band Status | | + +### Philips Ceiling Light (philips.light.xzceim) Channels + +| Channel | Type | Description | Comment | +|------------------|---------|-------------------------------------|------------| +| on | Switch | Power | | +| mode | Number | Mode | | +| brightness | Number | Brightness | | +| cct | Number | Color Temperature | | +| dv | Number | Delayed Turn-off | | +| WallSceneEn | Switch | Wall Scene Enable | | +| WallScene | String | Wall Scene | | +| autoCct | String | Auto CCT | | +| dimmingPeriod | Number | Dimming Period | | +| MibandStatus | String | Mi Band Status | | + +### Philips Ceiling Light (philips.light.xzceis) Channels + +| Channel | Type | Description | Comment | +|------------------|---------|-------------------------------------|------------| +| on | Switch | Power | | +| mode | Number | Mode | | +| brightness | Number | Brightness | | +| cct | Number | Color Temperature | | +| dv | Number | Delayed Turn-off | | +| WallSceneEn | Switch | Wall Scene Enable | | +| WallScene | String | Wall Scene | | +| autoCct | String | Auto CCT | | +| dimmingPeriod | Number | Dimming Period | | +| MibandStatus | String | Mi Band Status | | + ### philips.light.virtual (philips.light.virtual) Channels | Channel | Type | Description | Comment | @@ -4003,6 +4211,240 @@ Dimmer brightness "Brightness" (G_light) {channel="miio:basic:light:brightness"} Number scene "Scene" (G_light) {channel="miio:basic:light:scene"} ``` +### Light (philips.light.dlight) 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 "Light" +Switch on "Power" (G_light) {channel="miio:basic:light:on"} +Number mode "Mode" (G_light) {channel="miio:basic:light:mode"} +Number brightness "Brightness" (G_light) {channel="miio:basic:light:brightness"} +Number cct "Color Temperature" (G_light) {channel="miio:basic:light:cct"} +Number dv "Delayed Turn-off" (G_light) {channel="miio:basic:light:dv"} +Switch WallSceneEn "Wall Scene Enable" (G_light) {channel="miio:basic:light:WallSceneEn"} +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"} +``` + +### Philips Ceiling Light (philips.light.mceil) 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 "Philips Ceiling Light" +Switch on "Power" (G_light) {channel="miio:basic:light:on"} +Number mode "Mode" (G_light) {channel="miio:basic:light:mode"} +Number brightness "Brightness" (G_light) {channel="miio:basic:light:brightness"} +Number cct "Color Temperature" (G_light) {channel="miio:basic:light:cct"} +Number dv "Delayed Turn-off" (G_light) {channel="miio:basic:light:dv"} +Switch WallSceneEn "Wall Scene Enable" (G_light) {channel="miio:basic:light:WallSceneEn"} +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"} +``` + +### Philips Ceiling Light (philips.light.mceilm) 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 "Philips Ceiling Light" +Switch on "Power" (G_light) {channel="miio:basic:light:on"} +Number mode "Mode" (G_light) {channel="miio:basic:light:mode"} +Number brightness "Brightness" (G_light) {channel="miio:basic:light:brightness"} +Number cct "Color Temperature" (G_light) {channel="miio:basic:light:cct"} +Number dv "Delayed Turn-off" (G_light) {channel="miio:basic:light:dv"} +Switch WallSceneEn "Wall Scene Enable" (G_light) {channel="miio:basic:light:WallSceneEn"} +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"} +``` + +### Philips Ceiling Light (philips.light.mceils) 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 "Philips Ceiling Light" +Switch on "Power" (G_light) {channel="miio:basic:light:on"} +Number mode "Mode" (G_light) {channel="miio:basic:light:mode"} +Number brightness "Brightness" (G_light) {channel="miio:basic:light:brightness"} +Number cct "Color Temperature" (G_light) {channel="miio:basic:light:cct"} +Number dv "Delayed Turn-off" (G_light) {channel="miio:basic:light:dv"} +Switch WallSceneEn "Wall Scene Enable" (G_light) {channel="miio:basic:light:WallSceneEn"} +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"} +``` + +### Philips Ceiling Light (philips.light.obceil) 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 "Philips Ceiling Light" +Switch on "Power" (G_light) {channel="miio:basic:light:on"} +Number mode "Mode" (G_light) {channel="miio:basic:light:mode"} +Number brightness "Brightness" (G_light) {channel="miio:basic:light:brightness"} +Number cct "Color Temperature" (G_light) {channel="miio:basic:light:cct"} +Number dv "Delayed Turn-off" (G_light) {channel="miio:basic:light:dv"} +Switch WallSceneEn "Wall Scene Enable" (G_light) {channel="miio:basic:light:WallSceneEn"} +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"} +``` + +### Philips Ceiling Light (philips.light.obceim) 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 "Philips Ceiling Light" +Switch on "Power" (G_light) {channel="miio:basic:light:on"} +Number mode "Mode" (G_light) {channel="miio:basic:light:mode"} +Number brightness "Brightness" (G_light) {channel="miio:basic:light:brightness"} +Number cct "Color Temperature" (G_light) {channel="miio:basic:light:cct"} +Number dv "Delayed Turn-off" (G_light) {channel="miio:basic:light:dv"} +Switch WallSceneEn "Wall Scene Enable" (G_light) {channel="miio:basic:light:WallSceneEn"} +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"} +``` + +### Philips Ceiling Light (philips.light.obceis) 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 "Philips Ceiling Light" +Switch on "Power" (G_light) {channel="miio:basic:light:on"} +Number mode "Mode" (G_light) {channel="miio:basic:light:mode"} +Number brightness "Brightness" (G_light) {channel="miio:basic:light:brightness"} +Number cct "Color Temperature" (G_light) {channel="miio:basic:light:cct"} +Number dv "Delayed Turn-off" (G_light) {channel="miio:basic:light:dv"} +Switch WallSceneEn "Wall Scene Enable" (G_light) {channel="miio:basic:light:WallSceneEn"} +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"} +``` + +### Philips Ceiling Light (philips.light.sceil) 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 "Philips Ceiling Light" +Switch on "Power" (G_light) {channel="miio:basic:light:on"} +Number mode "Mode" (G_light) {channel="miio:basic:light:mode"} +Number brightness "Brightness" (G_light) {channel="miio:basic:light:brightness"} +Number cct "Color Temperature" (G_light) {channel="miio:basic:light:cct"} +Number dv "Delayed Turn-off" (G_light) {channel="miio:basic:light:dv"} +Switch WallSceneEn "Wall Scene Enable" (G_light) {channel="miio:basic:light:WallSceneEn"} +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"} +``` + +### Philips Ceiling Light (philips.light.sceilm) 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 "Philips Ceiling Light" +Switch on "Power" (G_light) {channel="miio:basic:light:on"} +Number mode "Mode" (G_light) {channel="miio:basic:light:mode"} +Number brightness "Brightness" (G_light) {channel="miio:basic:light:brightness"} +Number cct "Color Temperature" (G_light) {channel="miio:basic:light:cct"} +Number dv "Delayed Turn-off" (G_light) {channel="miio:basic:light:dv"} +Switch WallSceneEn "Wall Scene Enable" (G_light) {channel="miio:basic:light:WallSceneEn"} +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"} +``` + +### Philips Ceiling Light (philips.light.sceils) 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 "Philips Ceiling Light" +Switch on "Power" (G_light) {channel="miio:basic:light:on"} +Number mode "Mode" (G_light) {channel="miio:basic:light:mode"} +Number brightness "Brightness" (G_light) {channel="miio:basic:light:brightness"} +Number cct "Color Temperature" (G_light) {channel="miio:basic:light:cct"} +Number dv "Delayed Turn-off" (G_light) {channel="miio:basic:light:dv"} +Switch WallSceneEn "Wall Scene Enable" (G_light) {channel="miio:basic:light:WallSceneEn"} +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"} +``` + +### Philips Ceiling Light (philips.light.xzceil) 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 "Philips Ceiling Light" +Switch on "Power" (G_light) {channel="miio:basic:light:on"} +Number mode "Mode" (G_light) {channel="miio:basic:light:mode"} +Number brightness "Brightness" (G_light) {channel="miio:basic:light:brightness"} +Number cct "Color Temperature" (G_light) {channel="miio:basic:light:cct"} +Number dv "Delayed Turn-off" (G_light) {channel="miio:basic:light:dv"} +Switch WallSceneEn "Wall Scene Enable" (G_light) {channel="miio:basic:light:WallSceneEn"} +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"} +``` + +### Philips Ceiling Light (philips.light.xzceim) 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 "Philips Ceiling Light" +Switch on "Power" (G_light) {channel="miio:basic:light:on"} +Number mode "Mode" (G_light) {channel="miio:basic:light:mode"} +Number brightness "Brightness" (G_light) {channel="miio:basic:light:brightness"} +Number cct "Color Temperature" (G_light) {channel="miio:basic:light:cct"} +Number dv "Delayed Turn-off" (G_light) {channel="miio:basic:light:dv"} +Switch WallSceneEn "Wall Scene Enable" (G_light) {channel="miio:basic:light:WallSceneEn"} +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"} +``` + +### Philips Ceiling Light (philips.light.xzceis) 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 "Philips Ceiling Light" +Switch on "Power" (G_light) {channel="miio:basic:light:on"} +Number mode "Mode" (G_light) {channel="miio:basic:light:mode"} +Number brightness "Brightness" (G_light) {channel="miio:basic:light:brightness"} +Number cct "Color Temperature" (G_light) {channel="miio:basic:light:cct"} +Number dv "Delayed Turn-off" (G_light) {channel="miio:basic:light:dv"} +Switch WallSceneEn "Wall Scene Enable" (G_light) {channel="miio:basic:light:WallSceneEn"} +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"} +``` + ### philips.light.virtual (philips.light.virtual) 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 c3ade94e155..c927e9bc980 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 @@ -105,6 +105,19 @@ public enum MiIoDevices { PHILIPS_LIGHT_CANDLE2("philips.light.candle2", "Xiaomi PHILIPS Zhirui Smart LED Bulb E14 Candle Lamp White Crystal", THING_TYPE_BASIC), PHILIPS_LIGHT_MONO1("philips.light.mono1", "philips.light.mono1", THING_TYPE_BASIC), + PHILIPS_LIGHT_DLIGHT("philips.light.dlight", "Philips Down Light", THING_TYPE_BASIC), + PHILIPS_LIGHT_MCEIL("philips.light.mceil", "Philips Ceiling Light", THING_TYPE_BASIC), + PHILIPS_LIGHT_MCEILM("philips.light.mceilm", "Philips Ceiling Light", THING_TYPE_BASIC), + PHILIPS_LIGHT_MCEILS("philips.light.mceils", "Philips Ceiling Light", THING_TYPE_BASIC), + PHILIPS_LIGHT_OBCEIL("philips.light.obceil", "Philips Ceiling Light", THING_TYPE_BASIC), + PHILIPS_LIGHT_OBCEIM("philips.light.obceim", "Philips Ceiling Light", THING_TYPE_BASIC), + PHILIPS_LIGHT_OBCEIS("philips.light.obceis", "Philips Ceiling Light", THING_TYPE_BASIC), + PHILIPS_LIGHT_SCEIL("philips.light.sceil", "Philips Ceiling Light", THING_TYPE_BASIC), + PHILIPS_LIGHT_SCEILM("philips.light.sceilm", "Philips Ceiling Light", THING_TYPE_BASIC), + PHILIPS_LIGHT_SCEILS("philips.light.sceils", "Philips Ceiling Light", THING_TYPE_BASIC), + PHILIPS_LIGHT_XZCEIL("philips.light.xzceil", "Philips Ceiling Light", THING_TYPE_BASIC), + PHILIPS_LIGHT_XZCEIM("philips.light.xzceim", "Philips Ceiling Light", THING_TYPE_BASIC), + PHILIPS_LIGHT_XZCEIS("philips.light.xzceis", "Philips Ceiling Light", THING_TYPE_BASIC), PHILIPS_LIGHT_VIRTUAL("philips.light.virtual", "philips.light.virtual", THING_TYPE_BASIC), PHILIPS_LIGHT_ZYSREAD("philips.light.zysread", "philips.light.zysread", THING_TYPE_BASIC), PHILIPS_LIGHT_ZYSTRIP("philips.light.zystrip", "philips.light.zystrip", THING_TYPE_BASIC), diff --git a/bundles/org.openhab.binding.miio/src/main/resources/database/philips.light.ceil-miot.json b/bundles/org.openhab.binding.miio/src/main/resources/database/philips.light.ceil-miot.json new file mode 100644 index 00000000000..d0db51e3d7d --- /dev/null +++ b/bundles/org.openhab.binding.miio/src/main/resources/database/philips.light.ceil-miot.json @@ -0,0 +1,179 @@ +{ + "deviceMapping": { + "id": [ + "philips.light.dlight", + "philips.light.mceil", + "philips.light.mceilm", + "philips.light.mceils", + "philips.light.obceil", + "philips.light.obceim", + "philips.light.obceis", + "philips.light.sceil", + "philips.light.sceilm", + "philips.light.sceils", + "philips.light.xzceil", + "philips.light.xzceim", + "philips.light.xzceis" + ], + "propertyMethod": "get_properties", + "maxProperties": 4, + "channels": [ + { + "property": "on", + "siid": 2, + "piid": 1, + "friendlyName": "Power", + "channel": "on", + "channelType": "miot_bool", + "type": "Switch", + "refresh": true, + "actions": [ + { + "command": "set_properties", + "parameterType": "ONOFFBOOL" + } + ] + }, + { + "property": "mode", + "siid": 2, + "piid": 2, + "friendlyName": "Mode", + "channel": "mode", + "channelType": "miot_uint8", + "type": "Number", + "refresh": true, + "actions": [ + { + "command": "set_properties", + "parameterType": "NUMBER" + } + ] + }, + { + "property": "brightness", + "siid": 2, + "piid": 3, + "friendlyName": "Brightness", + "channel": "brightness", + "channelType": "miot_uint8", + "type": "Number", + "refresh": true, + "actions": [ + { + "command": "set_properties", + "parameterType": "NUMBER" + } + ] + }, + { + "property": "color-temperature", + "siid": 2, + "piid": 4, + "friendlyName": "Color Temperature", + "channel": "cct", + "channelType": "miot_uint32", + "type": "Number", + "refresh": true, + "actions": [ + { + "command": "set_properties", + "parameterType": "STRING" + } + ] + }, + { + "property": "dvalue", + "siid": 3, + "piid": 1, + "friendlyName": "Delayed Turn-off", + "channel": "dv", + "channelType": "miot_uint16", + "type": "Number", + "refresh": true, + "actions": [ + { + "command": "set_properties", + "parameterType": "STRING" + } + ] + }, + { + "property": "wall-scene-en", + "siid": 3, + "piid": 2, + "friendlyName": "Wall Scene Enable", + "channel": "WallSceneEn", + "channelType": "miot_bool", + "type": "Switch", + "refresh": true, + "actions": [ + { + "command": "set_properties", + "parameterType": "ONOFFBOOL" + } + ] + }, + { + "property": "wall-scene", + "siid": 3, + "piid": 3, + "friendlyName": "Wall Scene", + "channel": "WallScene", + "channelType": "miot_string", + "type": "String", + "refresh": true, + "actions": [ + { + "command": "set_properties", + "parameterType": "STRING" + } + ] + }, + { + "property": "auto-cct", + "siid": 3, + "piid": 4, + "friendlyName": "Auto CCT", + "channel": "autoCct", + "channelType": "miot_string", + "type": "String", + "refresh": true, + "actions": [ + { + "command": "set_properties", + "parameterType": "STRING" + } + ] + }, + { + "property": "dimming-period", + "siid": 3, + "piid": 6, + "friendlyName": "Dimming Period", + "channel": "dimmingPeriod", + "channelType": "miot_uint16", + "type": "Number", + "refresh": true, + "actions": [ + { + "command": "set_properties", + "parameterType": "STRING" + } + ] + }, + { + "property": "miband-status", + "siid": 3, + "piid": 12, + "friendlyName": "Mi Band Status", + "channel": "MibandStatus", + "channelType": "miot_string", + "type": "String", + "refresh": true, + "actions": [] + } + ], + "experimental": true + } +}