mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 10:30:14 -04:00
59 lines
1.3 KiB
YAML
59 lines
1.3 KiB
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"
|
|
|
|
condition:
|
|
- condition: state
|
|
entity_id: input_boolean.clint_home
|
|
state: "on"
|
|
|
|
action:
|
|
- action: input_boolean.turn_off
|
|
data:
|
|
entity_id: input_boolean.master_bedroom_asleep
|
|
|
|
- delay:
|
|
hours: 0
|
|
minutes: 5
|
|
seconds: 0
|
|
milliseconds: 0
|
|
|
|
- action: media_player.volume_set
|
|
data:
|
|
#entity_id: media_player.home_assistant_voice_097b44_media_player
|
|
entity_id: media_player.ma_bedroom_hub
|
|
volume_level: 0.90
|
|
|
|
- action: input_select.select_option
|
|
data:
|
|
option: Energize
|
|
target:
|
|
entity_id: input_select.master_bedroom_mode
|
|
|
|
- action: media_player.shuffle_set
|
|
target:
|
|
entity_id: media_player.ma_bedroom_hub
|
|
data:
|
|
shuffle: true
|
|
|
|
- action: music_assistant.play_media
|
|
target:
|
|
#entity_id: media_player.home_assistant_voice_097b44_media_player
|
|
entity_id: media_player.ma_bedroom_hub
|
|
data:
|
|
media_type: playlist
|
|
media_id: library://playlist/32
|
|
#media_id: >
|
|
# {% set playlists = ['library://playlist/32','library://playlist/9'] %}
|
|
# {{ playlists|random }}
|
|
enqueue: replace
|
|
|
|
#- action: script.wake_the_bedroom
|