mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
53 lines
1.4 KiB
YAML
53 lines
1.4 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.ma_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: music_assistant.play_media
|
|
target:
|
|
#entity_id: media_player.ma_home_assistant_voice_097b44_media_player
|
|
entity_id: media_player.ma_bedroom_hub
|
|
data:
|
|
media_type: playlist
|
|
#media_id: library://playlist/7
|
|
media_id: >
|
|
{% set playlists = ['library://playlist/33','library://playlist/32','library://playlist/21','library://playlist/28','library://playlist/27','library://playlist/22','library://playlist/29','library://playlist/36','library://playlist/23','library://playlist/12','library://playlist/34','library://playlist/35','library://playlist/19'] %}
|
|
{{ playlists|random }}
|
|
enqueue: replace
|
|
|
|
- action: script.wake_the_bedroom
|