mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-04-29 06:48:16 +00:00
Define light.on_after_dark for lights that should be on after sunset. Use in automations
This commit is contained in:
@@ -67,6 +67,13 @@ light:
|
||||
- light.hallway_entrance_lights
|
||||
- light.tuya_hallway_main_lights
|
||||
|
||||
- platform: group
|
||||
name: On after dark
|
||||
entities:
|
||||
- light.living_room_all_lights
|
||||
- light.master_bedroom_main_lights
|
||||
- light.hallway_all_lights
|
||||
|
||||
- platform: group
|
||||
name: Ceiling lights
|
||||
entities:
|
||||
|
||||
@@ -10,10 +10,7 @@ automation:
|
||||
state: "on"
|
||||
action:
|
||||
- service: light.turn_on
|
||||
entity_id:
|
||||
- light.living_room_all_lights
|
||||
- light.master_bedroom_all_lights
|
||||
- light.hallway_all_lights
|
||||
entity_id: light.on_after_dark
|
||||
data:
|
||||
brightness_pct: 100
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ script:
|
||||
entity_id: sun.sun
|
||||
state: "below_horizon"
|
||||
- service: light.turn_on
|
||||
entity_id: light.ceiling_lights
|
||||
entity_id: light.on_after_dark
|
||||
data:
|
||||
brightness_pct: 100
|
||||
|
||||
|
||||
Reference in New Issue
Block a user