mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-12-26 17:27:47 +01:00
Added Precise Elevation Calculation (#1655)
Co-authored-by: Oxan van Leeuwen <oxan@oxanvanleeuwen.nl>
This commit is contained in:
parent
38aef25e79
commit
3c99469175
@ -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 ``0°``.
|
||||
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``.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user