mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 17:27:19 +00:00
Remove unnecessary _template after service call (#14566)
Since 0.115 the simpler ```service``` can be used instead of ```service_template```.
This commit is contained in:
parent
ddd75760c3
commit
43d4d63749
@ -42,7 +42,7 @@ A full list of the parameters for a service can be found on the documentation pa
|
||||
You can use [templating] support to dynamically choose which service to call. For example, you can call a certain service based on if a light is on.
|
||||
|
||||
```yaml
|
||||
service_template: >
|
||||
service: >
|
||||
{% raw %}{% if states('sensor.temperature') | float > 15 %}
|
||||
switch.turn_on
|
||||
{% else %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user