mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
36 lines
928 B
YAML
36 lines
928 B
YAML
alias: Continue White Noise
|
|
id: automation_continue_white_noise
|
|
initial_state: "on"
|
|
trigger:
|
|
- platform: state
|
|
entity_id: media_player.master_bedroom_clock
|
|
to: "off"
|
|
for: "00:00:02"
|
|
- platform: state
|
|
entity_id: media_player.master_bedroom_clock
|
|
to: "idle"
|
|
for: "00:00:02"
|
|
condition:
|
|
- condition: state
|
|
entity_id: input_boolean.master_bedroom_asleep
|
|
state: 'on'
|
|
|
|
action:
|
|
#- service: input_select.select_option
|
|
# data:
|
|
# entity_id: input_select.master_bedroom_mode
|
|
# option: 'Off'
|
|
- service: input_select.select_option
|
|
data:
|
|
entity_id: input_select.google_home
|
|
option: 'Master Bedroom'
|
|
- service: input_select.select_option
|
|
data:
|
|
entity_id: input_select.ambient_sound
|
|
option: 'Thunderstorm'
|
|
- service: input_number.set_value
|
|
data:
|
|
entity_id: input_number.volume_ambientsounds
|
|
value: '0.3'
|
|
- service: script.ambientsounds
|