Make title linkable and format sample as yaml

This commit is contained in:
Fabian Affolter 2016-08-18 07:56:03 +02:00
parent a0dc4382bb
commit 76425c9f44
No known key found for this signature in database
GPG Key ID: DDF3D6F44AAB1336

View File

@ -34,12 +34,11 @@ Configuration variables:
- **max** (*Optional*): Maximum 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.
```
```yaml
{% raw %}
# 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.
```
```yaml
{% raw %}
# Example configuration.yaml entry using 'input_slider' in an action in an automation
@ -96,7 +95,7 @@ input_slider:
step: 1
# Automation.
automation:
automation:
- alias: Bedroom Light - Custom
trigger:
platform: state