mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-14 04:46:49 +00:00
Update service-calls.markdown
This commit is contained in:
parent
2e132f95f8
commit
75a829676a
@ -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…
x
Reference in New Issue
Block a user