From 75a829676a5f751a8c8ec2aa003bfbd3aed82326 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Sun, 6 Aug 2017 22:26:16 -0700 Subject: [PATCH] Update service-calls.markdown --- source/_docs/scripts/service-calls.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_docs/scripts/service-calls.markdown b/source/_docs/scripts/service-calls.markdown index 58ee3b4b924..b1b18333403 100644 --- a/source/_docs/scripts/service-calls.markdown +++ b/source/_docs/scripts/service-calls.markdown @@ -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