From 275de96f26d328dff61298e437241667e3bfd761 Mon Sep 17 00:00:00 2001 From: Kiril Peyanski Date: Tue, 26 Oct 2021 17:40:58 +0300 Subject: [PATCH] Update conditions.markdown (#18725) --- source/_docs/scripts/conditions.markdown | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/source/_docs/scripts/conditions.markdown b/source/_docs/scripts/conditions.markdown index 821e047d178..7e9efacc8f8 100644 --- a/source/_docs/scripts/conditions.markdown +++ b/source/_docs/scripts/conditions.markdown @@ -323,6 +323,15 @@ condition: after_offset: "-01:00:00" ``` +This is an example of 1 hour offset after sunset. + +```yaml +condition: + - condition: sun + after: sunset + before: sunrise +``` + This is 'when dark' - equivalent to a state condition on `sun.sun` of `below_horizon`. ```yaml