1
0
ansible-home-assistant/configuration/automations/alarm-clock.yaml

31 lines
959 B
YAML
Raw Normal View History

- id: alarm-automation
2021-01-11 02:11:14 +00:00
alias: '[Alarm] Wakeup automation'
2020-11-03 23:55:41 +00:00
trigger:
2021-07-26 16:45:55 +00:00
- platform: state
entity_id: calendar.automations_wakeup
to: 'on'
2020-11-03 23:55:41 +00:00
action:
2021-04-29 21:26:10 +00:00
- service: cover.open_cover
target:
2021-05-31 21:34:16 +00:00
entity_id: cover.bedroom_blinds
- service: cover.open_cover
target:
entity_id: cover.computer_cave_blinds
- delay: '15'
2020-11-03 23:55:41 +00:00
- service: media_player.volume_set
data:
volume_level: 0.1
2021-03-21 22:40:28 +00:00
entity_id: media_player.bedroom
2020-11-03 23:55:41 +00:00
- 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'
2021-03-21 22:40:28 +00:00
- service: media_player.play_media
2020-12-06 18:11:06 +00:00
data:
2021-03-21 22:40:28 +00:00
entity_id: media_player.bedroom
media_content_id: 'https://open.spotify.com/playlist/3Qu9kE0ivJIkn76pxTLMFe'
media_content_type: music
mode: single