1
0
Fork 0
ansible-home-assistant/configuration/automations/alarm-clock.yaml
Przemek Grondek 4659bc42ce Change wakeup automation
Remove redundant cover open
2021-08-11 23:55:53 +02:00

25 lines
816 B
YAML

- id: alarm-automation
alias: '[Alarm] Wakeup automation'
trigger:
- platform: state
entity_id: calendar.automations_wakeup
to: 'on'
action:
- 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