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
56 changes: 56 additions & 0 deletions source/_integrations/wled.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -143,3 +143,59 @@ data:
```

{% endraw %}

### Activating a preset

Activating a preset is an easy way to set a WLED light to a specific
configuration. Here is an example service call to set a WLED light
to a preset called My Preset:

```yaml
- service: light.turn_on
target:
entity_id: light.wled
- service: select.select_option
target:
entity_id: select.wled_preset
data:
option: "My Preset"
```

### Automation Using Specific Palette Name

An automation to turn on a WLED light and select a specific palette and
set intensity, and speed can be created by first calling the `light.turn_on`
service, then calling the `select.select_option` service to select the
palette, then call the `number.set_value` service to set the intensity
and again to set the speed.

Here is an example of all of these put together into an automation:

```yaml
- alias: "Turn on WLED rain effect when weather changes to rainy"
trigger:
- platform: state
entity_id: sensor.weather_condition
to: "rainy"
action:
- service: light.turn_on
target:
entity_id: light.wled
data:
effect: "Rain"
- service: select.select_option
target:
entity_id: select.wled_color_palette
data:
option: "Breeze"
- service: number.set_value
target:
entity_id: number.wled_intensity
data:
value: 200
- service: number.set_value
target:
entity_id: number.wled_speed
data:
value: 255
```