From 61cdef633b90d97c3a60f2dcfb2f2708b30ac223 Mon Sep 17 00:00:00 2001 From: Jeffrey Stone Date: Wed, 30 Oct 2019 23:53:46 -0400 Subject: [PATCH] Moving haunted mansion stuff to its own package --- packages/disney.yaml | 148 ++++++++++++++--------------- packages/haunted_mansion_show.yaml | 83 ++++++++++++++++ 2 files changed, 157 insertions(+), 74 deletions(-) create mode 100644 packages/haunted_mansion_show.yaml diff --git a/packages/disney.yaml b/packages/disney.yaml index 354b258..dc6a5e8 100755 --- a/packages/disney.yaml +++ b/packages/disney.yaml @@ -8,8 +8,8 @@ input_boolean: happy_ever_after_show: name: Happy Ever After Show - haunted_mansion: - name: Haunted Mansion + # haunted_mansion: + # name: Haunted Mansion boo_to_you_show: name: Boo To You holiday_wishes: @@ -148,31 +148,31 @@ automation: entity_id: media_player.ha_speaker - ####################################### - # Turn on / off Haunted Mansion show + # ####################################### + # # Turn on / off Haunted Mansion show - - 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 - - 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 - ####################################### + # - 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 + # - 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 + # ####################################### - id: spaceship_earth_on @@ -472,54 +472,54 @@ script: data: entity_id: scene.haunted_preshow - ############################################## - # Haunted Mansion Show - 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 -############################################### +# ############################################## +# # Haunted Mansion Show +# 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 +# ############################################### kill_haunted_mansion: sequence: diff --git a/packages/haunted_mansion_show.yaml b/packages/haunted_mansion_show.yaml new file mode 100644 index 0000000..4dbf904 --- /dev/null +++ b/packages/haunted_mansion_show.yaml @@ -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 +