From 819cb20c1193aef57981c307c5d90e856accd4e3 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 28 May 2017 19:41:31 +0200 Subject: [PATCH] Make template visible --- source/_components/switch.rest.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_components/switch.rest.markdown b/source/_components/switch.rest.markdown index 0fa26e035ea..e79082cbf4f 100644 --- a/source/_components/switch.rest.markdown +++ b/source/_components/switch.rest.markdown @@ -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 %}`.