Skip to content

Commit 19268cf

Browse files
amelchioballoob
authored andcommitted
LIFX: add multiple modes to pulse effect (home-assistant#2806)
1 parent 7e81907 commit 19268cf

File tree

1 file changed

+4
-17
lines changed

1 file changed

+4
-17
lines changed

source/_components/light.lifx.markdown

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ automation:
5757
- service: light.turn_on
5858
data:
5959
entity_id: light.office, light.kitchen
60-
effect: lifx_effect_breathe
60+
effect: lifx_effect_pulse
6161
```
6262

6363
However, if you want to fully control a light effect, you have to use its dedicated service call, like this:
@@ -77,32 +77,19 @@ script:
7777

7878
The available light effects and their options are listed below.
7979

80-
### {% linkable_title Service `light.lifx_effect_breathe` %}
81-
82-
Run a breathe effect by fading to a color and back.
83-
84-
| Service data attribute | Description |
85-
| ---------------------- | ----------- |
86-
| `entity_id` | String or list of strings that point at `entity_id`s of lights. Else targets all.
87-
| `color_name` | A color name such as `red` or `green`.
88-
| `rgb_color` | A list containing three integers representing the RGB color you want the light to be.
89-
| `brightness` | Integer between 0 and 255 for how bright the color should be.
90-
| `period` | The duration of a single breathe.
91-
| `cycles` | The total number of breathes.
92-
| `power_on` | Set this to False to skip the effect on lights that are turned off (defaults to True).
93-
9480
### {% linkable_title Service `light.lifx_effect_pulse` %}
9581

96-
Run a flash effect by quickly changing to a color and then back.
82+
Run a flash effect by changing to a color and then back.
9783

9884
| Service data attribute | Description |
9985
| ---------------------- | ----------- |
10086
| `entity_id` | String or list of strings that point at `entity_id`s of lights. Else targets all.
10187
| `color_name` | A color name such as `red` or `green`.
10288
| `rgb_color` | A list containing three integers representing the RGB color you want the light to be.
10389
| `brightness` | Integer between 0 and 255 for how bright the color should be.
104-
| `period` | The duration of a single pulse.
90+
| `period` | The duration of a single pulse (in seconds).
10591
| `cycles` | The total number of pulses.
92+
| `mode` | The way to change between colors. Valid modes: `blink` (default), `breathe`, `ping`, `strobe`, `solid`.
10693
| `power_on` | Set this to False to skip the effect on lights that are turned off (defaults to True).
10794

10895
### {% linkable_title Service `light.lifx_effect_colorloop` %}

0 commit comments

Comments
 (0)