2021-01-07 01:52:50 +00:00
|
|
|
- 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-11-20 00:10:04 +00:00
|
|
|
- service: automation.turn_off
|
|
|
|
target:
|
|
|
|
entity_id:
|
|
|
|
- automation.bedroom_motion_off
|
2021-09-23 22:29:08 +00:00
|
|
|
- service: light.turn_on
|
|
|
|
data:
|
|
|
|
kelvin: 2000
|
|
|
|
brightness: 1
|
|
|
|
entity_id: light.bedroom_lights
|
|
|
|
- service: light.turn_on
|
|
|
|
data:
|
|
|
|
kelvin: 5300
|
|
|
|
transition: 1800
|
|
|
|
brightness: 255
|
|
|
|
entity_id: light.bedroom_lights
|
2021-12-07 00:03:01 +00:00
|
|
|
- service: light.turn_on
|
|
|
|
data:
|
|
|
|
kelvin: 5300
|
|
|
|
transition: 1800
|
|
|
|
brightness: 255
|
2021-12-12 22:45:21 +00:00
|
|
|
entity_id: light.bed_lamps
|
2021-12-07 00:03:01 +00:00
|
|
|
- service: light.turn_on
|
|
|
|
data:
|
|
|
|
kelvin: 5300
|
|
|
|
transition: 1800
|
|
|
|
brightness: 255
|
|
|
|
entity_id: light.bed_lightstrip
|
|
|
|
- repeat:
|
|
|
|
count: 100
|
|
|
|
sequence:
|
|
|
|
- service: cover.set_cover_position
|
|
|
|
target:
|
|
|
|
entity_id: cover.bedroom_blinds
|
|
|
|
data:
|
2021-12-07 22:21:32 +00:00
|
|
|
position: "{{ repeat.index | int }}"
|
2021-12-07 00:03:01 +00:00
|
|
|
- delay:
|
|
|
|
seconds: 18
|
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
|
2021-12-07 00:03:01 +00:00
|
|
|
- delay:
|
|
|
|
seconds: 10
|
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
|
2021-09-23 22:29:08 +00:00
|
|
|
- service: script.good_morning
|
2021-12-07 00:03:01 +00:00
|
|
|
- delay:
|
|
|
|
minutes: 30
|
2021-11-20 00:10:04 +00:00
|
|
|
- service: automation.turn_on
|
|
|
|
target:
|
|
|
|
entity_id:
|
|
|
|
- automation.bedroom_motion_off
|
2021-01-07 01:52:50 +00:00
|
|
|
mode: single
|