Moving haunted mansion stuff to its own package

This commit is contained in:
Jeffrey Stone 2019-10-30 23:53:46 -04:00
parent ec1542a4c7
commit 61cdef633b
2 changed files with 157 additions and 74 deletions

View File

@ -8,8 +8,8 @@
input_boolean: input_boolean:
happy_ever_after_show: happy_ever_after_show:
name: Happy Ever After Show name: Happy Ever After Show
haunted_mansion: # haunted_mansion:
name: Haunted Mansion # name: Haunted Mansion
boo_to_you_show: boo_to_you_show:
name: Boo To You name: Boo To You
holiday_wishes: holiday_wishes:
@ -148,31 +148,31 @@ automation:
entity_id: media_player.ha_speaker entity_id: media_player.ha_speaker
####################################### # #######################################
# Turn on / off Haunted Mansion show # # Turn on / off Haunted Mansion show
- id: haunted_mansion_on # - id: haunted_mansion_on
alias: Haunted Mansion On # alias: Haunted Mansion On
initial_state: true # initial_state: true
trigger: # trigger:
- platform: state # - platform: state
entity_id: input_boolean.haunted_mansion # entity_id: input_boolean.haunted_mansion
to: 'on' # to: 'on'
action: # action:
- service: script.turn_on # - service: script.turn_on
entity_id: script.haunted_mansion_start # entity_id: script.haunted_mansion_start
- id: haunted_mansion_off # - id: haunted_mansion_off
alias: Haunted Mansion Off # alias: Haunted Mansion Off
initial_state: true # initial_state: true
trigger: # trigger:
- platform: state # - platform: state
entity_id: input_boolean.haunted_mansion # entity_id: input_boolean.haunted_mansion
to: 'off' # to: 'off'
action: # action:
- service: script.kill_this_ride # - service: script.kill_this_ride
- service: media_player.media_stop # - service: media_player.media_stop
entity_id: media_player.ha_speaker # entity_id: media_player.ha_speaker
####################################### # #######################################
- id: spaceship_earth_on - id: spaceship_earth_on
@ -472,54 +472,54 @@ script:
data: data:
entity_id: scene.haunted_preshow entity_id: scene.haunted_preshow
############################################## # ##############################################
# Haunted Mansion Show # # Haunted Mansion Show
haunted_mansion_start: # haunted_mansion_start:
sequence: # sequence:
- condition: state # - condition: state
entity_id: input_boolean.audible_notifications # entity_id: input_boolean.audible_notifications
state: 'on' # state: 'on'
- condition: state # - condition: state
entity_id: sensor.family_status # entity_id: sensor.family_status
state: Home # state: Home
- service: shell_command.normal_vol # - service: shell_command.normal_vol
- service: shell_command.haunted_mansion_preshow_full # - service: shell_command.haunted_mansion_preshow_full
- service: light.turn_on # - service: light.turn_on
entity_id: group.rgb_lr # entity_id: group.rgb_lr
data: # data:
rgb_color: [255,255,255] # rgb_color: [255,255,255]
- delay: 00:01:06 # - delay: 00:01:06
- service: light.turn_on # - service: light.turn_on
entity_id: group.rgb_lr # entity_id: group.rgb_lr
data: # data:
rgb_color: [73,119,255] # rgb_color: [73,119,255]
- delay: 00:00:15 # - delay: 00:00:15
- service: light.turn_on # - service: light.turn_on
entity_id: group.rgb_lr # entity_id: group.rgb_lr
data: # data:
brightness_pct: 25 # brightness_pct: 25
- delay: 00:00:37 # - delay: 00:00:37
- service: switch.turn_on # - service: switch.turn_on
entity_id: switch.rail_lights # entity_id: switch.rail_lights
- service: switch.turn_off # - service: switch.turn_off
entity_id: switch.rail_lights # entity_id: switch.rail_lights
- delay: 00:00:02 # - delay: 00:00:02
- service: scene.turn_on # - service: scene.turn_on
data: # data:
entity_id: scene.haunted_lights_out # entity_id: scene.haunted_lights_out
- service: switch.turn_on # - service: switch.turn_on
entity_id: switch.rail_lights # entity_id: switch.rail_lights
- service: switch.turn_off # - service: switch.turn_off
entity_id: switch.rail_lights # entity_id: switch.rail_lights
- delay: 00:00:10 # - delay: 00:00:10
- service: light.turn_on # - service: light.turn_on
entity_id: group.rgb_lr # entity_id: group.rgb_lr
data: # data:
rgb_color: [255,255,255] # rgb_color: [255,255,255]
brightness_pct: 25 # brightness_pct: 25
- delay: # - delay:
seconds: 160 # seconds: 160
############################################### # ###############################################
kill_haunted_mansion: kill_haunted_mansion:
sequence: sequence:

View File

@ -0,0 +1,83 @@
###############################################################################
# @author : Jeffrey Stone
# @date : 10/29/2019
# @package : Haunted Mansion Show
# @description : Config used to put on the Pre-show from Disney's Haunted Mansion in the living room
###############################################################################
input_boolean:
haunted_mansion:
name: Haunted Mansion
automation:
# Turn on Haunted Mansion Show when input_boolean is flipped on
- id: haunted_mansion_on
alias: Haunted Mansion On
initial_state: true
trigger:
- platform: state
entity_id: input_boolean.haunted_mansion
to: 'on'
action:
- service: script.turn_on
entity_id: script.haunted_mansion_start
# Turn off Haunted Mansion Show when input_boolean is flipped off
- id: haunted_mansion_off
alias: Haunted Mansion Off
initial_state: true
trigger:
- platform: state
entity_id: input_boolean.haunted_mansion
to: 'off'
action:
- service: script.kill_this_ride
- service: media_player.media_stop
entity_id: media_player.ha_speaker
script:
haunted_mansion_start:
sequence:
- condition: state
entity_id: input_boolean.audible_notifications
state: 'on'
- condition: state
entity_id: sensor.family_status
state: Home
- service: shell_command.normal_vol
- service: shell_command.haunted_mansion_preshow_full
- service: light.turn_on
entity_id: group.rgb_lr
data:
rgb_color: [255,255,255]
- delay: 00:01:06
- service: light.turn_on
entity_id: group.rgb_lr
data:
rgb_color: [73,119,255]
- delay: 00:00:15
- service: light.turn_on
entity_id: group.rgb_lr
data:
brightness_pct: 25
- delay: 00:00:37
- service: switch.turn_on
entity_id: switch.rail_lights
- service: switch.turn_off
entity_id: switch.rail_lights
- delay: 00:00:02
- service: scene.turn_on
data:
entity_id: scene.haunted_lights_out
- service: switch.turn_on
entity_id: switch.rail_lights
- service: switch.turn_off
entity_id: switch.rail_lights
- delay: 00:00:10
- service: light.turn_on
entity_id: group.rgb_lr
data:
rgb_color: [255,255,255]
brightness_pct: 25
- delay:
seconds: 160