From a3b76fb3ed47f29217b46942bb8ef74ebe71611d Mon Sep 17 00:00:00 2001 From: Klaas Schoute Date: Thu, 30 May 2019 00:10:30 +0200 Subject: [PATCH] :pencil2: Tweak --- source/_docs/scripts/conditions.markdown | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/_docs/scripts/conditions.markdown b/source/_docs/scripts/conditions.markdown index f44b97ebebf..26968f97601 100644 --- a/source/_docs/scripts/conditions.markdown +++ b/source/_docs/scripts/conditions.markdown @@ -119,7 +119,9 @@ condition: ``` ### {% linkable_title Sun condition %} + #### {% linkable_title Sun state condition %} + The sun state can be used to test if the sun has set or risen. ```yaml @@ -137,6 +139,7 @@ condition: ``` #### {% linkable_title Sun elevation condition %} + The sun elevation can be used to test if the sun has set or risen, it is dusk, it is night etc. when a trigger occurs. For an in depth explanation of sun elevation see [sun elevation trigger][sun_elevation_trigger]. @@ -159,6 +162,7 @@ condition: ``` #### {% linkable_title Sunset/sunrise condition %} + The sun condition can also test if the sun has already set or risen when a trigger occurs. The `before` and `after` keys can only be set to `sunset` or `sunrise`. They have a corresponding optional offset value (`before_offset`, `after_offset`) that can be added, similar to the [sun trigger][sun_trigger]. [sun_trigger]: /docs/automation/trigger/#sun-trigger