Split condition for dark times into 2 conditions to make it work.
This commit is contained in:
parent
aae955a085
commit
4ac0413982
@ -342,11 +342,15 @@
|
|||||||
to: home
|
to: home
|
||||||
from: not_home
|
from: not_home
|
||||||
condition:
|
condition:
|
||||||
|
- condition: or
|
||||||
|
conditions:
|
||||||
- condition: sun
|
- condition: sun
|
||||||
|
after: sunset
|
||||||
before: sunrise
|
before: sunrise
|
||||||
before_offset: '+1'
|
before_offset: '+1'
|
||||||
after: sunset
|
|
||||||
after_offset: '-1'
|
after_offset: '-1'
|
||||||
|
- condition: sun
|
||||||
|
before: sunrise
|
||||||
action:
|
action:
|
||||||
- service: script.moodlight_neutral
|
- service: script.moodlight_neutral
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
|
Loading…
Reference in New Issue
Block a user