mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-10 02:50:12 -04:00
45 lines
1009 B
YAML
45 lines
1009 B
YAML
alias: 'Wake Clint'
|
|
|
|
id: automation_wake_clint
|
|
initial_state: on
|
|
#description:
|
|
trigger:
|
|
trigger: time
|
|
at:
|
|
entity_id: input_datetime.clint_next_alarm
|
|
offset: "-300"
|
|
action:
|
|
- service: input_boolean.turn_off
|
|
data:
|
|
entity_id: input_boolean.master_bedroom_asleep
|
|
|
|
- delay:
|
|
hours: 0
|
|
minutes: 5
|
|
seconds: 0
|
|
milliseconds: 0
|
|
|
|
- service: media_player.volume_set
|
|
data:
|
|
entity_id: media_player.master_bedroom_clock
|
|
volume_level: 0.50
|
|
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_select.master_bedroom_mode
|
|
state: 'off'
|
|
sequence:
|
|
- service: input_select.select_option
|
|
data:
|
|
option: Energize
|
|
target:
|
|
entity_id: input_select.master_bedroom_mode
|
|
|
|
- service: input_select.select_option
|
|
data:
|
|
option: Energize
|
|
target:
|
|
entity_id: input_select.master_bedroom_mode
|
|
|
|
- service: script.wake_up_the_master_bedroom |