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

View File

@ -38,8 +38,9 @@ Configuration variables:
Here's an example of `input_slider` being used as a trigger in an automation.
{% raw %}
```
{% raw %}
# Example configuration.yaml entry using 'input_slider' as a trigger in an automation
# Define input_slider
@ -63,13 +64,13 @@ automation:
data_template:
entity_id: light.bedroom
brightness: '{{ trigger.to_state.state | int }}'
```
{% endraw %}
```
Another code example using `input_slider`, this time being used in an action in an automation.
{% raw %}
```
{% raw %}
# Example configuration.yaml entry using 'input_slider' in an action in an automation
# Define 'input_select'
@ -107,5 +108,6 @@ automation:
data_template:
entity_id: light.bedroom
brightness: '{{ states.input_slider.bedroom_brightness.state | int }}'
```
{% endraw %}
```