mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-09 10:14:41 +00:00
32 lines
825 B
YAML
32 lines
825 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: notify.telegram
|
|
data:
|
|
title: "💡 *Lighting Module · Lights On"
|
|
message: "Turning lights on - it's 30 mins to sunset"
|
|
data:
|
|
push:
|
|
thread-id: "lights"
|
|
|
|
- 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
|