Split condition for dark times into 2 conditions to make it work.

This commit is contained in:
Marcus Scholz 2021-09-28 12:06:38 +02:00
parent aae955a085
commit 4ac0413982
1 changed files with 9 additions and 5 deletions

View File

@ -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