From dbcfee9601a3c68ac887823e9a47c44f737e33e4 Mon Sep 17 00:00:00 2001 From: Jeffrey Stone Date: Tue, 17 Mar 2020 22:52:15 -0400 Subject: [PATCH] Moving Haunted Mansion show to new source due to hass-core migration --- config/packages/haunted_mansion_show.yaml | 32 +++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/config/packages/haunted_mansion_show.yaml b/config/packages/haunted_mansion_show.yaml index 4dbf904..01a779e 100755 --- a/config/packages/haunted_mansion_show.yaml +++ b/config/packages/haunted_mansion_show.yaml @@ -33,6 +33,24 @@ automation: - service: script.kill_this_ride - service: media_player.media_stop entity_id: media_player.ha_speaker + - service: script.turn_off + entity_id: script.haunted_mansion_lights + + - id: haunted_mansion_show_trigger + alias: Haunted Mansion show Trigger + initial_state: true + trigger: + - platform: state + entity_id: media_player.theater + to: 'playing' + condition: + - condition: state + entity_id: input_boolean.haunted_mansion + state: 'on' + action: + - service: script.turn_on + entity_id: script.haunted_mansion_lights + script: haunted_mansion_start: @@ -43,8 +61,18 @@ script: - condition: state entity_id: sensor.family_status state: Home - - service: shell_command.normal_vol - - service: shell_command.haunted_mansion_preshow_full + - service: media_player.volume_set + data_template: + entity_id: media_player.theater + volume_level: .5 + - service: media_player.play_media + entity_id: media_player.theater + data: + media_content_id: http://192.168.7.40/audio/haunted_mansion_preshow_full.mp3 + media_content_type: "music" + + haunted_mansion_lights: + sequence: - service: light.turn_on entity_id: group.rgb_lr data: