mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-22 08:46:51 +00:00
Add yeelight flow action param support (#8628)
This commit is contained in:
parent
c0e9792227
commit
7abcaad612
@ -158,6 +158,7 @@ Start flow with specified transitions
|
|||||||
|---------------------------|----------|---------------------------------------------------------------------------------------------|
|
|---------------------------|----------|---------------------------------------------------------------------------------------------|
|
||||||
| `entity_id` | no | Only act on a specific lights. |
|
| `entity_id` | no | Only act on a specific lights. |
|
||||||
| `count` | yes | The number of times to run this flow (0 to run forever). |
|
| `count` | yes | The number of times to run this flow (0 to run forever). |
|
||||||
|
| `action` | yes | The action to take after the flow stops. Can be 'recover', 'stay', 'off'. Default 'recover' |
|
||||||
| `transitions` | no | Array of transitions. See [examples below](#custom-effects). |
|
| `transitions` | no | Array of transitions. See [examples below](#custom-effects). |
|
||||||
|
|
||||||
## {% linkable_title Examples %}
|
## {% linkable_title Examples %}
|
||||||
@ -196,11 +197,11 @@ light:
|
|||||||
|
|
||||||
### {% linkable_title Custom effects %}
|
### {% linkable_title Custom effects %}
|
||||||
|
|
||||||
This example shows how you can add your custom effects in your configuration.
|
This example shows how you can add your custom effects in your configuration. To turn on the effect you can use [light.turn_on](/components/light/#service-lightturn_on) service.
|
||||||
|
|
||||||
Possible transitions are `RGBTransition`, `HSVTransition`, `TemperatureTransition`, `SleepTransition`.
|
Possible transitions are `RGBTransition`, `HSVTransition`, `TemperatureTransition`, `SleepTransition`.
|
||||||
|
|
||||||
where the array values are as per the following:
|
Where the array values are as per the following:
|
||||||
- RGBTransition: [red, green, blue, duration, brightness] with red / green / blue being an integer between 0 and 255, duration being in milliseconds (minimum of 50) and final brightness to transition to 0-100 (%)
|
- RGBTransition: [red, green, blue, duration, brightness] with red / green / blue being an integer between 0 and 255, duration being in milliseconds (minimum of 50) and final brightness to transition to 0-100 (%)
|
||||||
- HSVTransition: [hue, saturation, duration, brightness] with hue being an integer between 0 and 359, saturation 0 -100, duration in milliseconds (minimum 50) and final brightness 0-100 (%)
|
- HSVTransition: [hue, saturation, duration, brightness] with hue being an integer between 0 and 359, saturation 0 -100, duration in milliseconds (minimum 50) and final brightness 0-100 (%)
|
||||||
- TemperatureTransition: [temp, duration, brightness] with temp being the final color temperature between 1700 and 6500, duration in milliseconds (minimum 50) and final brightness to transition to 0-100 (%)
|
- TemperatureTransition: [temp, duration, brightness] with temp being the final color temperature between 1700 and 6500, duration in milliseconds (minimum 50) and final brightness to transition to 0-100 (%)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user