Update service-calls.markdown
This commit is contained in:
parent
2e132f95f8
commit
75a829676a
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ You can use [templating] support to dynamically choose which service to call. Fo
|
|||
|
||||
```yaml
|
||||
service_template: >
|
||||
{% raw %}{% if states.sensor.temperature | float > 15 %}
|
||||
{% raw %}{% if states.sensor.temperature.state | float > 15 %}
|
||||
switch.turn_on
|
||||
{% else %}
|
||||
switch.turn_off
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue