Make template visible

This commit is contained in:
Fabian Affolter 2017-05-28 19:41:31 +02:00
parent c87e55eec1
commit 819cb20c11
No known key found for this signature in database
GPG Key ID: DDF3D6F44AAB1336

View File

@ -56,5 +56,5 @@ switch:
is_on_template: '{% raw %}{{value_json.is_active}}{% endraw %}'
```
`body_on` and `body_off` can also depend on the state of the system. For example, to enable a remote temperature sensor tracking on a radio thermostat, one has to send the current value of the remote temperature sensor. This can be achieved by using the template `'{"rem_temp":{{states.sensor.bedroom_temp.state}}}'`.
`body_on` and `body_off` can also depend on the state of the system. For example, to enable a remote temperature sensor tracking on a radio thermostat, one has to send the current value of the remote temperature sensor. This can be achieved by using the template `{% raw %}'{"rem_temp":{{states.sensor.bedroom_temp.state}}}'{% endraw %}`.