]> git.basschouten.com Git - openhab-addons.git/commitdiff
[miio] Miio philips miot lights (#8699)
authorMarcel <marcelrv@users.noreply.github.com>
Fri, 9 Oct 2020 03:14:51 +0000 (05:14 +0200)
committerGitHub <noreply@github.com>
Fri, 9 Oct 2020 03:14:51 +0000 (20:14 -0700)
* [miio] add Philips miot ceiling lights

adding models
philips.light.dlight
philips.light.mceil
philips.light.mceilm
philips.light.mceils
philips.light.obceil
philips.light.obceim
philips.light.obceis
philips.light.xzceil
philips.light.xzceim
philips.light.xzceis
philips.light.sceil
philips.light.sceilm
philips.light.sceils

* [miio] change name downlight

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/philips.light.ceil-miot.json [new file with mode: 0644]

index 573cd5970c8cb9a76bc94065611128970683cae4..6cbccfe5a3af6e12b6b2b7c88e2dccb45bcf5dbc 100644 (file)
@@ -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 (<a name="philips-light-dlight">philips.light.dlight</a>) 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 (<a name="philips-light-mceil">philips.light.mceil</a>) 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 (<a name="philips-light-mceilm">philips.light.mceilm</a>) 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 (<a name="philips-light-mceils">philips.light.mceils</a>) 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 (<a name="philips-light-obceil">philips.light.obceil</a>) 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 (<a name="philips-light-obceim">philips.light.obceim</a>) 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 (<a name="philips-light-obceis">philips.light.obceis</a>) 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 (<a name="philips-light-sceil">philips.light.sceil</a>) 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 (<a name="philips-light-sceilm">philips.light.sceilm</a>) 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 (<a name="philips-light-sceils">philips.light.sceils</a>) 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 (<a name="philips-light-xzceil">philips.light.xzceil</a>) 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 (<a name="philips-light-xzceim">philips.light.xzceim</a>) 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 (<a name="philips-light-xzceis">philips.light.xzceis</a>) 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 (<a name="philips-light-virtual">philips.light.virtual</a>) 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" <status>
+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" <status>
+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" <status>
+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" <status>
+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" <status>
+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" <status>
+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" <status>
+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" <status>
+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" <status>
+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" <status>
+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" <status>
+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" <status>
+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" <status>
+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.
index c3ade94e1555a932ddff7400b5c1a5e737a2f84f..c927e9bc980edfb270cf53ca96cb231b67306644 100644 (file)
@@ -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 (file)
index 0000000..d0db51e
--- /dev/null
@@ -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
+       }
+}