mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-22 00:36:49 +00:00
Make title linkable and format sample as yaml
This commit is contained in:
parent
a0dc4382bb
commit
76425c9f44
@ -34,12 +34,11 @@ Configuration variables:
|
|||||||
- **max** (*Optional*): Maximum value for the slider.
|
- **max** (*Optional*): Maximum value for the slider.
|
||||||
- **step** (*Optional*): Step value for the slider.
|
- **step** (*Optional*): Step value for the slider.
|
||||||
|
|
||||||
# Automation Examples
|
## {% linkable_title Automation Examples %}
|
||||||
|
|
||||||
Here's an example of `input_slider` being used as a trigger in an automation.
|
Here's an example of `input_slider` being used as a trigger in an automation.
|
||||||
|
|
||||||
|
```yaml
|
||||||
```
|
|
||||||
{% raw %}
|
{% raw %}
|
||||||
# Example configuration.yaml entry using 'input_slider' as a trigger in an automation
|
# Example configuration.yaml entry using 'input_slider' as a trigger in an automation
|
||||||
|
|
||||||
@ -69,7 +68,7 @@ automation:
|
|||||||
|
|
||||||
Another code example using `input_slider`, this time being used in an action in an automation.
|
Another code example using `input_slider`, this time being used in an action in an automation.
|
||||||
|
|
||||||
```
|
```yaml
|
||||||
{% raw %}
|
{% raw %}
|
||||||
# Example configuration.yaml entry using 'input_slider' in an action in an automation
|
# Example configuration.yaml entry using 'input_slider' in an action in an automation
|
||||||
|
|
||||||
@ -96,7 +95,7 @@ input_slider:
|
|||||||
step: 1
|
step: 1
|
||||||
|
|
||||||
# Automation.
|
# Automation.
|
||||||
automation:
|
automation:
|
||||||
- alias: Bedroom Light - Custom
|
- alias: Bedroom Light - Custom
|
||||||
trigger:
|
trigger:
|
||||||
platform: state
|
platform: state
|
||||||
|
Loading…
x
Reference in New Issue
Block a user