I made this automation for christmas day and it went better than expected my son was super happy and could not help telling all family members what he heard in the morning (he is 6)
alias: Christmas day joy
description: ''
trigger:
- type: opened
platform: device
device_id: 9f9610175b5c1ae61658ad8ace3d5e5a
entity_id: binary_sensor.0x00158d0004a02c27_contact <---- his bedroom door sensor
domain: binary_sensor
condition:
- condition: time
after: '06:00:00'
before: '07:00:00'
action:
- scene: scene.studio_xmas <--- scene i created to switch all lights to green and red
- delay:
hours: 0
minutes: 0
seconds: 3
milliseconds: 0
- service: media_player.volume_set
data:
volume_level: 0.69
target:
entity_id: media_player.echo_1
- service: notify.alexa_media_echo_1
data:
message: Quick. - Santa. -- go... A. J. - is. - awake
data:
type: tts
- service: media_player.play_media
data:
media_content_id: christmas_05
media_content_type: sound
target:
entity_id: media_player.echo_1
- delay:
hours: 0
minutes: 0
seconds: 3
milliseconds: 0
- service: media_player.play_media
data:
media_content_id: christmas_05
media_content_type: sound
target:
entity_id: media_player.echo_1
- delay:
hours: 0
minutes: 0
seconds: 15
milliseconds: 0
- service: media_player.volume_set
data:
volume_level: 0.2
target:
entity_id: media_player.echo_1
mode: single
Basically he woke up, opened his door and all the lights turned on in the house with red and green colors, alexa turned her self up and said the message then there was a sleigh bell sound repeated twice. and then turned down, he could not wait to tell me about it when he woke me up