[miio] add support for Yeelight Dual Control Module (yeelink.switch.sw1) (#9295)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
This commit is contained in:
@@ -326,6 +326,7 @@ Currently the miio binding supports more than 210 different models.
|
||||
| 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 Dual Control Module | miio:basic | [yeelink.switch.sw1](#yeelink-switch-sw1) | Yes | Experimental support. Please report back if all channels are functional. Preferably share the debug log of property refresh and command responses |
|
||||
| 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 | |
|
||||
@@ -3236,6 +3237,20 @@ e.g. `smarthome:send actionCommand 'upd_timer["1498595904821", "on"]'` would ena
|
||||
| rgbColor | Color | RGB Color | |
|
||||
| name | String | Name | |
|
||||
|
||||
### Yeelight Dual Control Module (<a name="yeelink-switch-sw1">yeelink.switch.sw1</a>) Channels
|
||||
|
||||
| Channel | Type | Description | Comment |
|
||||
|------------------|---------|-------------------------------------|------------|
|
||||
| on | Switch | First Switch - Switch Status | |
|
||||
| mode | Number | First Switch Default - Mode | Value mapping [0="Off",1="On"] |
|
||||
| mode1 | Number | First Switch - Delay | |
|
||||
| on1 | Switch | Second Switch - Switch Status | |
|
||||
| mode2 | Number | Second Switch Default - Mode | Value mapping [0="Off",1="On"] |
|
||||
| mode3 | Number | Second Switch Service - Delay | |
|
||||
| interlock | Switch | Extension - Interlock | |
|
||||
| flash | Number | Extension - Flash | |
|
||||
| rc-list | String | Extension - Rc List | |
|
||||
|
||||
### Yeelight yilai ceiling (<a name="yilai-light-ceiling1">yilai.light.ceiling1</a>) Channels
|
||||
|
||||
| Channel | Type | Description | Comment |
|
||||
@@ -6724,6 +6739,23 @@ Color rgbColor "RGB Color" (G_light) {channel="miio:basic:light:rgbColor"}
|
||||
String name "Name" (G_light) {channel="miio:basic:light:name"}
|
||||
```
|
||||
|
||||
### Yeelight Dual Control Module (yeelink.switch.sw1) item file lines
|
||||
|
||||
note: Autogenerated example. Replace the id (switch) in the channel with your own. Replace `basic` with `generic` in the thing UID depending on how your thing was discovered.
|
||||
|
||||
```java
|
||||
Group G_switch "Yeelight Dual Control Module" <status>
|
||||
Switch on "First Switch - Switch Status" (G_switch) {channel="miio:basic:switch:on"}
|
||||
Number mode "First Switch Default - Mode" (G_switch) {channel="miio:basic:switch:mode"}
|
||||
Number mode1 "First Switch - Delay" (G_switch) {channel="miio:basic:switch:mode1"}
|
||||
Switch on1 "Second Switch - Switch Status" (G_switch) {channel="miio:basic:switch:on1"}
|
||||
Number mode2 "Second Switch Default - Mode" (G_switch) {channel="miio:basic:switch:mode2"}
|
||||
Number mode3 "Second Switch Service - Delay" (G_switch) {channel="miio:basic:switch:mode3"}
|
||||
Switch interlock "Extension - Interlock" (G_switch) {channel="miio:basic:switch:interlock"}
|
||||
Number flash "Extension - Flash" (G_switch) {channel="miio:basic:switch:flash"}
|
||||
String rc-list "Extension - Rc List" (G_switch) {channel="miio:basic:switch:rc-list"}
|
||||
```
|
||||
|
||||
### 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.
|
||||
|
||||
Reference in New Issue
Block a user