31 lines
967 B
YAML
31 lines
967 B
YAML
- id: alarm-automation
|
|
alias: '[Alarm] Wakeup automation'
|
|
trigger:
|
|
- platform: state
|
|
entity_id: calendar.automations_wakeup
|
|
to: 'on'
|
|
action:
|
|
- service: cover.open_cover
|
|
entity_id:
|
|
- cover.bedroom_blinds
|
|
- cover.computer_cave_blinds
|
|
- cover.living_room_blind
|
|
- service: script.good_morning
|
|
- delay: '15'
|
|
- service: media_player.volume_set
|
|
data:
|
|
volume_level: 0.1
|
|
entity_id: media_player.bedroom
|
|
- service: media_player.play_media
|
|
data:
|
|
media_content_id: media-source://media_source/local/wake-the-f-up-samurai-we-have-a-city-to-burn.mp3
|
|
media_content_type: music
|
|
entity_id: media_player.bedroom_speaker
|
|
- delay: '15'
|
|
- service: media_player.play_media
|
|
data:
|
|
entity_id: media_player.bedroom
|
|
media_content_id: 'https://open.spotify.com/playlist/3Qu9kE0ivJIkn76pxTLMFe'
|
|
media_content_type: music
|
|
mode: single
|