Files
sarah/blueprints/automation/light_sun_set_temperature.yaml
2022-12-01 16:01:59 +02:00

26 lines
420 B
YAML

blueprint:
name: Light sun set temperature
domain: automation
input:
light:
temp:
after_offset:
default: "+00:00:00"
mode: parallel
trigger:
platform: sun
event: sunset
offset: !input after_offset
condition:
- condition: state
entity_id: !input light
state: "on"
action:
- service: light.turn_on
data_template:
entity_id: !input light
color_temp: !input temp