Update Alarm Clock
This commit is contained in:
parent
bbf4bd3d00
commit
25e36ffc59
@ -1,5 +1,5 @@
|
|||||||
- id: alarm-automation
|
- id: alarm-clock-automation
|
||||||
alias: '[Alarm] Wakeup automation'
|
alias: '[Alarm-Clock] Wakeup automation'
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: calendar.automations_wakeup
|
entity_id: calendar.automations_wakeup
|
||||||
@ -13,25 +13,19 @@
|
|||||||
data:
|
data:
|
||||||
kelvin: 2000
|
kelvin: 2000
|
||||||
brightness: 1
|
brightness: 1
|
||||||
entity_id: light.bedroom_lights
|
entity_id:
|
||||||
|
- light.bedroom_lights
|
||||||
|
- light.bed_lamps
|
||||||
|
- light.bed_lightstrip
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
data:
|
data:
|
||||||
kelvin: 5300
|
kelvin: 5300
|
||||||
transition: 1800
|
transition: 1800
|
||||||
brightness: 255
|
brightness: 255
|
||||||
entity_id: light.bedroom_lights
|
entity_id:
|
||||||
- service: light.turn_on
|
- light.bedroom_lights
|
||||||
data:
|
- light.bed_lamps
|
||||||
kelvin: 5300
|
- light.bed_lightstrip
|
||||||
transition: 1800
|
|
||||||
brightness: 255
|
|
||||||
entity_id: light.bed_lamps
|
|
||||||
- service: light.turn_on
|
|
||||||
data:
|
|
||||||
kelvin: 5300
|
|
||||||
transition: 1800
|
|
||||||
brightness: 255
|
|
||||||
entity_id: light.bed_lightstrip
|
|
||||||
- repeat:
|
- repeat:
|
||||||
count: 10
|
count: 10
|
||||||
sequence:
|
sequence:
|
||||||
@ -42,22 +36,34 @@
|
|||||||
position: "{{ repeat.index * 10 | int }}"
|
position: "{{ repeat.index * 10 | int }}"
|
||||||
- delay:
|
- delay:
|
||||||
seconds: 180
|
seconds: 180
|
||||||
- service: media_player.volume_set
|
- choose:
|
||||||
data:
|
- conditions:
|
||||||
volume_level: 0.1
|
- condition: state
|
||||||
entity_id: media_player.bedroom
|
entity_id: alarm_control_panel.home_alarm
|
||||||
- delay:
|
state: disarmed
|
||||||
seconds: 10
|
sequence:
|
||||||
- service: media_player.play_media
|
- service: media_player.volume_set
|
||||||
data:
|
data:
|
||||||
entity_id: media_player.bedroom
|
volume_level: 0.1
|
||||||
media_content_id: 'https://open.spotify.com/playlist/3Qu9kE0ivJIkn76pxTLMFe'
|
entity_id: media_player.bedroom
|
||||||
media_content_type: music
|
- delay:
|
||||||
- service: script.good_morning
|
seconds: 10
|
||||||
- delay:
|
- service: media_player.play_media
|
||||||
minutes: 30
|
data:
|
||||||
|
entity_id: media_player.bedroom
|
||||||
|
media_content_id: 'https://open.spotify.com/playlist/3Qu9kE0ivJIkn76pxTLMFe'
|
||||||
|
media_content_type: music
|
||||||
|
- service: script.good_morning
|
||||||
|
- delay:
|
||||||
|
minutes: 30
|
||||||
- service: automation.turn_on
|
- service: automation.turn_on
|
||||||
target:
|
target:
|
||||||
entity_id:
|
entity_id:
|
||||||
- automation.bedroom_motion_off
|
- automation.bedroom_motion_off
|
||||||
|
- service: light.turn_off
|
||||||
|
target:
|
||||||
|
entity_id:
|
||||||
|
- light.bedroom_lights
|
||||||
|
- light.bed_lamps
|
||||||
|
- light.bed_lightstrip
|
||||||
mode: single
|
mode: single
|
||||||
|
Loading…
Reference in New Issue
Block a user