Skip to content
Merged
Changes from 3 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
64 changes: 64 additions & 0 deletions source/_integrations/wled.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -143,3 +143,67 @@ 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:
Comment thread
frenck marked this conversation as resolved.

{% raw %}

```yaml
- alias: 'Turn on WLED rain effect when weather changes to rainy'
description: 'Turns on WLED light, setting effect to Rain, palette to Breeze, intensity to 200 and speed to 255'
trigger:
- platform: state
entity_id: sensor.weather_condition
to: 'rainy'
condition:
- condition: time
after: '08:00:00'
before: '23:00:00'
action:
- service: light.turn_on
data:
entity_id: light.wled
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
```

{% endraw %}
Comment thread
frenck marked this conversation as resolved.
Outdated