yeelight: Operation mode service added (#4964)

This commit is contained in:
Sebastian Muszynski 2018-03-27 20:30:16 +02:00 committed by Teemu R
parent e547512307
commit 50b20f06da

View File

@ -63,3 +63,14 @@ This component is tested to work with the following models. If you have a differ
- **YLDD02YL**: Lightstrip (Color)
- **MJCTD01YL**: Xiaomi Mijia Bedside Lamp - WIFI Version!
- **MJTD01YL**: Xiaomi Mijia Smart LED Desk Lamp (autodiscovery isn't possible because the device doesn't support mDNS due to the small amount of RAM)
## {% linkable_title Platform Services %}
### {% linkable_title Service `light.yeelight_set_mode` %}
Set a operation mode.
| Service data attribute | Optional | Description |
|---------------------------|----------|---------------------------------------------------------------------------------------------|
| `entity_id` | yes | Only act on a specific yeelight. Else targets all. |
| `mode` | no | Operation mode. Valid values are 'last', 'normal', 'rgb', 'hsv', 'color_flow', 'moonlight'. |