Update trigger.markdown (#14711)

Co-authored-by: Franck Nijhof <git@frenck.dev>
This commit is contained in:
Stefan 2020-10-02 19:10:02 +02:00 committed by GitHub
parent 543bb1d874
commit f170b42a10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: