From 4ac0413982ec4f8d80c4427408ac70c02b7d9322 Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Tue, 28 Sep 2021 12:06:38 +0200 Subject: [PATCH] Split condition for dark times into 2 conditions to make it work. --- automations.yaml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/automations.yaml b/automations.yaml index f0a98a5..936572c 100644 --- a/automations.yaml +++ b/automations.yaml @@ -342,11 +342,15 @@ to: home from: not_home condition: - - condition: sun - before: sunrise - before_offset: '+1' - after: sunset - after_offset: '-1' + - condition: or + conditions: + - condition: sun + after: sunset + before: sunrise + before_offset: '+1' + after_offset: '-1' + - condition: sun + before: sunrise action: - service: script.moodlight_neutral - service: light.turn_on