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