Added Precise Elevation Calculation (#1655)

Co-authored-by: Oxan van Leeuwen <oxan@oxanvanleeuwen.nl>
This commit is contained in:
Rebbe Pod 2021-11-25 14:42:40 -05:00 committed by GitHub
parent 38aef25e79
commit 3c99469175
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,12 +50,12 @@ Automation:
- **on_sunrise** (*Optional*, :ref:`Automation <automation>`): An automation to perform at sunrise
when the sun crosses a specified angle.
- **elevation** (*Optional*, float): The elevation to cross. Defaults to 0° (horizon).
- **elevation** (*Optional*, float): The elevation to cross. Defaults to -0.833° (the horizon, slightly less than 0° to compensate for atmospheric refraction).
- **on_sunset** (*Optional*, :ref:`Automation <automation>`): An automation to perform at sunset
when the sun crosses a specified angle.
- **elevation** (*Optional*, float): The elevation to cross. Defaults to 0° (horizon).
- **elevation** (*Optional*, float): The elevation to cross. Defaults to -0.833° (the horizon, slightly less than 0° to compensate for atmospheric refraction).```
``sun`` Sensor
--------------
@ -111,7 +111,7 @@ Configuration variables:
``sunset``.
- **name** (**Required**, string): The name of the text sensor.
- **elevation** (*Optional*, float): The elevation to calculate the next sunrise/sunset event
for. Defaults to ````.
for. Defaults to -0.833° (the horizon, slightly less than 0° to compensate for atmospheric refraction).
- **format** (*Optional*, string): The format to format the time value with, see :ref:`display-strftime`
for more information. Defaults to ``%X``.