mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-17 14:26:51 +00:00
Move raw
This commit is contained in:
parent
a9ea2066de
commit
a0dc4382bb
@ -38,8 +38,9 @@ Configuration variables:
|
|||||||
|
|
||||||
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.
|
||||||
|
|
||||||
{% 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
|
||||||
|
|
||||||
# Define input_slider
|
# Define input_slider
|
||||||
@ -63,13 +64,13 @@ automation:
|
|||||||
data_template:
|
data_template:
|
||||||
entity_id: light.bedroom
|
entity_id: light.bedroom
|
||||||
brightness: '{{ trigger.to_state.state | int }}'
|
brightness: '{{ trigger.to_state.state | int }}'
|
||||||
```
|
|
||||||
{% endraw %}
|
{% endraw %}
|
||||||
|
```
|
||||||
|
|
||||||
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.
|
||||||
|
|
||||||
{% 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
|
||||||
|
|
||||||
# Define 'input_select'
|
# Define 'input_select'
|
||||||
@ -107,5 +108,6 @@ automation:
|
|||||||
data_template:
|
data_template:
|
||||||
entity_id: light.bedroom
|
entity_id: light.bedroom
|
||||||
brightness: '{{ states.input_slider.bedroom_brightness.state | int }}'
|
brightness: '{{ states.input_slider.bedroom_brightness.state | int }}'
|
||||||
```
|
|
||||||
{% endraw %}
|
{% endraw %}
|
||||||
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user