From 3c9946917549867ab6a5f23953a2882ca9eb0b8d Mon Sep 17 00:00:00 2001 From: Rebbe Pod <66928914+RebbePod@users.noreply.github.com> Date: Thu, 25 Nov 2021 14:42:40 -0500 Subject: [PATCH] Added Precise Elevation Calculation (#1655) Co-authored-by: Oxan van Leeuwen --- components/sun.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/sun.rst b/components/sun.rst index dda62a5a3..39ad8039f 100644 --- a/components/sun.rst +++ b/components/sun.rst @@ -50,12 +50,12 @@ Automation: - **on_sunrise** (*Optional*, :ref:`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 `): 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``.