Christmas show for the kids. Which was a hit, btw ;)
This commit is contained in:
113
automations.yaml
113
automations.yaml
@ -523,3 +523,116 @@
|
|||||||
entity_id: input_boolean.delivery_mode
|
entity_id: input_boolean.delivery_mode
|
||||||
alias: Turn off Delivery Mode
|
alias: Turn off Delivery Mode
|
||||||
mode: single
|
mode: single
|
||||||
|
- id: '1671946146837'
|
||||||
|
alias: Christmas Day Show
|
||||||
|
description: For that one special day a year, to make it just a little more magical
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id:
|
||||||
|
- input_boolean.christmas_day_show
|
||||||
|
from: 'off'
|
||||||
|
to: 'on'
|
||||||
|
alias: Start Show
|
||||||
|
id: start-show
|
||||||
|
- platform: state
|
||||||
|
entity_id:
|
||||||
|
- input_boolean.christmas_day_show
|
||||||
|
from: 'on'
|
||||||
|
to: 'off'
|
||||||
|
alias: Stop Show
|
||||||
|
id: stop-show
|
||||||
|
condition: []
|
||||||
|
action:
|
||||||
|
- if:
|
||||||
|
- condition: trigger
|
||||||
|
id: start-show
|
||||||
|
then:
|
||||||
|
- service: switch.turn_off
|
||||||
|
data: {}
|
||||||
|
target:
|
||||||
|
entity_id:
|
||||||
|
- switch.adaptive_lighting_living_room
|
||||||
|
- switch.adaptive_lighting_tina_lamp
|
||||||
|
alias: Turn off adaptive lighting
|
||||||
|
- service: switch.turn_on
|
||||||
|
data: {}
|
||||||
|
target:
|
||||||
|
entity_id: switch.animated_scene_christmas_day
|
||||||
|
alias: Turn on Christmas Day scene
|
||||||
|
- service: script.speech_engine
|
||||||
|
data:
|
||||||
|
who: living_room
|
||||||
|
message: Merry Christmas everyone. And now, let us enjoy some awesome Christmas
|
||||||
|
music!
|
||||||
|
alias: TTS Announcement
|
||||||
|
- delay:
|
||||||
|
hours: 0
|
||||||
|
minutes: 0
|
||||||
|
seconds: 5
|
||||||
|
milliseconds: 0
|
||||||
|
alias: Give TTS time to finish
|
||||||
|
- service: media_player.select_source
|
||||||
|
data:
|
||||||
|
source: Living Room TV
|
||||||
|
target:
|
||||||
|
entity_id: media_player.spotify_iron_nerd
|
||||||
|
alias: Set source to Living Room TV
|
||||||
|
- delay:
|
||||||
|
hours: 0
|
||||||
|
minutes: 0
|
||||||
|
seconds: 2
|
||||||
|
milliseconds: 0
|
||||||
|
alias: Make sure that took effect
|
||||||
|
- service: media_player.play_media
|
||||||
|
data:
|
||||||
|
media_content_id: https://open.spotify.com/track/7LPOnS3OvbF6DGrt9fQ7x9?si=3c7e28d623324a80
|
||||||
|
media_content_type: music
|
||||||
|
target:
|
||||||
|
entity_id: media_player.spotify_iron_nerd
|
||||||
|
alias: Play my Christmas Music playlist
|
||||||
|
- service: media_player.media_play
|
||||||
|
data: {}
|
||||||
|
target:
|
||||||
|
entity_id: media_player.spotify_iron_nerd
|
||||||
|
alias: Actually play the music
|
||||||
|
alias: If starting show
|
||||||
|
- if:
|
||||||
|
- condition: trigger
|
||||||
|
id: stop-show
|
||||||
|
then:
|
||||||
|
- service: media_player.media_pause
|
||||||
|
data: {}
|
||||||
|
target:
|
||||||
|
entity_id: media_player.spotify_iron_nerd
|
||||||
|
alias: Stop the music
|
||||||
|
- service: switch.turn_off
|
||||||
|
data: {}
|
||||||
|
target:
|
||||||
|
entity_id: switch.animated_scene_christmas_day
|
||||||
|
alias: Turn off Christmas Day scene
|
||||||
|
- service: switch.turn_on
|
||||||
|
data: {}
|
||||||
|
target:
|
||||||
|
entity_id: switch.animated_scene_christmas
|
||||||
|
alias: Turn on Front Porch Christmas scene
|
||||||
|
- service: input_select.select_option
|
||||||
|
data:
|
||||||
|
option: Adaptive
|
||||||
|
target:
|
||||||
|
entity_id: input_select.living_room_scenes
|
||||||
|
alias: Set living room back to adaptive
|
||||||
|
- service: input_select.select_option
|
||||||
|
data:
|
||||||
|
option: Reset
|
||||||
|
target:
|
||||||
|
entity_id: input_select.tina_desk_scenes
|
||||||
|
alias: Reset Tina desk scene
|
||||||
|
- service: script.speech_engine
|
||||||
|
data:
|
||||||
|
who: living_room
|
||||||
|
message: Thats all folks, enjoy the rest of your Christmas Day! Eat lots of
|
||||||
|
food and have lots of fun! And hey, maybe you could bring me some cake?
|
||||||
|
I love cake!
|
||||||
|
alias: TTS Announcement
|
||||||
|
alias: If stopping show
|
||||||
|
mode: restart
|
||||||
|
@ -29,6 +29,9 @@ input_boolean:
|
|||||||
holiday_mode_hold:
|
holiday_mode_hold:
|
||||||
name: Holiday Mode Hold
|
name: Holiday Mode Hold
|
||||||
icon: mdi:party-popper
|
icon: mdi:party-popper
|
||||||
|
christmas_day_show:
|
||||||
|
name: Christmas Day Show
|
||||||
|
icon: mdi:pine-tree
|
||||||
|
|
||||||
input_number:
|
input_number:
|
||||||
upstairs_bathroom_motion_off_delay:
|
upstairs_bathroom_motion_off_delay:
|
||||||
@ -258,6 +261,31 @@ switch:
|
|||||||
change_sequence: True
|
change_sequence: True
|
||||||
animate_brightness: True
|
animate_brightness: True
|
||||||
animate_color: True
|
animate_color: True
|
||||||
|
- platform: animated_scenes
|
||||||
|
name: Christmas Day
|
||||||
|
restore: False
|
||||||
|
restore_power: False
|
||||||
|
ignore_off: False
|
||||||
|
lights:
|
||||||
|
- light.living_room_color_1
|
||||||
|
- light.living_room_color_2
|
||||||
|
- light.living_room_color_3
|
||||||
|
- light.tina_lamp_top
|
||||||
|
- light.tina_lamp_side
|
||||||
|
- light.tina_desk_strip
|
||||||
|
colors:
|
||||||
|
- color_type: rgb_color
|
||||||
|
color: [255,0,0]
|
||||||
|
brightness: 255
|
||||||
|
- color_type: rgb_color
|
||||||
|
color: [0,255,0]
|
||||||
|
brightness: 255
|
||||||
|
transition: 1
|
||||||
|
change_frequency: 5
|
||||||
|
change_amount: 3
|
||||||
|
change_sequence: False
|
||||||
|
animate_brightness: True
|
||||||
|
animate_color: True
|
||||||
|
|
||||||
automation:
|
automation:
|
||||||
# The commented-out automations have been moved to Node-RED because they are easier to implement there.
|
# The commented-out automations have been moved to Node-RED because they are easier to implement there.
|
||||||
|
Reference in New Issue
Block a user