mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-04-29 06:48:16 +00:00
Turn off lights independent of sun state
This commit is contained in:
@@ -76,14 +76,9 @@ automation:
|
||||
for:
|
||||
minutes: 30
|
||||
condition:
|
||||
condition: and
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.house_mode
|
||||
state: 'day'
|
||||
- condition: state
|
||||
entity_id: sun.sun
|
||||
state: 'below_horizon'
|
||||
condition: state
|
||||
entity_id: input_select.house_mode
|
||||
state: 'day'
|
||||
action:
|
||||
- service: light.turn_off
|
||||
entity_id: light.tuya_kitchen_all_lights
|
||||
@@ -147,14 +142,9 @@ automation:
|
||||
for:
|
||||
minutes: 5
|
||||
condition:
|
||||
condition: and
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.house_mode
|
||||
state: 'day'
|
||||
- condition: state
|
||||
entity_id: sun.sun
|
||||
state: 'below_horizon'
|
||||
condition: state
|
||||
entity_id: input_select.house_mode
|
||||
state: 'day'
|
||||
action:
|
||||
- service: light.turn_off
|
||||
entity_id: light.hallway_all_lights
|
||||
|
||||
Reference in New Issue
Block a user