49 lines
1.3 KiB
YAML
49 lines
1.3 KiB
YAML
blueprint:
|
|
name: "Simulated Sunrise Alarm"
|
|
description: "Smoothly increase light brightness with configurable steps"
|
|
domain: automation
|
|
input:
|
|
alarm_time:
|
|
name: Alarm Clock Time
|
|
description: The time when you should wake up
|
|
selector:
|
|
entity:
|
|
domain: input_datetime
|
|
|
|
alarm_enabled:
|
|
name: Alarm Clock Enabled
|
|
description: Boolean dictating whether the alarm is on or not
|
|
selector:
|
|
entity:
|
|
domain: input_boolean
|
|
|
|
offset_duration:
|
|
name: Offset Duration
|
|
description: How long before/after the alarm time to trigger (use negative values for earlier times).
|
|
default: "-00:30:00"
|
|
selector:
|
|
duration:
|
|
|
|
alarm_script:
|
|
name: Script to trigger
|
|
description: Script to trigger
|
|
selector:
|
|
entity:
|
|
filter:
|
|
- domain: script
|
|
|
|
triggers:
|
|
- trigger: time
|
|
at:
|
|
entity_id: !input alarm_time
|
|
offset: !input offset_duration
|
|
|
|
conditions:
|
|
- condition: state
|
|
entity_id: !input alarm_enabled
|
|
state: "on"
|
|
|
|
mode: restart
|
|
|
|
actions:
|
|
- action: !input alarm_script |