Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 4 additions & 17 deletions source/_components/light.lifx.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ automation:
- service: light.turn_on
data:
entity_id: light.office, light.kitchen
effect: lifx_effect_breathe
effect: lifx_effect_pulse
```

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

The available light effects and their options are listed below.

### {% linkable_title Service `light.lifx_effect_breathe` %}

Run a breathe effect by fading to a color and back.

| Service data attribute | Description |
| ---------------------- | ----------- |
| `entity_id` | String or list of strings that point at `entity_id`s of lights. Else targets all.
| `color_name` | A color name such as `red` or `green`.
| `rgb_color` | A list containing three integers representing the RGB color you want the light to be.
| `brightness` | Integer between 0 and 255 for how bright the color should be.
| `period` | The duration of a single breathe.
| `cycles` | The total number of breathes.
| `power_on` | Set this to False to skip the effect on lights that are turned off (defaults to True).

### {% linkable_title Service `light.lifx_effect_pulse` %}

Run a flash effect by quickly changing to a color and then back.
Run a flash effect by changing to a color and then back.

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

### {% linkable_title Service `light.lifx_effect_colorloop` %}
Expand Down