mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 10:30:14 -04:00
40 lines
973 B
YAML
40 lines
973 B
YAML
alias: 'Wake Clint'
|
|
|
|
id: automation_wake_clint
|
|
initial_state: on
|
|
trigger:
|
|
platform: time
|
|
at: input_datetime.clint_next_alarm
|
|
# condition:
|
|
# - condition: state
|
|
# entity_id: binary_sensor.work_day
|
|
# state: 'on'
|
|
action:
|
|
- service: input_boolean.turn_off
|
|
data:
|
|
entity_id: input_boolean.master_bedroom_asleep
|
|
|
|
- service: media_player.volume_set
|
|
data:
|
|
entity_id: media_player.master_bedroom_clock
|
|
volume_level: 0.95
|
|
|
|
- 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 |