First attempt at rewriting New Years script for 2023
This commit is contained in:
145
automations.yaml
145
automations.yaml
@ -62,16 +62,39 @@
|
|||||||
at: 00:00:00
|
at: 00:00:00
|
||||||
condition: []
|
condition: []
|
||||||
action:
|
action:
|
||||||
|
- service: scene.create
|
||||||
|
data:
|
||||||
|
scene_id: new_years_restore
|
||||||
|
snapshot_entities:
|
||||||
|
- light.living_room_color_1
|
||||||
|
- light.living_room_color_2
|
||||||
|
- light.living_room_color_3
|
||||||
|
- light.basement_short_lamp
|
||||||
|
- light.basement_stairwell
|
||||||
|
- light.basement_tall_lamp
|
||||||
|
- light.basement_led_strip_1
|
||||||
|
- light.mud_room_overhead
|
||||||
|
- light.dining_room_lamp
|
||||||
|
- switch.adaptive_lighting_basement_studio
|
||||||
|
- switch.adaptive_lighting_kallen_bedroom
|
||||||
|
- switch.adaptive_lighting_living_room
|
||||||
|
- switch.adaptive_lighting_master_bedroom
|
||||||
|
- switch.adaptive_lighting_mud_room
|
||||||
|
- switch.adaptive_lighting_upstairs_hallway
|
||||||
|
- switch.adaptive_lighting_tina_lamp
|
||||||
|
- switch.adaptive_lighting_dining_room
|
||||||
|
alias: Create scene to restore afterwards
|
||||||
|
- delay:
|
||||||
|
hours: 0
|
||||||
|
minutes: 0
|
||||||
|
seconds: 0
|
||||||
|
milliseconds: 500
|
||||||
|
alias: Short pause
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
|
data: {}
|
||||||
target:
|
target:
|
||||||
area_id:
|
entity_id: light.dining_room_lamp
|
||||||
- basement_studio
|
alias: Turn off dining room lamp
|
||||||
- furnace_room
|
|
||||||
- kallen_bedroom
|
|
||||||
- living_room
|
|
||||||
- master_bedroom
|
|
||||||
- mud_room
|
|
||||||
- upstairs_hallway
|
|
||||||
- service: switch.turn_off
|
- service: switch.turn_off
|
||||||
target:
|
target:
|
||||||
entity_id:
|
entity_id:
|
||||||
@ -81,18 +104,15 @@
|
|||||||
- switch.adaptive_lighting_master_bedroom
|
- switch.adaptive_lighting_master_bedroom
|
||||||
- switch.adaptive_lighting_mud_room
|
- switch.adaptive_lighting_mud_room
|
||||||
- switch.adaptive_lighting_upstairs_hallway
|
- switch.adaptive_lighting_upstairs_hallway
|
||||||
- service: notify.alexa_media
|
- switch.adaptive_lighting_tina_lamp
|
||||||
data:
|
data: {}
|
||||||
target: Living Room Echo Dot
|
alias: Shut off adaptive lighting for affected areas
|
||||||
message: Happy new year! Here's to 2022!
|
|
||||||
data:
|
|
||||||
method: all
|
|
||||||
type: announce
|
|
||||||
- delay:
|
- delay:
|
||||||
hours: 0
|
hours: 0
|
||||||
minutes: 0
|
minutes: 0
|
||||||
seconds: 2
|
seconds: 1
|
||||||
milliseconds: 0
|
milliseconds: 0
|
||||||
|
alias: Delay to collect our bearings
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
target:
|
target:
|
||||||
entity_id:
|
entity_id:
|
||||||
@ -100,50 +120,75 @@
|
|||||||
- light.kallen_bedroom_lights
|
- light.kallen_bedroom_lights
|
||||||
- light.living_room_color_1
|
- light.living_room_color_1
|
||||||
- light.living_room_color_2
|
- light.living_room_color_2
|
||||||
|
- light.living_room_color_3
|
||||||
- light.master_bedroom_front
|
- light.master_bedroom_front
|
||||||
- light.master_bedroom_side
|
- light.master_bedroom_side
|
||||||
- light.mud_room_overhead
|
- light.mud_room_overhead
|
||||||
|
- light.tina_desk_strip
|
||||||
|
- light.tina_lamp_top
|
||||||
|
- light.tina_lamp_side
|
||||||
|
- light.basement_led_strip_1
|
||||||
|
- light.basement_short_lamp
|
||||||
|
- light.basement_stairwell
|
||||||
|
- light.basement_tall_lamp
|
||||||
data:
|
data:
|
||||||
flash: long
|
color_name: red
|
||||||
|
brightness_pct: 100
|
||||||
|
alias: Turn on lights, change to red for capable bulbs
|
||||||
- delay:
|
- delay:
|
||||||
hours: 0
|
hours: 0
|
||||||
minutes: 0
|
minutes: 0
|
||||||
seconds: 15
|
seconds: 2
|
||||||
milliseconds: 0
|
milliseconds: 0
|
||||||
- service: light.turn_off
|
alias: Delay to wait for lights to turn on
|
||||||
target:
|
|
||||||
area_id:
|
|
||||||
- basement_studio
|
|
||||||
- furnace_room
|
|
||||||
- kallen_bedroom
|
|
||||||
- living_room
|
|
||||||
- master_bedroom
|
|
||||||
- mud_room
|
|
||||||
- upstairs_hallway
|
|
||||||
- delay:
|
|
||||||
hours: 0
|
|
||||||
minutes: 0
|
|
||||||
seconds: 1
|
|
||||||
milliseconds: 500
|
|
||||||
- service: switch.turn_on
|
|
||||||
target:
|
|
||||||
entity_id:
|
|
||||||
- switch.adaptive_lighting_basement_studio
|
|
||||||
- switch.adaptive_lighting_kallen_bedroom
|
|
||||||
- switch.adaptive_lighting_living_room
|
|
||||||
- switch.adaptive_lighting_master_bedroom
|
|
||||||
- switch.adaptive_lighting_mud_room
|
|
||||||
- switch.adaptive_lighting_upstairs_hallway
|
|
||||||
- delay:
|
|
||||||
hours: 0
|
|
||||||
minutes: 0
|
|
||||||
seconds: 1
|
|
||||||
milliseconds: 500
|
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
target:
|
target:
|
||||||
area_id:
|
entity_id:
|
||||||
- living_room
|
- light.hallway_overhead
|
||||||
- mud_room
|
- light.kallen_bedroom_lights
|
||||||
|
- light.living_room_color_1
|
||||||
|
- light.living_room_color_2
|
||||||
|
- light.living_room_color_3
|
||||||
|
- light.master_bedroom_front
|
||||||
|
- light.master_bedroom_side
|
||||||
|
- light.mud_room_overhead
|
||||||
|
- light.tina_desk_strip
|
||||||
|
- light.tina_lamp_top
|
||||||
|
- light.tina_lamp_side
|
||||||
|
- light.basement_led_strip_1
|
||||||
|
- light.basement_short_lamp
|
||||||
|
- light.basement_stairwell
|
||||||
|
- light.basement_tall_lamp
|
||||||
|
data:
|
||||||
|
flash: long
|
||||||
|
alias: Flash lights
|
||||||
|
- service: script.speech_engine
|
||||||
|
data:
|
||||||
|
who: common
|
||||||
|
message: Happy new year! Here's to 2023!
|
||||||
|
alias: Send TTS notification to the common areas
|
||||||
|
- delay:
|
||||||
|
hours: 0
|
||||||
|
minutes: 0
|
||||||
|
seconds: 30
|
||||||
|
milliseconds: 0
|
||||||
|
alias: Let the things happen
|
||||||
|
- service: scene.turn_on
|
||||||
|
alias: Restore previous light state
|
||||||
|
data: {}
|
||||||
|
target:
|
||||||
|
entity_id: scene.new_years_restore
|
||||||
|
- service: scene.turn_on
|
||||||
|
data: {}
|
||||||
|
target:
|
||||||
|
entity_id: scene.night_mode_on_second_floor
|
||||||
|
alias: Return second floor to night mode
|
||||||
|
- service: input_select.select_option
|
||||||
|
data:
|
||||||
|
option: Reset
|
||||||
|
target:
|
||||||
|
entity_id: input_select.tina_desk_scenes
|
||||||
|
alias: Reset Tina desk scene
|
||||||
mode: single
|
mode: single
|
||||||
- id: '1641101491581'
|
- id: '1641101491581'
|
||||||
alias: Family Has Arrived
|
alias: Family Has Arrived
|
||||||
|
Reference in New Issue
Block a user