Przemek Grondek
e3b1cb1512
Fix morning alarm clock automation separate alarm clock logic from good morning script
38 lines
989 B
YAML
38 lines
989 B
YAML
- id: alarm-automation
|
|
alias: '[Alarm] Wakeup automation'
|
|
trigger:
|
|
- platform: state
|
|
entity_id: calendar.automations_wakeup
|
|
to: 'on'
|
|
action:
|
|
- service: light.turn_on
|
|
data:
|
|
kelvin: 2000
|
|
brightness: 1
|
|
entity_id: light.bedroom_lights
|
|
- service: cover.set_cover_position
|
|
target:
|
|
entity_id: cover.bedroom_blinds
|
|
data:
|
|
position: 10
|
|
- service: light.turn_on
|
|
data:
|
|
kelvin: 5300
|
|
transition: 1800
|
|
brightness: 255
|
|
entity_id: light.bedroom_lights
|
|
- delay:
|
|
minutes: 30
|
|
- service: media_player.volume_set
|
|
data:
|
|
volume_level: 0.1
|
|
entity_id: media_player.bedroom
|
|
- delay: '10'
|
|
- service: media_player.play_media
|
|
data:
|
|
entity_id: media_player.bedroom
|
|
media_content_id: 'https://open.spotify.com/playlist/3Qu9kE0ivJIkn76pxTLMFe'
|
|
media_content_type: music
|
|
- service: script.good_morning
|
|
mode: single
|