46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
|
- id: wakeup
|
||
|
alias: Wakeup automation
|
||
|
description: ''
|
||
|
trigger:
|
||
|
- platform: time
|
||
|
at: input_datetime.alarm
|
||
|
condition:
|
||
|
- condition: time
|
||
|
weekday:
|
||
|
- mon
|
||
|
- tue
|
||
|
- wed
|
||
|
- thu
|
||
|
- fri
|
||
|
action:
|
||
|
- service: light.turn_on
|
||
|
data:
|
||
|
kelvin: 2000
|
||
|
brightness: 1
|
||
|
entity_id:
|
||
|
- light.bedroom_1
|
||
|
- light.bedroom_2
|
||
|
- service: light.turn_on
|
||
|
data:
|
||
|
kelvin: 5300
|
||
|
transition: 1800
|
||
|
brightness: 255
|
||
|
entity_id:
|
||
|
- light.bedroom_1
|
||
|
- light.bedroom_2
|
||
|
- delay: '10'
|
||
|
- service: media_player.volume_set
|
||
|
data:
|
||
|
volume_level: 0.1
|
||
|
entity_id: media_player.bedroom_speaker
|
||
|
- delay: 0:30:00
|
||
|
- service: media_player.volume_set
|
||
|
data:
|
||
|
volume_level: 0.6
|
||
|
entity_id: media_player.bedroom_speaker
|
||
|
- 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
|
||
|
mode: single
|