From f170b42a10db6d0010b443320383cde4d3831984 Mon Sep 17 00:00:00 2001 From: Stefan <37924749+stefanroelofs@users.noreply.github.com> Date: Fri, 2 Oct 2020 19:10:02 +0200 Subject: [PATCH] Update trigger.markdown (#14711) Co-authored-by: Franck Nijhof --- source/_docs/automation/trigger.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/_docs/automation/trigger.markdown b/source/_docs/automation/trigger.markdown index 7e85987601d..7c77bd094ce 100644 --- a/source/_docs/automation/trigger.markdown +++ b/source/_docs/automation/trigger.markdown @@ -286,7 +286,7 @@ automation: trigger: platform: numeric_state entity_id: sun.sun - value_template: "{{ state_attr('sun.sun', 'elevation') }}" + attribute: elevation # Can be a positive or negative number below: -4.0 action: @@ -296,7 +296,7 @@ automation: {% endraw %} -If you want to get more precise, start with the US Naval Observatory [tool](http://jaxchessnews.tripod.com/astro/id124.html) which will help you estimate what the solar elevation will be at any specific time. Then from this, you can select from the defined twilight numbers. +If you want to get more precise, you can use this [solar calculator](https://www.esrl.noaa.gov/gmd/grad/solcalc/), which will help you estimate what the solar elevation will be at any specific time. Then from this, you can select from the defined twilight numbers. Although the actual amount of light depends on weather, topography and land cover, they are defined as: