Files
sarah/config/packages/modules/lighting/schedule.yaml
T
2020-12-03 10:12:32 +02:00

30 lines
754 B
YAML

automation:
- alias: Lighting · Turn on ceiling lights after sunset
trigger:
platform: sun
event: sunset
offset: "-00:30:00"
condition:
- condition: state
entity_id: binary_sensor.georgi_home
state: "on"
action:
- service: light.turn_on
entity_id: light.on_after_dark
data:
brightness_pct: 100
- service: logbook.log
data:
name: "💡 Lighting Module · "
message: "Lights On · 30 mins to sunset"
domain: light
- alias: Lighting · Turn off all lights after sunrise
trigger:
platform: sun
event: sunrise
offset: "+00:00:00"
action:
- service: light.turn_off
entity_id: light.all