mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
alias: Master Bedroom White Noise On
|
|
id: automation_master_bedroom_white_noise_on
|
|
|
|
trigger:
|
|
- platform: state
|
|
entity_id: input_boolean.master_bedroom_asleep
|
|
to: "on"
|
|
|
|
action:
|
|
#- service: input_select.select_option
|
|
# data:
|
|
# entity_id: input_select.master_bedroom_mode
|
|
# option: 'Off'
|
|
- service: media_player.volume_set
|
|
data:
|
|
volume_level: 0.4
|
|
target:
|
|
entity_id: media_player.master_bedroom_clock
|
|
|
|
- choose:
|
|
- conditions:
|
|
condition: state
|
|
entity_id: input_boolean.kristy_home
|
|
state: 'on'
|
|
sequence:
|
|
- service: media_player.play_media
|
|
target:
|
|
entity_id: media_player.master_bedroom_clock
|
|
data:
|
|
media_content_id: media-source://media_source/local/Sounds/relaxing/thunderstorm.mp3
|
|
media_content_type: audio/mpeg
|
|
default:
|
|
- service: media_player.play_media
|
|
target:
|
|
entity_id: media_player.master_bedroom_clock
|
|
data:
|
|
media_content_id: media-source://media_source/local/Sounds/relaxing/thunderstorm.mp3
|
|
media_content_type: audio/mpeg
|
|
|