From 25d9e68286e30cbb14774656f2da43c410b0312a Mon Sep 17 00:00:00 2001 From: Dan Jackson Date: Mon, 30 Dec 2019 12:35:19 -0800 Subject: [PATCH] =?UTF-8?q?Update=20trigger.markdown=20for=20consistency?= =?UTF-8?q?=20with=20automation=5Fsun.ma=E2=80=A6=20(#11573)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Looks like a similar change was made to `automation_sun.markdown` in #10532, attributed to #10315. As someone trying to add an automation for the sun's elevation, the inconsistency was confusing. I don't know if other parts of this page should be updated in a similar way. --- source/_docs/automation/trigger.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_docs/automation/trigger.markdown b/source/_docs/automation/trigger.markdown index 2be3ee4b435..448da488c73 100644 --- a/source/_docs/automation/trigger.markdown +++ b/source/_docs/automation/trigger.markdown @@ -216,7 +216,7 @@ automation: trigger: platform: numeric_state entity_id: sun.sun - value_template: "{{ state.attributes.elevation }}" + value_template: "{{ state_attr('sun.sun', 'elevation') }}" # Can be a positive or negative number below: -4.0 action: