From a980dbfb4d7c7e2115a189864249c3631eecd128 Mon Sep 17 00:00:00 2001 From: Marcel Date: Mon, 5 Oct 2020 19:35:00 +0200 Subject: [PATCH] [miio] Add many new Yeelights models (#8668) * [miio] Add many new Yeelights models closing #8082 * [miio] update doc Signed-off-by: Marcel Verpaalen --- bundles/org.openhab.binding.miio/README.md | 1010 +++++++++++++++-- .../binding/miio/internal/MiIoDevices.java | 28 + .../database/chuangmi.plug.v3fw.json | 1 + .../main/resources/database/yeelink.bhf1.json | 98 ++ .../database/yeelink.light.ceiling.json | 19 +- .../database/yeelink.light.ceiling2.json | 3 +- .../database/yeelink.light.color1.json | 3 +- .../database/yeelink.light.lamp1.json | 8 + 8 files changed, 1059 insertions(+), 111 deletions(-) create mode 100644 bundles/org.openhab.binding.miio/src/main/resources/database/yeelink.bhf1.json diff --git a/bundles/org.openhab.binding.miio/README.md b/bundles/org.openhab.binding.miio/README.md index 0536d02c25..3f7f28607c 100644 --- a/bundles/org.openhab.binding.miio/README.md +++ b/bundles/org.openhab.binding.miio/README.md @@ -225,6 +225,9 @@ or in case of unknown models include the model information e.g.: | Mi Internet Speaker | miio:unsupported | xiaomi.wifispeaker.v1 | No | | | Yeelight Lamp | miio:basic | [yeelink.light.bslamp1](#yeelink-light-bslamp1) | Yes | | | Yeelight Lamp | miio:basic | [yeelink.light.bslamp2](#yeelink-light-bslamp2) | Yes | | +| Yeelight Lamp | miio:basic | [yeelink.light.bslamp3](#yeelink-light-bslamp3) | Yes | | +| Yeelight BadHeater | miio:basic | [yeelink.bhf_light.v1](#yeelink-bhf_light-v1) | Yes | | +| Yeelight BadHeater | miio:basic | [yeelink.bhf_light.v2](#yeelink-bhf_light-v2) | Yes | | | Yeelight LED Ceiling Lamp | miio:basic | [yeelink.light.ceiling1](#yeelink-light-ceiling1) | Yes | | | Yeelight LED Ceiling Lamp v2 | miio:basic | [yeelink.light.ceiling2](#yeelink-light-ceiling2) | Yes | | | Yeelight LED Ceiling Lamp v3 | miio:basic | [yeelink.light.ceiling3](#yeelink-light-ceiling3) | Yes | | @@ -239,20 +242,45 @@ or in case of unknown models include the model information e.g.: | Yeelight LED Ceiling Lamp v11 | miio:basic | [yeelink.light.ceiling11](#yeelink-light-ceiling11) | Yes | | | Yeelight LED Ceiling Lamp v12 | miio:basic | [yeelink.light.ceiling12](#yeelink-light-ceiling12) | Yes | | | Yeelight LED Ceiling Lamp v13 | miio:basic | [yeelink.light.ceiling13](#yeelink-light-ceiling13) | Yes | | +| Yeelight LED Ceiling Lamp | miio:basic | [yeelink.light.ceiling14](#yeelink-light-ceiling14) | Yes | | +| Yeelight LED Ceiling Lamp | miio:basic | [yeelink.light.ceiling15](#yeelink-light-ceiling15) | Yes | | +| Yeelight LED Ceiling Lamp | miio:basic | [yeelink.light.ceiling16](#yeelink-light-ceiling16) | Yes | | +| Yeelight LED Ceiling Lamp | miio:basic | [yeelink.light.ceiling17](#yeelink-light-ceiling17) | Yes | | +| Yeelight LED Ceiling Lamp | miio:basic | [yeelink.light.ceiling18](#yeelink-light-ceiling18) | Yes | | +| Yeelight LED Ceiling Lamp | miio:basic | [yeelink.light.ceiling19](#yeelink-light-ceiling19) | Yes | | +| Yeelight LED Ceiling Lamp | miio:basic | [yeelink.light.ceiling20](#yeelink-light-ceiling20) | Yes | | +| Yeelight LED Ceiling Lamp | miio:basic | [yeelink.light.ceiling21](#yeelink-light-ceiling21) | Yes | | +| Yeelight LED Ceiling Lamp | miio:basic | [yeelink.light.ceiling22](#yeelink-light-ceiling22) | Yes | | +| Yeelight LED Ceiling Lamp | miio:basic | [yeelink.light.ceiling23](#yeelink-light-ceiling23) | Yes | | +| Yeelight LED Ceiling Ambi Lamp | miio:basic | [yeelink.light.ceiling4.ambi](#yeelink-light-ceiling4-ambi) | Yes | | +| Yeelight LED Ceiling Ambi Lamp | miio:basic | [yeelink.light.ceiling10.ambi](#yeelink-light-ceiling10-ambi) | Yes | | +| Yeelight LED Ceiling Ambi Lamp | miio:basic | [yeelink.light.ceiling19.ambi](#yeelink-light-ceiling19-ambi) | Yes | | +| Yeelight LED Ceiling Ambi Lamp | miio:basic | [yeelink.light.ceiling20.ambi](#yeelink-light-ceiling20-ambi) | Yes | | | Yeelight ct2 | miio:basic | [yeelink.light.ct2](#yeelink-light-ct2) | Yes | | | Yeelight White Bulb | miio:basic | [yeelink.light.mono1](#yeelink-light-mono1) | Yes | | | Yeelight White Bulb v2 | miio:basic | [yeelink.light.mono2](#yeelink-light-mono2) | Yes | | +| Yeelight White | miio:basic | [yeelink.light.mono5](#yeelink-light-mono5) | Yes | | | Yeelight Wifi Speaker | miio:unsupported | yeelink.wifispeaker.v1 | No | | | Yeelight | miio:basic | [yeelink.light.lamp1](#yeelink-light-lamp1) | Yes | | | Yeelight | miio:basic | [yeelink.light.lamp2](#yeelink-light-lamp2) | Yes | | | Yeelight | miio:basic | [yeelink.light.lamp3](#yeelink-light-lamp3) | Yes | | +| Yeelight | miio:basic | [yeelink.light.lamp4](#yeelink-light-lamp4) | Yes | | +| Yeelight | miio:basic | [yeelink.light.lamp5](#yeelink-light-lamp5) | Yes | | +| Yeelight | miio:basic | [yeelink.light.lamp6](#yeelink-light-lamp6) | Yes | | +| Yeelight | miio:basic | [yeelink.light.lamp7](#yeelink-light-lamp7) | Yes | | +| Yeelight | miio:basic | [yeelink.light.lamp8](#yeelink-light-lamp8) | Yes | | +| Yeelight Panel | miio:basic | [yeelink.light.panel1](#yeelink-light-panel1) | Yes | | | Yeelight Strip | miio:basic | [yeelink.light.strip1](#yeelink-light-strip1) | Yes | | | Yeelight Strip | miio:basic | [yeelink.light.strip2](#yeelink-light-strip2) | Yes | | +| Yeelight Strip | miio:basic | [yeelink.light.strip4](#yeelink-light-strip4) | Yes | | | Yeelight | miio:basic | [yeelink.light.virtual](#yeelink-light-virtual) | Yes | | | Yeelight Color Bulb | miio:basic | [yeelink.light.color1](#yeelink-light-color1) | Yes | | | Yeelight Color Bulb YLDP06YL 10W | miio:basic | [yeelink.light.color2](#yeelink-light-color2) | Yes | | | Yeelight Color Bulb YLDP02YL 9W | miio:basic | [yeelink.light.color3](#yeelink-light-color3) | Yes | | | Yeelight Bulb YLDP13YL (8,5W) | miio:basic | [yeelink.light.color4](#yeelink-light-color4) | Yes | | +| Yeelight yilai ceiling | miio:basic | [yilai.light.ceiling1](#yilai-light-ceiling1) | Yes | | +| Yeelight yilai ceiling | miio:basic | [yilai.light.ceiling2](#yilai-light-ceiling2) | Yes | | +| Yeelight yilai ceiling | miio:basic | [yilai.light.ceiling3](#yilai-light-ceiling3) | Yes | | # Advanced: Unsupported devices @@ -1309,7 +1337,7 @@ e.g. `smarthome:send actionCommand 'upd_timer["1498595904821", "on"]'` would ena | Channel | Type | Description | Comment | |------------------|---------|-------------------------------------|------------| -| power | Switch | Power | | +| power | Switch | Power | If this channel does not respond to on/off replace the model with chuangmi.plug.v3old in the config or upgrade firmware | | usb | Switch | USB | | | temperature | Number | Temperature | | | led | Switch | Wifi LED | | @@ -1846,6 +1874,41 @@ e.g. `smarthome:send actionCommand 'upd_timer["1498595904821", "on"]'` would ena | rgbColor | Color | RGB Color | | | name | String | Name | | +### Yeelight Lamp (yeelink.light.bslamp3) Channels + +| Channel | Type | Description | Comment | +|------------------|---------|-------------------------------------|------------| +| power | Switch | Power | | +| brightness | Dimmer | Brightness | | +| delayoff | Number | Shutdown Timer | | +| colorTemperature | Number | Color Temperature | | +| colorMode | String | Color Mode | | +| toggle | Switch | toggle | | +| rgbColor | Color | RGB Color | | +| name | String | Name | | + +### Yeelight BadHeater (yeelink.bhf_light.v1) Channels + +| Channel | Type | Description | Comment | +|------------------|---------|-------------------------------------|------------| +| power | Switch | Power | | +| bh_mode | String | Bath Heater mode | | +| brightness | Dimmer | Brightness | | +| delayoff | Number | Shutdown Timer | | +| temperature | Number | Temperature | | +| nightlightBrightness | Number | Nightlight Brightness | | + +### Yeelight BadHeater (yeelink.bhf_light.v2) Channels + +| Channel | Type | Description | Comment | +|------------------|---------|-------------------------------------|------------| +| power | Switch | Power | | +| bh_mode | String | Bath Heater mode | | +| brightness | Dimmer | Brightness | | +| delayoff | Number | Shutdown Timer | | +| temperature | Number | Temperature | | +| nightlightBrightness | Number | Nightlight Brightness | | + ### Yeelight LED Ceiling Lamp (yeelink.light.ceiling1) Channels | Channel | Type | Description | Comment | @@ -1909,16 +1972,11 @@ e.g. `smarthome:send actionCommand 'upd_timer["1498595904821", "on"]'` would ena |------------------|---------|-------------------------------------|------------| | power | Switch | Power | | | brightness | Dimmer | Brightness | | -| ambientBrightness | Number | Ambient Brightness | | | delayoff | Number | Shutdown Timer | | | colorTemperature | Number | Color Temperature | | | colorMode | Number | Color Mode | | | name | String | Name | | -| ambientPower | Switch | Ambient Power | | -| ambientColor | Color | Ambient Color | | -| ambientColorTemperature | Number | Ambient Color Temperature | | | customScene | String | Set Scene | | -| ambientColorMode | Number | Ambient Color Mode | | | nightlightBrightness | Number | Nightlight Brightness | | ### Yeelight LED Ceiling Lamp v5 (yeelink.light.ceiling5) Channels @@ -2043,7 +2101,7 @@ e.g. `smarthome:send actionCommand 'upd_timer["1498595904821", "on"]'` would ena | customScene | String | Set Scene | | | nightlightBrightness | Number | Nightlight Brightness | | -### Yeelight ct2 (yeelink.light.ct2) Channels +### Yeelight LED Ceiling Lamp (yeelink.light.ceiling14) Channels | Channel | Type | Description | Comment | |------------------|---------|-------------------------------------|------------| @@ -2053,8 +2111,10 @@ e.g. `smarthome:send actionCommand 'upd_timer["1498595904821", "on"]'` would ena | colorTemperature | Number | Color Temperature | | | colorMode | Number | Color Mode | | | name | String | Name | | +| customScene | String | Set Scene | | +| nightlightBrightness | Number | Nightlight Brightness | | -### Yeelight White Bulb (yeelink.light.mono1) Channels +### Yeelight LED Ceiling Lamp (yeelink.light.ceiling15) Channels | Channel | Type | Description | Comment | |------------------|---------|-------------------------------------|------------| @@ -2064,8 +2124,10 @@ e.g. `smarthome:send actionCommand 'upd_timer["1498595904821", "on"]'` would ena | colorTemperature | Number | Color Temperature | | | colorMode | Number | Color Mode | | | name | String | Name | | +| customScene | String | Set Scene | | +| nightlightBrightness | Number | Nightlight Brightness | | -### Yeelight White Bulb v2 (yeelink.light.mono2) Channels +### Yeelight LED Ceiling Lamp (yeelink.light.ceiling16) Channels | Channel | Type | Description | Comment | |------------------|---------|-------------------------------------|------------| @@ -2075,8 +2137,10 @@ e.g. `smarthome:send actionCommand 'upd_timer["1498595904821", "on"]'` would ena | colorTemperature | Number | Color Temperature | | | colorMode | Number | Color Mode | | | name | String | Name | | +| customScene | String | Set Scene | | +| nightlightBrightness | Number | Nightlight Brightness | | -### Yeelight (yeelink.light.lamp1) Channels +### Yeelight LED Ceiling Lamp (yeelink.light.ceiling17) Channels | Channel | Type | Description | Comment | |------------------|---------|-------------------------------------|------------| @@ -2086,8 +2150,10 @@ e.g. `smarthome:send actionCommand 'upd_timer["1498595904821", "on"]'` would ena | colorTemperature | Number | Color Temperature | | | colorMode | Number | Color Mode | | | name | String | Name | | +| customScene | String | Set Scene | | +| nightlightBrightness | Number | Nightlight Brightness | | -### Yeelight (yeelink.light.lamp2) Channels +### Yeelight LED Ceiling Lamp (yeelink.light.ceiling18) Channels | Channel | Type | Description | Comment | |------------------|---------|-------------------------------------|------------| @@ -2097,8 +2163,10 @@ e.g. `smarthome:send actionCommand 'upd_timer["1498595904821", "on"]'` would ena | colorTemperature | Number | Color Temperature | | | colorMode | Number | Color Mode | | | name | String | Name | | +| customScene | String | Set Scene | | +| nightlightBrightness | Number | Nightlight Brightness | | -### Yeelight (yeelink.light.lamp3) Channels +### Yeelight LED Ceiling Lamp (yeelink.light.ceiling19) Channels | Channel | Type | Description | Comment | |------------------|---------|-------------------------------------|------------| @@ -2108,8 +2176,10 @@ e.g. `smarthome:send actionCommand 'upd_timer["1498595904821", "on"]'` would ena | colorTemperature | Number | Color Temperature | | | colorMode | Number | Color Mode | | | name | String | Name | | +| customScene | String | Set Scene | | +| nightlightBrightness | Number | Nightlight Brightness | | -### Yeelight Strip (yeelink.light.strip1) Channels +### Yeelight LED Ceiling Lamp (yeelink.light.ceiling20) Channels | Channel | Type | Description | Comment | |------------------|---------|-------------------------------------|------------| @@ -2117,12 +2187,12 @@ e.g. `smarthome:send actionCommand 'upd_timer["1498595904821", "on"]'` would ena | brightness | Dimmer | Brightness | | | delayoff | Number | Shutdown Timer | | | colorTemperature | Number | Color Temperature | | -| colorMode | String | Color Mode | | -| toggle | Switch | toggle | | -| rgbColor | Color | RGB Color | | +| colorMode | Number | Color Mode | | | name | String | Name | | +| customScene | String | Set Scene | | +| nightlightBrightness | Number | Nightlight Brightness | | -### Yeelight Strip (yeelink.light.strip2) Channels +### Yeelight LED Ceiling Lamp (yeelink.light.ceiling21) Channels | Channel | Type | Description | Comment | |------------------|---------|-------------------------------------|------------| @@ -2130,12 +2200,12 @@ e.g. `smarthome:send actionCommand 'upd_timer["1498595904821", "on"]'` would ena | brightness | Dimmer | Brightness | | | delayoff | Number | Shutdown Timer | | | colorTemperature | Number | Color Temperature | | -| colorMode | String | Color Mode | | -| toggle | Switch | toggle | | -| rgbColor | Color | RGB Color | | +| colorMode | Number | Color Mode | | | name | String | Name | | +| customScene | String | Set Scene | | +| nightlightBrightness | Number | Nightlight Brightness | | -### Yeelight (yeelink.light.virtual) Channels +### Yeelight LED Ceiling Lamp (yeelink.light.ceiling22) Channels | Channel | Type | Description | Comment | |------------------|---------|-------------------------------------|------------| @@ -2145,8 +2215,10 @@ e.g. `smarthome:send actionCommand 'upd_timer["1498595904821", "on"]'` would ena | colorTemperature | Number | Color Temperature | | | colorMode | Number | Color Mode | | | name | String | Name | | +| customScene | String | Set Scene | | +| nightlightBrightness | Number | Nightlight Brightness | | -### Yeelight Color Bulb (yeelink.light.color1) Channels +### Yeelight LED Ceiling Lamp (yeelink.light.ceiling23) Channels | Channel | Type | Description | Comment | |------------------|---------|-------------------------------------|------------| @@ -2154,12 +2226,12 @@ e.g. `smarthome:send actionCommand 'upd_timer["1498595904821", "on"]'` would ena | brightness | Dimmer | Brightness | | | delayoff | Number | Shutdown Timer | | | colorTemperature | Number | Color Temperature | | -| colorMode | String | Color Mode | | -| toggle | Switch | toggle | | -| rgbColor | Color | RGB Color | | +| colorMode | Number | Color Mode | | | name | String | Name | | +| customScene | String | Set Scene | | +| nightlightBrightness | Number | Nightlight Brightness | | -### Yeelight Color Bulb YLDP06YL 10W (yeelink.light.color2) Channels +### Yeelight LED Ceiling Ambi Lamp (yeelink.light.ceiling4.ambi) Channels | Channel | Type | Description | Comment | |------------------|---------|-------------------------------------|------------| @@ -2167,12 +2239,12 @@ e.g. `smarthome:send actionCommand 'upd_timer["1498595904821", "on"]'` would ena | brightness | Dimmer | Brightness | | | delayoff | Number | Shutdown Timer | | | colorTemperature | Number | Color Temperature | | -| colorMode | String | Color Mode | | -| toggle | Switch | toggle | | -| rgbColor | Color | RGB Color | | +| colorMode | Number | Color Mode | | | name | String | Name | | +| customScene | String | Set Scene | | +| nightlightBrightness | Number | Nightlight Brightness | | -### Yeelight Color Bulb YLDP02YL 9W (yeelink.light.color3) Channels +### Yeelight LED Ceiling Ambi Lamp (yeelink.light.ceiling10.ambi) Channels | Channel | Type | Description | Comment | |------------------|---------|-------------------------------------|------------| @@ -2180,12 +2252,12 @@ e.g. `smarthome:send actionCommand 'upd_timer["1498595904821", "on"]'` would ena | brightness | Dimmer | Brightness | | | delayoff | Number | Shutdown Timer | | | colorTemperature | Number | Color Temperature | | -| colorMode | String | Color Mode | | -| toggle | Switch | toggle | | -| rgbColor | Color | RGB Color | | +| colorMode | Number | Color Mode | | | name | String | Name | | +| customScene | String | Set Scene | | +| nightlightBrightness | Number | Nightlight Brightness | | -### Yeelight Bulb YLDP13YL (8,5W) (yeelink.light.color4) Channels +### Yeelight LED Ceiling Ambi Lamp (yeelink.light.ceiling19.ambi) Channels | Channel | Type | Description | Comment | |------------------|---------|-------------------------------------|------------| @@ -2193,94 +2265,391 @@ e.g. `smarthome:send actionCommand 'upd_timer["1498595904821", "on"]'` would ena | brightness | Dimmer | Brightness | | | delayoff | Number | Shutdown Timer | | | colorTemperature | Number | Color Temperature | | -| colorMode | String | Color Mode | | -| toggle | Switch | toggle | | -| rgbColor | Color | RGB Color | | +| colorMode | Number | Color Mode | | | name | String | Name | | +| customScene | String | Set Scene | | +| nightlightBrightness | Number | Nightlight Brightness | | +### Yeelight LED Ceiling Ambi Lamp (yeelink.light.ceiling20.ambi) Channels +| Channel | Type | Description | Comment | +|------------------|---------|-------------------------------------|------------| +| power | Switch | Power | | +| brightness | Dimmer | Brightness | | +| delayoff | Number | Shutdown Timer | | +| colorTemperature | Number | Color Temperature | | +| colorMode | Number | Color Mode | | +| name | String | Name | | +| customScene | String | Set Scene | | +| nightlightBrightness | Number | Nightlight Brightness | | +### Yeelight ct2 (yeelink.light.ct2) Channels -## Example item file Rockrobo vacuum +| Channel | Type | Description | Comment | +|------------------|---------|-------------------------------------|------------| +| power | Switch | Power | | +| brightness | Dimmer | Brightness | | +| delayoff | Number | Shutdown Timer | | +| colorTemperature | Number | Color Temperature | | +| colorMode | Number | Color Mode | | +| name | String | Name | | -``` -Group gVac "Xiaomi Robot Vacuum" -Group gVacStat "Status Details" (gVac) -Group gVacCons "Consumables Usage" (gVac) -Group gVacDND "Do Not Disturb Settings" (gVac) -Group gVacHist "Cleaning History" (gVac) -Group gVacLast "Last Cleaning Details" (gVac) +### Yeelight White Bulb (yeelink.light.mono1) Channels -String actionControl "Vacuum Control" {channel="miio:vacuum:034F0E45:actions#control" } -String actionCommand "Vacuum Command" {channel="miio:vacuum:034F0E45:actions#commands" } +| Channel | Type | Description | Comment | +|------------------|---------|-------------------------------------|------------| +| power | Switch | Power | | +| brightness | Dimmer | Brightness | | +| delayoff | Number | Shutdown Timer | | +| colorTemperature | Number | Color Temperature | | +| colorMode | Number | Color Mode | | +| name | String | Name | | -Number statusBat "Battery Level [%1.0f%%]" (gVac,gVacStat) {channel="miio:vacuum:034F0E45:status#battery" } -Number statusArea "Cleaned Area [%1.0fm²]" (gVac,gVacStat) {channel="miio:vacuum:034F0E45:status#clean_area" } -Number statusTime "Cleaning Time [%1.0f']" (gVac,gVacStat) {channel="miio:vacuum:034F0E45:status#clean_time" } -String statusError "Error [%s]" (gVac,gVacStat) {channel="miio:vacuum:034F0E45:status#error_code" } -Number statusFanPow "Fan Power [%1.0f%%]" (gVacStat) {channel="miio:vacuum:034F0E45:status#fan_power" } -Number statusClean "In Cleaning Status [%1.0f]" (gVacStat) {channel="miio:vacuum:034F0E45:status#in_cleaning" } -Switch statusDND "DND Activated" (gVacStat) {channel="miio:vacuum:034F0E45:status#dnd_enabled" } -Number statusStatus "Status [%1.0f]" (gVacStat) {channel="miio:vacuum:034F0E45:status#state"} +### Yeelight White Bulb v2 (yeelink.light.mono2) Channels -Number consumableMain "Main Brush [%1.0f]" (gVacCons) {channel="miio:vacuum:034F0E45:consumables#main_brush_time"} -Number consumableSide "Side Brush [%1.0f]" (gVacCons) {channel="miio:vacuum:034F0E45:consumables#side_brush_time"} -Number consumableFilter "Filter Time[%1.0f]" (gVacCons) {channel="miio:vacuum:034F0E45:consumables#filter_time" } -Number consumableSensor "Sensor [%1.0f]" (gVacCons) {channel="miio:vacuum:034F0E45:consumables#sensor_dirt_time"} +| Channel | Type | Description | Comment | +|------------------|---------|-------------------------------------|------------| +| power | Switch | Power | | +| brightness | Dimmer | Brightness | | +| delayoff | Number | Shutdown Timer | | +| colorTemperature | Number | Color Temperature | | +| colorMode | Number | Color Mode | | +| name | String | Name | | -Switch dndFunction "DND Function" (gVacDND) {channel="miio:vacuum:034F0E45:dnd#dnd_function"} -String dndStart "DND Start Time [%s]" (gVacDND) {channel="miio:vacuum:034F0E45:dnd#dnd_start"} -String dndEnd "DND End Time [%s]" (gVacDND) {channel="miio:vacuum:034F0E45:dnd#dnd_end"} +### Yeelight White (yeelink.light.mono5) Channels -Number historyArea "Total Cleaned Area [%1.0fm²]" (gVacHist) {channel="miio:vacuum:034F0E45:history#total_clean_area"} -String historyTime "Total Clean Time [%s]" (gVacHist) {channel="miio:vacuum:034F0E45:history#total_clean_time"} -Number historyCount "Total # Cleanings [%1.0f]" (gVacHist) {channel="miio:vacuum:034F0E45:history#total_clean_count"} +| Channel | Type | Description | Comment | +|------------------|---------|-------------------------------------|------------| +| power | Switch | Power | | +| brightness | Dimmer | Brightness | | +| delayoff | Number | Shutdown Timer | | +| colorTemperature | Number | Color Temperature | | +| colorMode | Number | Color Mode | | +| name | String | Name | | -String lastStart "Last Cleaning Start time [%s]" (gVacLast) {channel="miio:vacuum:034F0E45:cleaning#last_clean_start_time"} -String lastEnd "Last Cleaning End time [%s]" (gVacLast) {channel="miio:vacuum:034F0E45:cleaning#last_clean_end_time"} -Number lastArea "Last Cleaned Area [%1.0fm²]" (gVacLast) {channel="miio:vacuum:034F0E45:cleaning#last_clean_area"} -Number lastTime "Last Clean Time [%1.0f']" (gVacLast) {channel="miio:vacuum:034F0E45:cleaning#last_clean_duration"} -Number lastError "Error [%s]" (gVacLast) {channel="miio:vacuum:034F0E45:cleaning#last_clean_error" } -Switch lastCompleted "Last Cleaning Completed" (gVacLast) {channel="miio:vacuum:034F0E45:cleaning#last_clean_finish" } +### Yeelight (yeelink.light.lamp1) Channels -Image map "Cleaning Map" (gVacLast) {channel="miio:vacuum:034F0E45:cleaning#map"} -``` +| Channel | Type | Description | Comment | +|------------------|---------|-------------------------------------|------------| +| power | Switch | Power | | +| brightness | Dimmer | Brightness | | +| delayoff | Number | Shutdown Timer | | +| colorTemperature | Number | Color Temperature | | +| colorMode | Number | Color Mode | | +| name | String | Name | | -Note: cleaning map is only available with cloud access. +### Yeelight (yeelink.light.lamp2) Channels -Additionally depending on the capabilities of your robot vacuum other channels may be enabled at runtime +| Channel | Type | Description | Comment | +|------------------|---------|-------------------------------------|------------| +| power | Switch | Power | | +| brightness | Dimmer | Brightness | | +| delayoff | Number | Shutdown Timer | | +| colorTemperature | Number | Color Temperature | | +| colorMode | Number | Color Mode | | +| name | String | Name | | +### Yeelight (yeelink.light.lamp3) Channels -| Type | Channel | Description | -|---------|-----------------------------------|----------------------------| -| Switch | status#water_box_status | Water Box Status | -| Switch | status#lock_status | Lock Status | -| Number | status#water_box_mode | Water Box Mode | -| Switch | status#water_box_carriage_status | Water Box Carriage Status | -| Switch | status#mop_forbidden_enable | Mop Forbidden | -| Number | actions#segment | Room Clean (enter room #) | +| Channel | Type | Description | Comment | +|------------------|---------|-------------------------------------|------------| +| power | Switch | Power | | +| brightness | Dimmer | Brightness | | +| delayoff | Number | Shutdown Timer | | +| colorTemperature | Number | Color Temperature | | +| colorMode | Number | Color Mode | | +| name | String | Name | | +### Yeelight (yeelink.light.lamp4) Channels +| Channel | Type | Description | Comment | +|------------------|---------|-------------------------------------|------------| +| power | Switch | Power | | +| brightness | Dimmer | Brightness | | +| delayoff | Number | Shutdown Timer | | +| colorTemperature | Number | Color Temperature | | +| colorMode | Number | Color Mode | | +| name | String | Name | | -### Mi Air Monitor v1 (zhimi.airmonitor.v1) item file lines +### Yeelight (yeelink.light.lamp5) Channels -note: Autogenerated example. Replace the id (airmonitor) in the channel with your own. Replace `basic` with `generic` in the thing UID depending on how your thing was discovered. +| Channel | Type | Description | Comment | +|------------------|---------|-------------------------------------|------------| +| power | Switch | Power | | +| brightness | Dimmer | Brightness | | +| delayoff | Number | Shutdown Timer | | +| colorTemperature | Number | Color Temperature | | +| colorMode | Number | Color Mode | | +| name | String | Name | | -```java -Group G_airmonitor "Mi Air Monitor v1" -Switch power "Power" (G_airmonitor) {channel="miio:basic:airmonitor:power"} -Number aqi "Air Quality Index" (G_airmonitor) {channel="miio:basic:airmonitor:aqi"} -Number battery "Battery" (G_airmonitor) {channel="miio:basic:airmonitor:battery"} -Switch usb_state "USB State" (G_airmonitor) {channel="miio:basic:airmonitor:usb_state"} -Switch time_state "Time State" (G_airmonitor) {channel="miio:basic:airmonitor:time_state"} -Switch night_state "Night State" (G_airmonitor) {channel="miio:basic:airmonitor:night_state"} -Number night_begin "Night Begin Time" (G_airmonitor) {channel="miio:basic:airmonitor:night_begin"} -Number night_end "Night End Time" (G_airmonitor) {channel="miio:basic:airmonitor:night_end"} -``` +### Yeelight (yeelink.light.lamp6) Channels -### Mi Air Quality Monitor 2gen (cgllc.airmonitor.b1) item file lines +| Channel | Type | Description | Comment | +|------------------|---------|-------------------------------------|------------| +| power | Switch | Power | | +| brightness | Dimmer | Brightness | | +| delayoff | Number | Shutdown Timer | | +| colorTemperature | Number | Color Temperature | | +| colorMode | Number | Color Mode | | +| name | String | Name | | -note: Autogenerated example. Replace the id (airmonitor) in the channel with your own. Replace `basic` with `generic` in the thing UID depending on how your thing was discovered. +### Yeelight (yeelink.light.lamp7) Channels + +| Channel | Type | Description | Comment | +|------------------|---------|-------------------------------------|------------| +| power | Switch | Power | | +| brightness | Dimmer | Brightness | | +| delayoff | Number | Shutdown Timer | | +| colorTemperature | Number | Color Temperature | | +| colorMode | Number | Color Mode | | +| name | String | Name | | + +### Yeelight (yeelink.light.lamp8) Channels + +| Channel | Type | Description | Comment | +|------------------|---------|-------------------------------------|------------| +| power | Switch | Power | | +| brightness | Dimmer | Brightness | | +| delayoff | Number | Shutdown Timer | | +| colorTemperature | Number | Color Temperature | | +| colorMode | Number | Color Mode | | +| name | String | Name | | + +### Yeelight Panel (yeelink.light.panel1) Channels + +| Channel | Type | Description | Comment | +|------------------|---------|-------------------------------------|------------| +| power | Switch | Power | | +| brightness | Dimmer | Brightness | | +| delayoff | Number | Shutdown Timer | | +| colorTemperature | Number | Color Temperature | | +| colorMode | Number | Color Mode | | +| name | String | Name | | +| customScene | String | Set Scene | | +| nightlightBrightness | Number | Nightlight Brightness | | + +### Yeelight Strip (yeelink.light.strip1) Channels + +| Channel | Type | Description | Comment | +|------------------|---------|-------------------------------------|------------| +| power | Switch | Power | | +| brightness | Dimmer | Brightness | | +| delayoff | Number | Shutdown Timer | | +| colorTemperature | Number | Color Temperature | | +| colorMode | String | Color Mode | | +| toggle | Switch | toggle | | +| rgbColor | Color | RGB Color | | +| name | String | Name | | + +### Yeelight Strip (yeelink.light.strip2) Channels + +| Channel | Type | Description | Comment | +|------------------|---------|-------------------------------------|------------| +| power | Switch | Power | | +| brightness | Dimmer | Brightness | | +| delayoff | Number | Shutdown Timer | | +| colorTemperature | Number | Color Temperature | | +| colorMode | String | Color Mode | | +| toggle | Switch | toggle | | +| rgbColor | Color | RGB Color | | +| name | String | Name | | + +### Yeelight Strip (yeelink.light.strip4) Channels + +| Channel | Type | Description | Comment | +|------------------|---------|-------------------------------------|------------| +| power | Switch | Power | | +| brightness | Dimmer | Brightness | | +| delayoff | Number | Shutdown Timer | | +| colorTemperature | Number | Color Temperature | | +| colorMode | Number | Color Mode | | +| name | String | Name | | + +### Yeelight (yeelink.light.virtual) Channels + +| Channel | Type | Description | Comment | +|------------------|---------|-------------------------------------|------------| +| power | Switch | Power | | +| brightness | Dimmer | Brightness | | +| delayoff | Number | Shutdown Timer | | +| colorTemperature | Number | Color Temperature | | +| colorMode | Number | Color Mode | | +| name | String | Name | | + +### Yeelight Color Bulb (yeelink.light.color1) Channels + +| Channel | Type | Description | Comment | +|------------------|---------|-------------------------------------|------------| +| power | Switch | Power | | +| brightness | Dimmer | Brightness | | +| delayoff | Number | Shutdown Timer | | +| colorTemperature | Number | Color Temperature | | +| colorMode | String | Color Mode | | +| toggle | Switch | toggle | | +| rgbColor | Color | RGB Color | | +| name | String | Name | | + +### Yeelight Color Bulb YLDP06YL 10W (yeelink.light.color2) Channels + +| Channel | Type | Description | Comment | +|------------------|---------|-------------------------------------|------------| +| power | Switch | Power | | +| brightness | Dimmer | Brightness | | +| delayoff | Number | Shutdown Timer | | +| colorTemperature | Number | Color Temperature | | +| colorMode | String | Color Mode | | +| toggle | Switch | toggle | | +| rgbColor | Color | RGB Color | | +| name | String | Name | | + +### Yeelight Color Bulb YLDP02YL 9W (yeelink.light.color3) Channels + +| Channel | Type | Description | Comment | +|------------------|---------|-------------------------------------|------------| +| power | Switch | Power | | +| brightness | Dimmer | Brightness | | +| delayoff | Number | Shutdown Timer | | +| colorTemperature | Number | Color Temperature | | +| colorMode | String | Color Mode | | +| toggle | Switch | toggle | | +| rgbColor | Color | RGB Color | | +| name | String | Name | | + +### Yeelight Bulb YLDP13YL (8,5W) (yeelink.light.color4) Channels + +| Channel | Type | Description | Comment | +|------------------|---------|-------------------------------------|------------| +| power | Switch | Power | | +| brightness | Dimmer | Brightness | | +| delayoff | Number | Shutdown Timer | | +| colorTemperature | Number | Color Temperature | | +| colorMode | String | Color Mode | | +| toggle | Switch | toggle | | +| rgbColor | Color | RGB Color | | +| name | String | Name | | + +### Yeelight yilai ceiling (yilai.light.ceiling1) Channels + +| Channel | Type | Description | Comment | +|------------------|---------|-------------------------------------|------------| +| power | Switch | Power | | +| brightness | Dimmer | Brightness | | +| delayoff | Number | Shutdown Timer | | +| colorTemperature | Number | Color Temperature | | +| colorMode | Number | Color Mode | | +| name | String | Name | | +| customScene | String | Set Scene | | +| nightlightBrightness | Number | Nightlight Brightness | | + +### Yeelight yilai ceiling (yilai.light.ceiling2) Channels + +| Channel | Type | Description | Comment | +|------------------|---------|-------------------------------------|------------| +| power | Switch | Power | | +| brightness | Dimmer | Brightness | | +| delayoff | Number | Shutdown Timer | | +| colorTemperature | Number | Color Temperature | | +| colorMode | Number | Color Mode | | +| name | String | Name | | +| customScene | String | Set Scene | | +| nightlightBrightness | Number | Nightlight Brightness | | + +### Yeelight yilai ceiling (yilai.light.ceiling3) Channels + +| Channel | Type | Description | Comment | +|------------------|---------|-------------------------------------|------------| +| power | Switch | Power | | +| brightness | Dimmer | Brightness | | +| delayoff | Number | Shutdown Timer | | +| colorTemperature | Number | Color Temperature | | +| colorMode | Number | Color Mode | | +| name | String | Name | | +| customScene | String | Set Scene | | +| nightlightBrightness | Number | Nightlight Brightness | | + + + + +## Example item file Rockrobo vacuum + +``` +Group gVac "Xiaomi Robot Vacuum" +Group gVacStat "Status Details" (gVac) +Group gVacCons "Consumables Usage" (gVac) +Group gVacDND "Do Not Disturb Settings" (gVac) +Group gVacHist "Cleaning History" (gVac) +Group gVacLast "Last Cleaning Details" (gVac) + +String actionControl "Vacuum Control" {channel="miio:vacuum:034F0E45:actions#control" } +String actionCommand "Vacuum Command" {channel="miio:vacuum:034F0E45:actions#commands" } + +Number statusBat "Battery Level [%1.0f%%]" (gVac,gVacStat) {channel="miio:vacuum:034F0E45:status#battery" } +Number statusArea "Cleaned Area [%1.0fm²]" (gVac,gVacStat) {channel="miio:vacuum:034F0E45:status#clean_area" } +Number statusTime "Cleaning Time [%1.0f']" (gVac,gVacStat) {channel="miio:vacuum:034F0E45:status#clean_time" } +String statusError "Error [%s]" (gVac,gVacStat) {channel="miio:vacuum:034F0E45:status#error_code" } +Number statusFanPow "Fan Power [%1.0f%%]" (gVacStat) {channel="miio:vacuum:034F0E45:status#fan_power" } +Number statusClean "In Cleaning Status [%1.0f]" (gVacStat) {channel="miio:vacuum:034F0E45:status#in_cleaning" } +Switch statusDND "DND Activated" (gVacStat) {channel="miio:vacuum:034F0E45:status#dnd_enabled" } +Number statusStatus "Status [%1.0f]" (gVacStat) {channel="miio:vacuum:034F0E45:status#state"} + +Number consumableMain "Main Brush [%1.0f]" (gVacCons) {channel="miio:vacuum:034F0E45:consumables#main_brush_time"} +Number consumableSide "Side Brush [%1.0f]" (gVacCons) {channel="miio:vacuum:034F0E45:consumables#side_brush_time"} +Number consumableFilter "Filter Time[%1.0f]" (gVacCons) {channel="miio:vacuum:034F0E45:consumables#filter_time" } +Number consumableSensor "Sensor [%1.0f]" (gVacCons) {channel="miio:vacuum:034F0E45:consumables#sensor_dirt_time"} + +Switch dndFunction "DND Function" (gVacDND) {channel="miio:vacuum:034F0E45:dnd#dnd_function"} +String dndStart "DND Start Time [%s]" (gVacDND) {channel="miio:vacuum:034F0E45:dnd#dnd_start"} +String dndEnd "DND End Time [%s]" (gVacDND) {channel="miio:vacuum:034F0E45:dnd#dnd_end"} + +Number historyArea "Total Cleaned Area [%1.0fm²]" (gVacHist) {channel="miio:vacuum:034F0E45:history#total_clean_area"} +String historyTime "Total Clean Time [%s]" (gVacHist) {channel="miio:vacuum:034F0E45:history#total_clean_time"} +Number historyCount "Total # Cleanings [%1.0f]" (gVacHist) {channel="miio:vacuum:034F0E45:history#total_clean_count"} + +String lastStart "Last Cleaning Start time [%s]" (gVacLast) {channel="miio:vacuum:034F0E45:cleaning#last_clean_start_time"} +String lastEnd "Last Cleaning End time [%s]" (gVacLast) {channel="miio:vacuum:034F0E45:cleaning#last_clean_end_time"} +Number lastArea "Last Cleaned Area [%1.0fm²]" (gVacLast) {channel="miio:vacuum:034F0E45:cleaning#last_clean_area"} +Number lastTime "Last Clean Time [%1.0f']" (gVacLast) {channel="miio:vacuum:034F0E45:cleaning#last_clean_duration"} +Number lastError "Error [%s]" (gVacLast) {channel="miio:vacuum:034F0E45:cleaning#last_clean_error" } +Switch lastCompleted "Last Cleaning Completed" (gVacLast) {channel="miio:vacuum:034F0E45:cleaning#last_clean_finish" } + +Image map "Cleaning Map" (gVacLast) {channel="miio:vacuum:034F0E45:cleaning#map"} +``` + +Note: cleaning map is only available with cloud access. + +Additionally depending on the capabilities of your robot vacuum other channels may be enabled at runtime + + +| Type | Channel | Description | +|---------|-----------------------------------|----------------------------| +| Switch | status#water_box_status | Water Box Status | +| Switch | status#lock_status | Lock Status | +| Number | status#water_box_mode | Water Box Mode | +| Switch | status#water_box_carriage_status | Water Box Carriage Status | +| Switch | status#mop_forbidden_enable | Mop Forbidden | +| Number | actions#segment | Room Clean (enter room #) | + + + +### Mi Air Monitor v1 (zhimi.airmonitor.v1) item file lines + +note: Autogenerated example. Replace the id (airmonitor) in the channel with your own. Replace `basic` with `generic` in the thing UID depending on how your thing was discovered. + +```java +Group G_airmonitor "Mi Air Monitor v1" +Switch power "Power" (G_airmonitor) {channel="miio:basic:airmonitor:power"} +Number aqi "Air Quality Index" (G_airmonitor) {channel="miio:basic:airmonitor:aqi"} +Number battery "Battery" (G_airmonitor) {channel="miio:basic:airmonitor:battery"} +Switch usb_state "USB State" (G_airmonitor) {channel="miio:basic:airmonitor:usb_state"} +Switch time_state "Time State" (G_airmonitor) {channel="miio:basic:airmonitor:time_state"} +Switch night_state "Night State" (G_airmonitor) {channel="miio:basic:airmonitor:night_state"} +Number night_begin "Night Begin Time" (G_airmonitor) {channel="miio:basic:airmonitor:night_begin"} +Number night_end "Night End Time" (G_airmonitor) {channel="miio:basic:airmonitor:night_end"} +``` + +### Mi Air Quality Monitor 2gen (cgllc.airmonitor.b1) item file lines + +note: Autogenerated example. Replace the id (airmonitor) in the channel with your own. Replace `basic` with `generic` in the thing UID depending on how your thing was discovered. ```java Group G_airmonitor "Mi Air Quality Monitor 2gen" @@ -4078,19 +4447,63 @@ Color rgbColor "RGB Color" (G_light) {channel="miio:basic:light:rgbColor"} String name "Name" (G_light) {channel="miio:basic:light:name"} ``` -### Yeelight LED Ceiling Lamp (yeelink.light.ceiling1) item file lines +### Yeelight Lamp (yeelink.light.bslamp3) 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 "Yeelight LED Ceiling Lamp" +Group G_light "Yeelight Lamp" Switch power "Power" (G_light) {channel="miio:basic:light:power"} Dimmer brightness "Brightness" (G_light) {channel="miio:basic:light:brightness"} Number delayoff "Shutdown Timer" (G_light) {channel="miio:basic:light:delayoff"} Number colorTemperature "Color Temperature" (G_light) {channel="miio:basic:light:colorTemperature"} -Number colorMode "Color Mode" (G_light) {channel="miio:basic:light:colorMode"} -String name "Name" (G_light) {channel="miio:basic:light:name"} -String customScene "Set Scene" (G_light) {channel="miio:basic:light:customScene"} +String colorMode "Color Mode" (G_light) {channel="miio:basic:light:colorMode"} +Switch toggle "toggle" (G_light) {channel="miio:basic:light:toggle"} +Color rgbColor "RGB Color" (G_light) {channel="miio:basic:light:rgbColor"} +String name "Name" (G_light) {channel="miio:basic:light:name"} +``` + +### Yeelight BadHeater (yeelink.bhf_light.v1) item file lines + +note: Autogenerated example. Replace the id (bhf_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_bhf_light "Yeelight BadHeater" +Switch power "Power" (G_bhf_light) {channel="miio:basic:bhf_light:power"} +String bh_mode "Bath Heater mode" (G_bhf_light) {channel="miio:basic:bhf_light:bh_mode"} +Dimmer brightness "Brightness" (G_bhf_light) {channel="miio:basic:bhf_light:brightness"} +Number delayoff "Shutdown Timer" (G_bhf_light) {channel="miio:basic:bhf_light:delayoff"} +Number temperature "Temperature" (G_bhf_light) {channel="miio:basic:bhf_light:temperature"} +Number nightlightBrightness "Nightlight Brightness" (G_bhf_light) {channel="miio:basic:bhf_light:nightlightBrightness"} +``` + +### Yeelight BadHeater (yeelink.bhf_light.v2) item file lines + +note: Autogenerated example. Replace the id (bhf_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_bhf_light "Yeelight BadHeater" +Switch power "Power" (G_bhf_light) {channel="miio:basic:bhf_light:power"} +String bh_mode "Bath Heater mode" (G_bhf_light) {channel="miio:basic:bhf_light:bh_mode"} +Dimmer brightness "Brightness" (G_bhf_light) {channel="miio:basic:bhf_light:brightness"} +Number delayoff "Shutdown Timer" (G_bhf_light) {channel="miio:basic:bhf_light:delayoff"} +Number temperature "Temperature" (G_bhf_light) {channel="miio:basic:bhf_light:temperature"} +Number nightlightBrightness "Nightlight Brightness" (G_bhf_light) {channel="miio:basic:bhf_light:nightlightBrightness"} +``` + +### Yeelight LED Ceiling Lamp (yeelink.light.ceiling1) 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 "Yeelight LED Ceiling Lamp" +Switch power "Power" (G_light) {channel="miio:basic:light:power"} +Dimmer brightness "Brightness" (G_light) {channel="miio:basic:light:brightness"} +Number delayoff "Shutdown Timer" (G_light) {channel="miio:basic:light:delayoff"} +Number colorTemperature "Color Temperature" (G_light) {channel="miio:basic:light:colorTemperature"} +Number colorMode "Color Mode" (G_light) {channel="miio:basic:light:colorMode"} +String name "Name" (G_light) {channel="miio:basic:light:name"} +String customScene "Set Scene" (G_light) {channel="miio:basic:light:customScene"} Number nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} ``` @@ -4155,16 +4568,11 @@ note: Autogenerated example. Replace the id (ceiling4) in the channel with your Group G_ceiling4 "Yeelight LED Ceiling Lamp v4" Switch power "Power" (G_ceiling4) {channel="miio:basic:ceiling4:power"} Dimmer brightness "Brightness" (G_ceiling4) {channel="miio:basic:ceiling4:brightness"} -Number ambientBrightness "Ambient Brightness" (G_ceiling4) {channel="miio:basic:ceiling4:ambientBrightness"} Number delayoff "Shutdown Timer" (G_ceiling4) {channel="miio:basic:ceiling4:delayoff"} Number colorTemperature "Color Temperature" (G_ceiling4) {channel="miio:basic:ceiling4:colorTemperature"} Number colorMode "Color Mode" (G_ceiling4) {channel="miio:basic:ceiling4:colorMode"} String name "Name" (G_ceiling4) {channel="miio:basic:ceiling4:name"} -Switch ambientPower "Ambient Power" (G_ceiling4) {channel="miio:basic:ceiling4:ambientPower"} -Color ambientColor "Ambient Color" (G_ceiling4) {channel="miio:basic:ceiling4:ambientColor"} -Number ambientColorTemperature "Ambient Color Temperature" (G_ceiling4) {channel="miio:basic:ceiling4:ambientColorTemperature"} String customScene "Set Scene" (G_ceiling4) {channel="miio:basic:ceiling4:customScene"} -Number ambientColorMode "Ambient Color Mode" (G_ceiling4) {channel="miio:basic:ceiling4:ambientColorMode"} Number nightlightBrightness "Nightlight Brightness" (G_ceiling4) {channel="miio:basic:ceiling4:nightlightBrightness"} ``` @@ -4317,6 +4725,230 @@ String customScene "Set Scene" (G_light) {channel="miio:basic:light:customScene" Number nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} ``` +### Yeelight LED Ceiling Lamp (yeelink.light.ceiling14) 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 "Yeelight LED Ceiling Lamp" +Switch power "Power" (G_light) {channel="miio:basic:light:power"} +Dimmer brightness "Brightness" (G_light) {channel="miio:basic:light:brightness"} +Number delayoff "Shutdown Timer" (G_light) {channel="miio:basic:light:delayoff"} +Number colorTemperature "Color Temperature" (G_light) {channel="miio:basic:light:colorTemperature"} +Number colorMode "Color Mode" (G_light) {channel="miio:basic:light:colorMode"} +String name "Name" (G_light) {channel="miio:basic:light:name"} +String customScene "Set Scene" (G_light) {channel="miio:basic:light:customScene"} +Number nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} +``` + +### Yeelight LED Ceiling Lamp (yeelink.light.ceiling15) 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 "Yeelight LED Ceiling Lamp" +Switch power "Power" (G_light) {channel="miio:basic:light:power"} +Dimmer brightness "Brightness" (G_light) {channel="miio:basic:light:brightness"} +Number delayoff "Shutdown Timer" (G_light) {channel="miio:basic:light:delayoff"} +Number colorTemperature "Color Temperature" (G_light) {channel="miio:basic:light:colorTemperature"} +Number colorMode "Color Mode" (G_light) {channel="miio:basic:light:colorMode"} +String name "Name" (G_light) {channel="miio:basic:light:name"} +String customScene "Set Scene" (G_light) {channel="miio:basic:light:customScene"} +Number nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} +``` + +### Yeelight LED Ceiling Lamp (yeelink.light.ceiling16) 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 "Yeelight LED Ceiling Lamp" +Switch power "Power" (G_light) {channel="miio:basic:light:power"} +Dimmer brightness "Brightness" (G_light) {channel="miio:basic:light:brightness"} +Number delayoff "Shutdown Timer" (G_light) {channel="miio:basic:light:delayoff"} +Number colorTemperature "Color Temperature" (G_light) {channel="miio:basic:light:colorTemperature"} +Number colorMode "Color Mode" (G_light) {channel="miio:basic:light:colorMode"} +String name "Name" (G_light) {channel="miio:basic:light:name"} +String customScene "Set Scene" (G_light) {channel="miio:basic:light:customScene"} +Number nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} +``` + +### Yeelight LED Ceiling Lamp (yeelink.light.ceiling17) 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 "Yeelight LED Ceiling Lamp" +Switch power "Power" (G_light) {channel="miio:basic:light:power"} +Dimmer brightness "Brightness" (G_light) {channel="miio:basic:light:brightness"} +Number delayoff "Shutdown Timer" (G_light) {channel="miio:basic:light:delayoff"} +Number colorTemperature "Color Temperature" (G_light) {channel="miio:basic:light:colorTemperature"} +Number colorMode "Color Mode" (G_light) {channel="miio:basic:light:colorMode"} +String name "Name" (G_light) {channel="miio:basic:light:name"} +String customScene "Set Scene" (G_light) {channel="miio:basic:light:customScene"} +Number nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} +``` + +### Yeelight LED Ceiling Lamp (yeelink.light.ceiling18) 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 "Yeelight LED Ceiling Lamp" +Switch power "Power" (G_light) {channel="miio:basic:light:power"} +Dimmer brightness "Brightness" (G_light) {channel="miio:basic:light:brightness"} +Number delayoff "Shutdown Timer" (G_light) {channel="miio:basic:light:delayoff"} +Number colorTemperature "Color Temperature" (G_light) {channel="miio:basic:light:colorTemperature"} +Number colorMode "Color Mode" (G_light) {channel="miio:basic:light:colorMode"} +String name "Name" (G_light) {channel="miio:basic:light:name"} +String customScene "Set Scene" (G_light) {channel="miio:basic:light:customScene"} +Number nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} +``` + +### Yeelight LED Ceiling Lamp (yeelink.light.ceiling19) 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 "Yeelight LED Ceiling Lamp" +Switch power "Power" (G_light) {channel="miio:basic:light:power"} +Dimmer brightness "Brightness" (G_light) {channel="miio:basic:light:brightness"} +Number delayoff "Shutdown Timer" (G_light) {channel="miio:basic:light:delayoff"} +Number colorTemperature "Color Temperature" (G_light) {channel="miio:basic:light:colorTemperature"} +Number colorMode "Color Mode" (G_light) {channel="miio:basic:light:colorMode"} +String name "Name" (G_light) {channel="miio:basic:light:name"} +String customScene "Set Scene" (G_light) {channel="miio:basic:light:customScene"} +Number nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} +``` + +### Yeelight LED Ceiling Lamp (yeelink.light.ceiling20) 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 "Yeelight LED Ceiling Lamp" +Switch power "Power" (G_light) {channel="miio:basic:light:power"} +Dimmer brightness "Brightness" (G_light) {channel="miio:basic:light:brightness"} +Number delayoff "Shutdown Timer" (G_light) {channel="miio:basic:light:delayoff"} +Number colorTemperature "Color Temperature" (G_light) {channel="miio:basic:light:colorTemperature"} +Number colorMode "Color Mode" (G_light) {channel="miio:basic:light:colorMode"} +String name "Name" (G_light) {channel="miio:basic:light:name"} +String customScene "Set Scene" (G_light) {channel="miio:basic:light:customScene"} +Number nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} +``` + +### Yeelight LED Ceiling Lamp (yeelink.light.ceiling21) 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 "Yeelight LED Ceiling Lamp" +Switch power "Power" (G_light) {channel="miio:basic:light:power"} +Dimmer brightness "Brightness" (G_light) {channel="miio:basic:light:brightness"} +Number delayoff "Shutdown Timer" (G_light) {channel="miio:basic:light:delayoff"} +Number colorTemperature "Color Temperature" (G_light) {channel="miio:basic:light:colorTemperature"} +Number colorMode "Color Mode" (G_light) {channel="miio:basic:light:colorMode"} +String name "Name" (G_light) {channel="miio:basic:light:name"} +String customScene "Set Scene" (G_light) {channel="miio:basic:light:customScene"} +Number nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} +``` + +### Yeelight LED Ceiling Lamp (yeelink.light.ceiling22) 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 "Yeelight LED Ceiling Lamp" +Switch power "Power" (G_light) {channel="miio:basic:light:power"} +Dimmer brightness "Brightness" (G_light) {channel="miio:basic:light:brightness"} +Number delayoff "Shutdown Timer" (G_light) {channel="miio:basic:light:delayoff"} +Number colorTemperature "Color Temperature" (G_light) {channel="miio:basic:light:colorTemperature"} +Number colorMode "Color Mode" (G_light) {channel="miio:basic:light:colorMode"} +String name "Name" (G_light) {channel="miio:basic:light:name"} +String customScene "Set Scene" (G_light) {channel="miio:basic:light:customScene"} +Number nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} +``` + +### Yeelight LED Ceiling Lamp (yeelink.light.ceiling23) 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 "Yeelight LED Ceiling Lamp" +Switch power "Power" (G_light) {channel="miio:basic:light:power"} +Dimmer brightness "Brightness" (G_light) {channel="miio:basic:light:brightness"} +Number delayoff "Shutdown Timer" (G_light) {channel="miio:basic:light:delayoff"} +Number colorTemperature "Color Temperature" (G_light) {channel="miio:basic:light:colorTemperature"} +Number colorMode "Color Mode" (G_light) {channel="miio:basic:light:colorMode"} +String name "Name" (G_light) {channel="miio:basic:light:name"} +String customScene "Set Scene" (G_light) {channel="miio:basic:light:customScene"} +Number nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} +``` + +### Yeelight LED Ceiling Ambi Lamp (yeelink.light.ceiling4.ambi) item file lines + +note: Autogenerated example. Replace the id (ceiling4) in the channel with your own. Replace `basic` with `generic` in the thing UID depending on how your thing was discovered. + +```java +Group G_ceiling4 "Yeelight LED Ceiling Ambi Lamp" +Switch power "Power" (G_ceiling4) {channel="miio:basic:ceiling4:power"} +Dimmer brightness "Brightness" (G_ceiling4) {channel="miio:basic:ceiling4:brightness"} +Number delayoff "Shutdown Timer" (G_ceiling4) {channel="miio:basic:ceiling4:delayoff"} +Number colorTemperature "Color Temperature" (G_ceiling4) {channel="miio:basic:ceiling4:colorTemperature"} +Number colorMode "Color Mode" (G_ceiling4) {channel="miio:basic:ceiling4:colorMode"} +String name "Name" (G_ceiling4) {channel="miio:basic:ceiling4:name"} +String customScene "Set Scene" (G_ceiling4) {channel="miio:basic:ceiling4:customScene"} +Number nightlightBrightness "Nightlight Brightness" (G_ceiling4) {channel="miio:basic:ceiling4:nightlightBrightness"} +``` + +### Yeelight LED Ceiling Ambi Lamp (yeelink.light.ceiling10.ambi) item file lines + +note: Autogenerated example. Replace the id (ceiling10) in the channel with your own. Replace `basic` with `generic` in the thing UID depending on how your thing was discovered. + +```java +Group G_ceiling10 "Yeelight LED Ceiling Ambi Lamp" +Switch power "Power" (G_ceiling10) {channel="miio:basic:ceiling10:power"} +Dimmer brightness "Brightness" (G_ceiling10) {channel="miio:basic:ceiling10:brightness"} +Number delayoff "Shutdown Timer" (G_ceiling10) {channel="miio:basic:ceiling10:delayoff"} +Number colorTemperature "Color Temperature" (G_ceiling10) {channel="miio:basic:ceiling10:colorTemperature"} +Number colorMode "Color Mode" (G_ceiling10) {channel="miio:basic:ceiling10:colorMode"} +String name "Name" (G_ceiling10) {channel="miio:basic:ceiling10:name"} +String customScene "Set Scene" (G_ceiling10) {channel="miio:basic:ceiling10:customScene"} +Number nightlightBrightness "Nightlight Brightness" (G_ceiling10) {channel="miio:basic:ceiling10:nightlightBrightness"} +``` + +### Yeelight LED Ceiling Ambi Lamp (yeelink.light.ceiling19.ambi) item file lines + +note: Autogenerated example. Replace the id (ceiling19) in the channel with your own. Replace `basic` with `generic` in the thing UID depending on how your thing was discovered. + +```java +Group G_ceiling19 "Yeelight LED Ceiling Ambi Lamp" +Switch power "Power" (G_ceiling19) {channel="miio:basic:ceiling19:power"} +Dimmer brightness "Brightness" (G_ceiling19) {channel="miio:basic:ceiling19:brightness"} +Number delayoff "Shutdown Timer" (G_ceiling19) {channel="miio:basic:ceiling19:delayoff"} +Number colorTemperature "Color Temperature" (G_ceiling19) {channel="miio:basic:ceiling19:colorTemperature"} +Number colorMode "Color Mode" (G_ceiling19) {channel="miio:basic:ceiling19:colorMode"} +String name "Name" (G_ceiling19) {channel="miio:basic:ceiling19:name"} +String customScene "Set Scene" (G_ceiling19) {channel="miio:basic:ceiling19:customScene"} +Number nightlightBrightness "Nightlight Brightness" (G_ceiling19) {channel="miio:basic:ceiling19:nightlightBrightness"} +``` + +### Yeelight LED Ceiling Ambi Lamp (yeelink.light.ceiling20.ambi) item file lines + +note: Autogenerated example. Replace the id (ceiling20) in the channel with your own. Replace `basic` with `generic` in the thing UID depending on how your thing was discovered. + +```java +Group G_ceiling20 "Yeelight LED Ceiling Ambi Lamp" +Switch power "Power" (G_ceiling20) {channel="miio:basic:ceiling20:power"} +Dimmer brightness "Brightness" (G_ceiling20) {channel="miio:basic:ceiling20:brightness"} +Number delayoff "Shutdown Timer" (G_ceiling20) {channel="miio:basic:ceiling20:delayoff"} +Number colorTemperature "Color Temperature" (G_ceiling20) {channel="miio:basic:ceiling20:colorTemperature"} +Number colorMode "Color Mode" (G_ceiling20) {channel="miio:basic:ceiling20:colorMode"} +String name "Name" (G_ceiling20) {channel="miio:basic:ceiling20:name"} +String customScene "Set Scene" (G_ceiling20) {channel="miio:basic:ceiling20:customScene"} +Number nightlightBrightness "Nightlight Brightness" (G_ceiling20) {channel="miio:basic:ceiling20:nightlightBrightness"} +``` + ### Yeelight ct2 (yeelink.light.ct2) 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. @@ -4359,6 +4991,20 @@ Number colorMode "Color Mode" (G_light) {channel="miio:basic:light:colorMode"} String name "Name" (G_light) {channel="miio:basic:light:name"} ``` +### Yeelight White (yeelink.light.mono5) 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 "Yeelight White" +Switch power "Power" (G_light) {channel="miio:basic:light:power"} +Dimmer brightness "Brightness" (G_light) {channel="miio:basic:light:brightness"} +Number delayoff "Shutdown Timer" (G_light) {channel="miio:basic:light:delayoff"} +Number colorTemperature "Color Temperature" (G_light) {channel="miio:basic:light:colorTemperature"} +Number colorMode "Color Mode" (G_light) {channel="miio:basic:light:colorMode"} +String name "Name" (G_light) {channel="miio:basic:light:name"} +``` + ### Yeelight (yeelink.light.lamp1) 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. @@ -4401,6 +5047,92 @@ Number colorMode "Color Mode" (G_light) {channel="miio:basic:light:colorMode"} String name "Name" (G_light) {channel="miio:basic:light:name"} ``` +### Yeelight (yeelink.light.lamp4) 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 "Yeelight" +Switch power "Power" (G_light) {channel="miio:basic:light:power"} +Dimmer brightness "Brightness" (G_light) {channel="miio:basic:light:brightness"} +Number delayoff "Shutdown Timer" (G_light) {channel="miio:basic:light:delayoff"} +Number colorTemperature "Color Temperature" (G_light) {channel="miio:basic:light:colorTemperature"} +Number colorMode "Color Mode" (G_light) {channel="miio:basic:light:colorMode"} +String name "Name" (G_light) {channel="miio:basic:light:name"} +``` + +### Yeelight (yeelink.light.lamp5) 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 "Yeelight" +Switch power "Power" (G_light) {channel="miio:basic:light:power"} +Dimmer brightness "Brightness" (G_light) {channel="miio:basic:light:brightness"} +Number delayoff "Shutdown Timer" (G_light) {channel="miio:basic:light:delayoff"} +Number colorTemperature "Color Temperature" (G_light) {channel="miio:basic:light:colorTemperature"} +Number colorMode "Color Mode" (G_light) {channel="miio:basic:light:colorMode"} +String name "Name" (G_light) {channel="miio:basic:light:name"} +``` + +### Yeelight (yeelink.light.lamp6) 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 "Yeelight" +Switch power "Power" (G_light) {channel="miio:basic:light:power"} +Dimmer brightness "Brightness" (G_light) {channel="miio:basic:light:brightness"} +Number delayoff "Shutdown Timer" (G_light) {channel="miio:basic:light:delayoff"} +Number colorTemperature "Color Temperature" (G_light) {channel="miio:basic:light:colorTemperature"} +Number colorMode "Color Mode" (G_light) {channel="miio:basic:light:colorMode"} +String name "Name" (G_light) {channel="miio:basic:light:name"} +``` + +### Yeelight (yeelink.light.lamp7) 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 "Yeelight" +Switch power "Power" (G_light) {channel="miio:basic:light:power"} +Dimmer brightness "Brightness" (G_light) {channel="miio:basic:light:brightness"} +Number delayoff "Shutdown Timer" (G_light) {channel="miio:basic:light:delayoff"} +Number colorTemperature "Color Temperature" (G_light) {channel="miio:basic:light:colorTemperature"} +Number colorMode "Color Mode" (G_light) {channel="miio:basic:light:colorMode"} +String name "Name" (G_light) {channel="miio:basic:light:name"} +``` + +### Yeelight (yeelink.light.lamp8) 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 "Yeelight" +Switch power "Power" (G_light) {channel="miio:basic:light:power"} +Dimmer brightness "Brightness" (G_light) {channel="miio:basic:light:brightness"} +Number delayoff "Shutdown Timer" (G_light) {channel="miio:basic:light:delayoff"} +Number colorTemperature "Color Temperature" (G_light) {channel="miio:basic:light:colorTemperature"} +Number colorMode "Color Mode" (G_light) {channel="miio:basic:light:colorMode"} +String name "Name" (G_light) {channel="miio:basic:light:name"} +``` + +### Yeelight Panel (yeelink.light.panel1) 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 "Yeelight Panel" +Switch power "Power" (G_light) {channel="miio:basic:light:power"} +Dimmer brightness "Brightness" (G_light) {channel="miio:basic:light:brightness"} +Number delayoff "Shutdown Timer" (G_light) {channel="miio:basic:light:delayoff"} +Number colorTemperature "Color Temperature" (G_light) {channel="miio:basic:light:colorTemperature"} +Number colorMode "Color Mode" (G_light) {channel="miio:basic:light:colorMode"} +String name "Name" (G_light) {channel="miio:basic:light:name"} +String customScene "Set Scene" (G_light) {channel="miio:basic:light:customScene"} +Number nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} +``` + ### Yeelight Strip (yeelink.light.strip1) 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. @@ -4433,6 +5165,20 @@ Color rgbColor "RGB Color" (G_light) {channel="miio:basic:light:rgbColor"} String name "Name" (G_light) {channel="miio:basic:light:name"} ``` +### Yeelight Strip (yeelink.light.strip4) 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 "Yeelight Strip" +Switch power "Power" (G_light) {channel="miio:basic:light:power"} +Dimmer brightness "Brightness" (G_light) {channel="miio:basic:light:brightness"} +Number delayoff "Shutdown Timer" (G_light) {channel="miio:basic:light:delayoff"} +Number colorTemperature "Color Temperature" (G_light) {channel="miio:basic:light:colorTemperature"} +Number colorMode "Color Mode" (G_light) {channel="miio:basic:light:colorMode"} +String name "Name" (G_light) {channel="miio:basic:light:name"} +``` + ### Yeelight (yeelink.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. @@ -4511,4 +5257,52 @@ Color rgbColor "RGB Color" (G_light) {channel="miio:basic:light:rgbColor"} String name "Name" (G_light) {channel="miio:basic:light:name"} ``` +### Yeelight yilai ceiling (yilai.light.ceiling1) 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 "Yeelight yilai ceiling" +Switch power "Power" (G_light) {channel="miio:basic:light:power"} +Dimmer brightness "Brightness" (G_light) {channel="miio:basic:light:brightness"} +Number delayoff "Shutdown Timer" (G_light) {channel="miio:basic:light:delayoff"} +Number colorTemperature "Color Temperature" (G_light) {channel="miio:basic:light:colorTemperature"} +Number colorMode "Color Mode" (G_light) {channel="miio:basic:light:colorMode"} +String name "Name" (G_light) {channel="miio:basic:light:name"} +String customScene "Set Scene" (G_light) {channel="miio:basic:light:customScene"} +Number nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} +``` + +### Yeelight yilai ceiling (yilai.light.ceiling2) 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 "Yeelight yilai ceiling" +Switch power "Power" (G_light) {channel="miio:basic:light:power"} +Dimmer brightness "Brightness" (G_light) {channel="miio:basic:light:brightness"} +Number delayoff "Shutdown Timer" (G_light) {channel="miio:basic:light:delayoff"} +Number colorTemperature "Color Temperature" (G_light) {channel="miio:basic:light:colorTemperature"} +Number colorMode "Color Mode" (G_light) {channel="miio:basic:light:colorMode"} +String name "Name" (G_light) {channel="miio:basic:light:name"} +String customScene "Set Scene" (G_light) {channel="miio:basic:light:customScene"} +Number nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} +``` + +### Yeelight yilai ceiling (yilai.light.ceiling3) 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 "Yeelight yilai ceiling" +Switch power "Power" (G_light) {channel="miio:basic:light:power"} +Dimmer brightness "Brightness" (G_light) {channel="miio:basic:light:brightness"} +Number delayoff "Shutdown Timer" (G_light) {channel="miio:basic:light:delayoff"} +Number colorTemperature "Color Temperature" (G_light) {channel="miio:basic:light:colorTemperature"} +Number colorMode "Color Mode" (G_light) {channel="miio:basic:light:colorMode"} +String name "Name" (G_light) {channel="miio:basic:light:name"} +String customScene "Set Scene" (G_light) {channel="miio:basic:light:customScene"} +Number nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} +``` + 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 0270c6c1c2..7efd295dd5 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 @@ -167,6 +167,9 @@ public enum MiIoDevices { WIFISPEAKER("xiaomi.wifispeaker.v1", "Mi Internet Speaker", THING_TYPE_UNSUPPORTED), YEELIGHT_BSLAMP("yeelink.light.bslamp1", "Yeelight Lamp", THING_TYPE_BASIC), YEELIGHT_BSLAMP2("yeelink.light.bslamp2", "Yeelight Lamp", THING_TYPE_BASIC), + YEELIGHT_BSLAMP3("yeelink.light.bslamp3", "Yeelight Lamp", THING_TYPE_BASIC), + YEELIGHT_BHFLIGHT1("yeelink.bhf_light.v1", "Yeelight BadHeater", THING_TYPE_BASIC), + YEELIGHT_BHFLIGHT2("yeelink.bhf_light.v2", "Yeelight BadHeater", THING_TYPE_BASIC), YEELIGHT_CEIL1("yeelink.light.ceiling1", "Yeelight LED Ceiling Lamp", THING_TYPE_BASIC), YEELIGHT_CEIL2("yeelink.light.ceiling2", "Yeelight LED Ceiling Lamp v2", THING_TYPE_BASIC), YEELIGHT_CEIL3("yeelink.light.ceiling3", "Yeelight LED Ceiling Lamp v3", THING_TYPE_BASIC), @@ -181,20 +184,45 @@ public enum MiIoDevices { YEELIGHT_CEIL11("yeelink.light.ceiling11", "Yeelight LED Ceiling Lamp v11", THING_TYPE_BASIC), YEELIGHT_CEIL12("yeelink.light.ceiling12", "Yeelight LED Ceiling Lamp v12", THING_TYPE_BASIC), YEELIGHT_CEIL13("yeelink.light.ceiling13", "Yeelight LED Ceiling Lamp v13", THING_TYPE_BASIC), + YEELIGHT_CEIL14("yeelink.light.ceiling14", "Yeelight LED Ceiling Lamp", THING_TYPE_BASIC), + YEELIGHT_CEIL15("yeelink.light.ceiling15", "Yeelight LED Ceiling Lamp", THING_TYPE_BASIC), + YEELIGHT_CEIL16("yeelink.light.ceiling16", "Yeelight LED Ceiling Lamp", THING_TYPE_BASIC), + YEELIGHT_CEIL17("yeelink.light.ceiling17", "Yeelight LED Ceiling Lamp", THING_TYPE_BASIC), + YEELIGHT_CEIL18("yeelink.light.ceiling18", "Yeelight LED Ceiling Lamp", THING_TYPE_BASIC), + YEELIGHT_CEIL19("yeelink.light.ceiling19", "Yeelight LED Ceiling Lamp", THING_TYPE_BASIC), + YEELIGHT_CEIL20("yeelink.light.ceiling20", "Yeelight LED Ceiling Lamp", THING_TYPE_BASIC), + YEELIGHT_CEIL21("yeelink.light.ceiling21", "Yeelight LED Ceiling Lamp", THING_TYPE_BASIC), + YEELIGHT_CEIL22("yeelink.light.ceiling22", "Yeelight LED Ceiling Lamp", THING_TYPE_BASIC), + YEELIGHT_CEIL23("yeelink.light.ceiling23", "Yeelight LED Ceiling Lamp", THING_TYPE_BASIC), + YEELIGHT_CEIL4_A("yeelink.light.ceiling4.ambi", "Yeelight LED Ceiling Ambi Lamp", THING_TYPE_BASIC), + YEELIGHT_CEIL10_A("yeelink.light.ceiling10.ambi", "Yeelight LED Ceiling Ambi Lamp", THING_TYPE_BASIC), + YEELIGHT_CEIL19_A("yeelink.light.ceiling19.ambi", "Yeelight LED Ceiling Ambi Lamp", THING_TYPE_BASIC), + YEELIGHT_CEIL20_A("yeelink.light.ceiling20.ambi", "Yeelight LED Ceiling Ambi Lamp", THING_TYPE_BASIC), YEELIGHT_CT2("yeelink.light.ct2", "Yeelight ct2", THING_TYPE_BASIC), YEELIGHT_DOLPHIN("yeelink.light.mono1", "Yeelight White Bulb", THING_TYPE_BASIC), YEELIGHT_DOLPHIN2("yeelink.light.mono2", "Yeelight White Bulb v2", THING_TYPE_BASIC), + YEELIGHT_FLUTE("yeelink.light.mono5", "Yeelight White", THING_TYPE_BASIC), YEELIGHT_DONUT("yeelink.wifispeaker.v1", "Yeelight Wifi Speaker", THING_TYPE_UNSUPPORTED), YEELIGHT_MANGO("yeelink.light.lamp1", "Yeelight", THING_TYPE_BASIC), YEELIGHT_MANGO2("yeelink.light.lamp2", "Yeelight", THING_TYPE_BASIC), YEELIGHT_MANGO3("yeelink.light.lamp3", "Yeelight", THING_TYPE_BASIC), + YEELIGHT_MANGO4("yeelink.light.lamp4", "Yeelight", THING_TYPE_BASIC), + YEELIGHT_MANGO5("yeelink.light.lamp5", "Yeelight", THING_TYPE_BASIC), + YEELIGHT_MANGO6("yeelink.light.lamp6", "Yeelight", THING_TYPE_BASIC), + YEELIGHT_MANGO7("yeelink.light.lamp7", "Yeelight", THING_TYPE_BASIC), + YEELIGHT_MANGO8("yeelink.light.lamp8", "Yeelight", THING_TYPE_BASIC), + YEELIGHT_PANEL1("yeelink.light.panel1", "Yeelight Panel", THING_TYPE_BASIC), YEELIGHT_STRIP("yeelink.light.strip1", "Yeelight Strip", THING_TYPE_BASIC), YEELIGHT_STRIP2("yeelink.light.strip2", "Yeelight Strip", THING_TYPE_BASIC), + YEELIGHT_STRIP4("yeelink.light.strip4", "Yeelight Strip", THING_TYPE_BASIC), YEELIGHT_VIRT("yeelink.light.virtual", "Yeelight", THING_TYPE_BASIC), YEELIGHT_C1("yeelink.light.color1", "Yeelight Color Bulb", THING_TYPE_BASIC), YEELIGHT_C2("yeelink.light.color2", "Yeelight Color Bulb YLDP06YL 10W", THING_TYPE_BASIC), YEELIGHT_C3("yeelink.light.color3", "Yeelight Color Bulb YLDP02YL 9W", THING_TYPE_BASIC), YEELIGHT_C4("yeelink.light.color4", "Yeelight Bulb YLDP13YL (8,5W)", THING_TYPE_BASIC), + YL_CEILING1("yilai.light.ceiling1", "Yeelight yilai ceiling", THING_TYPE_BASIC), + YL_CEILING2("yilai.light.ceiling2", "Yeelight yilai ceiling", THING_TYPE_BASIC), + YL_CEILING3("yilai.light.ceiling3", "Yeelight yilai ceiling", THING_TYPE_BASIC), UNKNOWN("unknown", "Unknown Mi IO Device", THING_TYPE_UNSUPPORTED); public static MiIoDevices getType(String modelString) { diff --git a/bundles/org.openhab.binding.miio/src/main/resources/database/chuangmi.plug.v3fw.json b/bundles/org.openhab.binding.miio/src/main/resources/database/chuangmi.plug.v3fw.json index 295825b147..b6dcffe29c 100644 --- a/bundles/org.openhab.binding.miio/src/main/resources/database/chuangmi.plug.v3fw.json +++ b/bundles/org.openhab.binding.miio/src/main/resources/database/chuangmi.plug.v3fw.json @@ -12,6 +12,7 @@ "type": "Switch", "refresh": true, "ChannelGroup": "", + "readmeComment": "If this channel does not respond to on/off replace the model with chuangmi.plug.v3old in the config or upgrade firmware", "actions": [ { "command": "set_power", diff --git a/bundles/org.openhab.binding.miio/src/main/resources/database/yeelink.bhf1.json b/bundles/org.openhab.binding.miio/src/main/resources/database/yeelink.bhf1.json new file mode 100644 index 0000000000..54a8684375 --- /dev/null +++ b/bundles/org.openhab.binding.miio/src/main/resources/database/yeelink.bhf1.json @@ -0,0 +1,98 @@ +{ + "deviceMapping": { + "id": [ + "yeelink.bhf_light.v1", + "yeelink.bhf_light.v2" + ], + "channels": [ + { + "property": "power", + "friendlyName": "Power", + "channel": "power", + "type": "Switch", + "refresh": true, + "ChannelGroup": "", + "actions": [ + { + "command": "set_power", + "parameterType": "ONOFF" + } + ] + }, + { + "property": "bh_mode", + "friendlyName": "Bath Heater mode", + "channel": "bh_mode", + "type": "String", + "refresh": true, + "ChannelGroup": "", + "actions": [ + { + "command": "set_bh_mode", + "parameterType": "STRING" + } + ] + }, + { + "property": "bright", + "friendlyName": "Brightness", + "channel": "brightness", + "type": "Dimmer", + "refresh": true, + "ChannelGroup": "actions", + "actions": [ + { + "command": "set_bright", + "parameterType": "NUMBER", + "condition": { + "name": "BrightnessExisting" + } + }, + { + "command": "set_power", + "parameterType": "ONOFF", + "condition": { + "name": "BrightnessOnOff" + } + } + ] + }, + { + "property": "delayoff", + "friendlyName": "Shutdown Timer", + "channel": "delayoff", + "type": "Number", + "refresh": true, + "ChannelGroup": "actions", + "actions": [ + { + "command": "cron_add", + "parameterType": "NUMBER", + "parameters": [ + 0, + "$value$" + ] + } + ] + }, + { + "property": "temperature", + "friendlyName": "Temperature", + "channel": "temperature", + "type": "Number", + "refresh": true, + "ChannelGroup": "", + "actions": [] + }, + { + "property": "nl_br", + "friendlyName": "Nightlight Brightness", + "channel": "nightlightBrightness", + "type": "Number", + "refresh": true, + "ChannelGroup": "", + "actions": [] + } + ] + } +} diff --git a/bundles/org.openhab.binding.miio/src/main/resources/database/yeelink.light.ceiling.json b/bundles/org.openhab.binding.miio/src/main/resources/database/yeelink.light.ceiling.json index 3998ff34ed..79c4523fe4 100644 --- a/bundles/org.openhab.binding.miio/src/main/resources/database/yeelink.light.ceiling.json +++ b/bundles/org.openhab.binding.miio/src/main/resources/database/yeelink.light.ceiling.json @@ -10,7 +10,24 @@ "yeelink.light.ceiling9", "yeelink.light.ceiling11", "yeelink.light.ceiling12", - "yeelink.light.ceiling13" + "yeelink.light.ceiling13", + "yeelink.light.ceiling14", + "yeelink.light.ceiling15", + "yeelink.light.ceiling16", + "yeelink.light.ceiling17", + "yeelink.light.ceiling18", + "yeelink.light.ceiling19", + "yeelink.light.ceiling20", + "yeelink.light.ceiling21", + "yeelink.light.ceiling22", + "yeelink.light.ceiling23", + "yeelink.light.ceiling4.ambi", + "yeelink.light.ceiling10.ambi", + "yeelink.light.ceiling19.ambi", + "yeelink.light.ceiling20.ambi", + "yilai.light.ceiling1", + "yilai.light.ceiling2", + "yilai.light.ceiling3" ], "channels": [ { diff --git a/bundles/org.openhab.binding.miio/src/main/resources/database/yeelink.light.ceiling2.json b/bundles/org.openhab.binding.miio/src/main/resources/database/yeelink.light.ceiling2.json index 1428911f33..9ab9149d24 100644 --- a/bundles/org.openhab.binding.miio/src/main/resources/database/yeelink.light.ceiling2.json +++ b/bundles/org.openhab.binding.miio/src/main/resources/database/yeelink.light.ceiling2.json @@ -1,7 +1,8 @@ { "deviceMapping": { "id": [ - "yeelink.light.ceiling2" + "yeelink.light.ceiling2", + "yeelink.light.panel1" ], "channels": [ { diff --git a/bundles/org.openhab.binding.miio/src/main/resources/database/yeelink.light.color1.json b/bundles/org.openhab.binding.miio/src/main/resources/database/yeelink.light.color1.json index cb8e63dc99..589510c51f 100644 --- a/bundles/org.openhab.binding.miio/src/main/resources/database/yeelink.light.color1.json +++ b/bundles/org.openhab.binding.miio/src/main/resources/database/yeelink.light.color1.json @@ -8,7 +8,8 @@ "yeelink.light.strip1", "yeelink.light.strip2", "yeelink.light.bslamp1", - "yeelink.light.bslamp2" + "yeelink.light.bslamp2", + "yeelink.light.bslamp3" ], "maxProperties": 7, "channels": [ diff --git a/bundles/org.openhab.binding.miio/src/main/resources/database/yeelink.light.lamp1.json b/bundles/org.openhab.binding.miio/src/main/resources/database/yeelink.light.lamp1.json index c9e65997f5..cc7cb909cb 100644 --- a/bundles/org.openhab.binding.miio/src/main/resources/database/yeelink.light.lamp1.json +++ b/bundles/org.openhab.binding.miio/src/main/resources/database/yeelink.light.lamp1.json @@ -4,9 +4,17 @@ "yeelink.light.lamp1", "yeelink.light.lamp2", "yeelink.light.lamp3", + "yeelink.light.lamp4", + "yeelink.light.lamp5", + "yeelink.light.lamp6", + "yeelink.light.lamp7", + "yeelink.light.lamp8", + "yeelink.light.strip4", "yeelink.light.ct2", "yeelink.light.mono1", "yeelink.light.mono2", + "yeelink.light.mono5", + "yeelink.light.panel1", "yeelink.light.virtual" ], "channels": [ -- 2.47.3