mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-09-07 02:18:43 +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.hallway_entrance_lights
|
||||||
- light.tuya_hallway_main_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
|
- platform: group
|
||||||
name: Ceiling lights
|
name: Ceiling lights
|
||||||
entities:
|
entities:
|
||||||
|
|||||||
@@ -10,10 +10,7 @@ automation:
|
|||||||
state: "on"
|
state: "on"
|
||||||
action:
|
action:
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
entity_id:
|
entity_id: light.on_after_dark
|
||||||
- light.living_room_all_lights
|
|
||||||
- light.master_bedroom_all_lights
|
|
||||||
- light.hallway_all_lights
|
|
||||||
data:
|
data:
|
||||||
brightness_pct: 100
|
brightness_pct: 100
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ script:
|
|||||||
entity_id: sun.sun
|
entity_id: sun.sun
|
||||||
state: "below_horizon"
|
state: "below_horizon"
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
entity_id: light.ceiling_lights
|
entity_id: light.on_after_dark
|
||||||
data:
|
data:
|
||||||
brightness_pct: 100
|
brightness_pct: 100
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user