diff --git a/config/packages/disney.yaml b/config/packages/disney.yaml index c577398..4bab85a 100755 --- a/config/packages/disney.yaml +++ b/config/packages/disney.yaml @@ -8,8 +8,6 @@ input_boolean: happy_ever_after_show: name: Happy Ever After Show - # haunted_mansion: - # name: Haunted Mansion boo_to_you_show: name: Boo To You holiday_wishes: @@ -36,18 +34,146 @@ input_boolean: name: Disney Springs XMas sleepy_hollow_audiobook: name: Sleepy Hollow ReadAlong + pandora_area_loop: + name: Pandora Area Loop + resort_room_audio: + name: WDW Resort Room Audio + wishes_audio: + name: Wishes + mk_mainstreet_audio: + name: MK Mainstreet Audio + mk_fof_audio: + name: MK Festival of Fantasy Audio + mk_trolly_audio: + name: MK Trolly Audio + mk_tomorrowland_loop: + name: MK Tomorrowland Loop + mk_adventureland_loop: + name: MK Adventureland Loop + mk_frontierland_loop: + name: MK Frontierland Loop + mk_fantasyland_loop: + name: MK Fantasyland Loop + epcot_entrance_loop: + name: Epcot Entrance Loop + pixar_pier_loop: + name: Pixar Pier Loop + disney_random_area_loop: + name: Disney Random Area Loop + +group: + Disney Audio: + entities: + - input_boolean.happy_ever_after_show + - input_boolean.haunted_mansion + - input_boolean.boo_to_you_show + - input_boolean.holiday_wishes + - input_boolean.spaceship_earth_ride + - input_boolean.boo_to_you + - input_boolean.happy_ever_after + - input_boolean.mk_loop + - input_boolean.tiki_room_audio + - input_boolean.illuminations + - input_boolean.move_shake_dance + - input_boolean.welcome_show + - input_boolean.american_adventure + - input_boolean.disney_springs_xmas + - input_boolean.sleepy_hollow_audiobook + - input_boolean.this_is_halloween + - input_boolean.pandora_area_loop + - input_boolean.resort_room_audio + - input_boolean.wishes_audio + - input_boolean.mk_mainstreet_audio + - input_boolean.mk_fof_audio + - input_boolean.mk_trolly_audio + - input_boolean.mk_tomorrowland_loop + - input_boolean.mk_adventureland_loop + - input_boolean.mk_frontierland_loop + - input_boolean.mk_fantasyland_loop + - input_boolean.epcot_entrance_loop + - input_boolean.pixar_pier_loop + - input_boolean.disney_random_area_loop automation: + +# If Main audio is off, turn off input_booleans and notify via notifications. + - id: audio_is_disabled + alias: Audio is Disabled + initial_state: true + trigger: + - platform: state + entity_id: group.disney_audio + to: 'on' + condition: + - condition: state + entity_id: input_boolean.audible_notifications + state: 'off' + action: + - service: homeassistant.turn_off + entity_id: group.disney_audio + - service: persistent_notification.dismiss + data: + notification_id: "audioissue" + - service_template: persistent_notification.create + data_template: + notification_id: "audioissue" + message: "Disney audio functions are disabled because the audible notifications are off." + title: "Audio Not Available" + +# MK Mainstreet Audio - id: mk_loop_on alias: MK Loop On initial_state: true trigger: - platform: state - entity_id: input_boolean.mk_loop + entity_id: input_boolean.mk_mainstreet_audio to: 'on' action: - - service: script.turn_on - entity_id: script.mk_loop + - service: script.youtube_audio + data_template: + media: "http://192.168.7.40/audio/MK_MainStreet_Loop.mp3" + volume: .4 + - id: mk_loop_off + alias: MK Loop Off + initial_state: true + trigger: + - platform: state + entity_id: input_boolean.mk_mainstreet_audio + to: 'off' + action: + - service: media_player.media_stop + entity_id: media_player.ha_speaker + - service: script.turn_off + entity_id: script.youtube_audio + + +# Pixar Pier Audio + - id: pixar_pier_loop_on + alias: Pixar Pier Loop On + initial_state: true + trigger: + - platform: state + entity_id: input_boolean.pixar_pier_loop + to: 'on' + action: + - service: script.youtube_audio + data_template: + media: "https://www.youtube.com/watch?v=19-ooWL5R8w" + volume: .4 + - id: pixar_pier_loop_off + alias: Pixar Pier Loop Off + initial_state: true + trigger: + - platform: state + entity_id: input_boolean.pixar_pier_loop + to: 'off' + action: + - service: media_player.media_stop + entity_id: media_player.ha_speaker + - service: script.turn_off + entity_id: script.youtube_audio + +# Tiki Room - id: tiki_room_on alias: Tiki Room On initial_state: true @@ -56,8 +182,10 @@ automation: entity_id: input_boolean.tiki_room_audio to: 'on' action: - - service: script.turn_on - entity_id: script.tiki_room_audio + - service: script.youtube_audio + data_template: + media: "http://192.168.7.40/audio/tiki_room_audio.mp3" + volume: .5 - id: tiki_room_off alias: Tiki Room Off initial_state: true @@ -68,8 +196,10 @@ automation: action: - service: media_player.media_stop entity_id: media_player.ha_speaker - - service: script.turn_on - entity_id: script.kill_this_ride + - service: script.turn_off + entity_id: script.youtube_audio + +# Illuminations - id: illuminations_on alias: Illuminations On initial_state: true @@ -78,8 +208,10 @@ automation: entity_id: input_boolean.illuminations to: 'on' action: - - service: script.turn_on - entity_id: script.illuminations_audio + - service: script.youtube_audio + data_template: + media: "http://192.168.7.40/audio/illuminations.mp3" + volume: .5 - id: illuminations_off alias: Illuminations Off initial_state: true @@ -88,20 +220,13 @@ automation: entity_id: input_boolean.illuminations to: 'off' action: + - service: media_player.media_stop + entity_id: media_player.ha_speaker - service: script.turn_off - entity_id: script.illuminations_audio - - service: script.turn_on - entity_id: script.kill_this_ride - - id: mk_loop_off - alias: MK Loop Off - initial_state: true - trigger: - - platform: state - entity_id: input_boolean.mk_loop - to: 'off' - action: - - service: script.turn_on - entity_id: script.kill_this_ride + entity_id: script.youtube_audio + + +# Happily Ever After - id: happy_ever_after_show_on alias: Happy Ever After Show On initial_state: true @@ -110,8 +235,10 @@ automation: entity_id: input_boolean.happy_ever_after_show to: 'on' action: - - service: script.turn_on - entity_id: script.happy_ever_after_show + - service: script.youtube_audio + data_template: + media: "http://192.168.7.40/audio/Happily_Ever_After_Audio.mp3" + volume: .5 - id: happy_ever_after_show_off alias: Happy Ever After Show Off initial_state: true @@ -120,55 +247,36 @@ automation: entity_id: input_boolean.happy_ever_after_show to: 'off' action: - - service: script.turn_on - entity_id: script.kill_this_ride - service: media_player.media_stop entity_id: media_player.ha_speaker - - id: happy_ever_after_on - alias: Happy Ever After On - initial_state: true - trigger: - - platform: state - entity_id: input_boolean.happy_ever_after - to: 'on' - action: - - service: script.turn_on - entity_id: script.happy_ever_after - - id: happy_ever_after_off - alias: Happy Ever After Off - initial_state: true - trigger: - - platform: state - entity_id: input_boolean.happy_ever_after - to: 'off' - action: - - service: script.turn_on - entity_id: script.kill_this_ride - - service: media_player.media_stop - entity_id: media_player.ha_speaker - - - id: wishes_show_on - alias: Wishes Show On + - service: script.turn_off + entity_id: script.youtube_audio + +# Holiday Wishes + - id: holiday_wishes_show_on + alias: Hp;iday Wishes Show On initial_state: true trigger: - platform: state entity_id: input_boolean.holiday_wishes to: 'on' action: - - service: script.turn_on - entity_id: script.holiday_wishes - - id: wishes_show_off - alias: Wishes Show Off + - service: script.youtube_audio + data_template: + media: "http://192.168.7.40/audio/holidaywishes.mp3" + volume: .5 + - id: holiday_wishes_show_off + alias: Holiday Wishes Show Off initial_state: true trigger: - platform: state entity_id: input_boolean.holiday_wishes to: 'off' action: - - service: script.turn_on - entity_id: script.kill_this_ride - service: media_player.media_stop entity_id: media_player.ha_speaker + - service: script.turn_off + entity_id: script.youtube_audio - service: script.turn_off entity_id: script.holiday_wishes - service: script.turn_off @@ -176,17 +284,21 @@ automation: - service: script.turn_off entity_id: script.wishes_lights_all - - id: wishes_preshow_trigger - alias: Wishes Preshow Trigger - initial_state: true - trigger: - - platform: state - entity_id: input_boolean.holiday_wishes - to: 'on' - action: - - service: scene.turn_on - entity_id: scene.wishes_preshow - +# Holiday Wishes Preshow Trigger + # - id: wishes_preshow_trigger + # alias: Wishes Preshow Trigger + # initial_state: true + # trigger: + # - platform: state + # entity_id: input_boolean.holiday_wishes + # to: 'on' + # action: + # - service: script.youtube_audio + # data_template: + # media: "http://192.168.7.40/audio/holidaywishes.mp3" + # volume: .5 + +# Holiday Wishes Light Show Trigger - id: wishes_show_trigger alias: Wishes show Trigger initial_state: true @@ -204,58 +316,7 @@ automation: - service: script.turn_on entity_id: script.wishes_lights_all - - id: springs_xmas_on - alias: Springs Xmas On - initial_state: true - trigger: - - platform: state - entity_id: input_boolean.disney_springs_xmas - to: 'on' - action: - - service: script.turn_on - entity_id: script.holiday_wishes - - id: springs_xmas_off - alias: Springs Xmas Off - initial_state: true - trigger: - - platform: state - entity_id: input_boolean.disney_springs_xmas - to: 'off' - action: - - service: script.turn_on - entity_id: script.kill_this_ride - - service: media_player.media_stop - entity_id: media_player.ha_speaker - - service: script.turn_off - entity_id: script.disney_springs_xmas - - # ####################################### - # # 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 - # ####################################### - - +# Spaceship Earth Ride Audio - id: spaceship_earth_on alias: Spaceship Earth On initial_state: true @@ -264,8 +325,10 @@ automation: entity_id: input_boolean.spaceship_earth_ride to: 'on' action: - - service: script.turn_on - entity_id: script.spaceship_earth_ride + - service: script.youtube_audio + data_template: + media: "http://192.168.7.40/audio/spaceship_earth_ride.mp3" + volume: .6 - id: spaceship_earth_off alias: Spaceship Earth Off initial_state: true @@ -274,10 +337,12 @@ automation: entity_id: input_boolean.spaceship_earth_ride to: 'off' action: - - service: script.turn_on - entity_id: script.kill_this_ride - service: media_player.media_stop entity_id: media_player.ha_speaker + - service: script.turn_off + entity_id: script.youtube_audio + +# Boo to You Parade - id: boo_to_you_show_on alias: Boo To You Show On initial_state: true @@ -286,8 +351,10 @@ automation: entity_id: input_boolean.boo_to_you_show to: 'on' action: - - service: script.turn_on - entity_id: script.boo_to_you_show + - service: script.youtube_audio + data_template: + media: "http://192.168.7.40/audio/boo_to_you_audio.mp3" + volume: .5 - id: boo_to_you_show_off alias: Boo To You Show Off initial_state: true @@ -296,33 +363,12 @@ automation: entity_id: input_boolean.boo_to_you_show to: 'off' action: - - service: script.turn_on - entity_id: script.kill_this_ride - service: media_player.media_stop entity_id: media_player.ha_speaker - - id: boo_to_you_on - alias: Boo To You On - initial_state: true - trigger: - - platform: state - entity_id: input_boolean.boo_to_you - to: 'on' - action: - - service: script.turn_on - entity_id: script.boo_to_you - - id: boo_to_you_off - alias: Boo To You Off - initial_state: true - trigger: - - platform: state - entity_id: input_boolean.boo_to_you - to: 'off' - action: - - service: script.turn_on - entity_id: script.kill_this_ride - - service: media_player.media_stop - entity_id: media_player.ha_speaker - + - service: script.turn_off + entity_id: script.youtube_audio + +# Holiday Wishes - id: holiday_wishes_on alias: Holiday Wishes On initial_state: true @@ -331,8 +377,10 @@ automation: entity_id: input_boolean.holiday_wishes to: 'on' action: - - service: script.turn_on - entity_id: script.holiday_wishes + - service: script.youtube_audio + data_template: + media: "http://192.168.7.40/audio/holidaywishes.mp3" + volume: .5 - id: holiday_wishes_off alias: Holiday Wishes Off initial_state: true @@ -341,11 +389,12 @@ automation: entity_id: input_boolean.holiday_wishes to: 'off' action: - - service: script.turn_on - entity_id: script.kill_this_ride - service: media_player.media_stop entity_id: media_player.ha_speaker + - service: script.turn_off + entity_id: script.youtube_audio +# Magic Kingdom Welcome Show - id: welcome_show_on alias: Welcome Show On initial_state: true @@ -354,8 +403,10 @@ automation: entity_id: input_boolean.welcome_show to: 'on' action: - - service: script.turn_on - entity_id: script.welcome_show_audio + - service: script.youtube_audio + data_template: + media: "http://192.168.7.40/audio/ML_Welcome_Show.mp3" + volume: .5 - id: welcome_show_off alias: Welcome Show Off initial_state: true @@ -364,11 +415,92 @@ automation: entity_id: input_boolean.welcome_show to: 'off' action: - - service: script.turn_on - entity_id: script.kill_this_ride - service: media_player.media_stop entity_id: media_player.ha_speaker + - service: script.turn_off + entity_id: script.youtube_audio +# MK Trolly Show + - id: trolly_audio_show_on + alias: Trolly Audio Show On + initial_state: true + trigger: + - platform: state + entity_id: input_boolean.mk_trolly_audio + to: 'on' + action: + - service: script.youtube_audio + data_template: + media: "https://www.youtube.com/watch?v=Ki-dZlHtdBk" + volume: .5 + - id: trolly_audio_show_off + alias: Trolly Audio Show Off + initial_state: true + trigger: + - platform: state + entity_id: input_boolean.mk_trolly_audio + to: 'off' + action: + - service: media_player.media_stop + entity_id: media_player.ha_speaker + - service: script.turn_off + entity_id: script.youtube_audio + +# Pandora Ambient Audio + - id: pandora_audio_on + alias: Pandora Audio On + initial_state: true + trigger: + - platform: state + entity_id: input_boolean.pandora_area_loop + to: 'on' + action: + - service: script.youtube_audio + data_template: + media: "http://192.168.7.40/audio/Pandora_Area_Loop.mp3" + volume: .4 + - id: pandora_audio_off + alias: Pandora Audio Off + initial_state: true + trigger: + - platform: state + entity_id: input_boolean.pandora_area_loop + to: 'off' + action: + - service: media_player.media_stop + entity_id: media_player.ha_speaker + - service: script.turn_off + entity_id: script.youtube_audio + + +# Resort Room Audio + - id: resort_room_audio_on + alias: Resort Room Audio On + initial_state: true + trigger: + - platform: state + entity_id: input_boolean.resort_room_audio + to: 'on' + action: + - service: script.youtube_audio + data_template: + media: "http://192.168.7.40/audio/WDW_Resort_TV.mp3" + volume: .4 + - id: resort_room_audio_off + alias: Resort Room Off + initial_state: true + trigger: + - platform: state + entity_id: input_boolean.resort_room_audio + to: 'off' + action: + - service: media_player.media_stop + entity_id: media_player.ha_speaker + - service: script.turn_off + entity_id: script.youtube_audio + + +# American Adventure - id: american_adventure_on alias: American Adventure On initial_state: true @@ -377,8 +509,10 @@ automation: entity_id: input_boolean.american_adventure to: 'on' action: - - service: script.turn_on - entity_id: script.american_adventure + - service: script.youtube_audio + data_template: + media: "http://192.168.7.40/audio/The_American_Adventure.mp3" + volume: .7 - id: american_adventure_off alias: American Adventure Off initial_state: true @@ -387,34 +521,12 @@ automation: entity_id: input_boolean.american_adventure to: 'off' action: - - service: script.turn_on - entity_id: script.kill_this_ride - - service: media_player.media_stop - entity_id: media_player.ha_speaker - - - id: springs_christmas_on - alias: Disney Springs XMas On - initial_state: true - trigger: - - platform: state - entity_id: input_boolean.disney_springs_xmas - to: 'on' - action: - - service: script.turn_on - entity_id: script.disney_springs_xmas - - id: springs_christmas_off - alias: Disney Springs XMas Off - initial_state: true - trigger: - - platform: state - entity_id: input_boolean.disney_springs_xmas - to: 'off' - action: - - service: script.turn_on - entity_id: script.kill_this_ride - service: media_player.media_stop entity_id: media_player.ha_speaker + - service: script.turn_off + entity_id: script.youtube_audio +# Sleepy Hollow Story Readalong - id: sleepy_hollow_readalong_on alias: Sleepy Hollow Readalong On initial_state: true @@ -423,8 +535,10 @@ automation: entity_id: input_boolean.sleepy_hollow_audiobook to: 'on' action: - - service: script.turn_on - entity_id: script.sleepy_hollow_readalong + - service: script.youtube_audio + data_template: + media: "http://192.168.7.40/audio/thelegendofsleepyhallow-readalong.mp3" + volume: .4 - id: sleepy_hollow_readalong_off alias: Sleepy Hollow Readalong Off initial_state: true @@ -433,11 +547,12 @@ automation: entity_id: input_boolean.sleepy_hollow_audiobook to: 'off' action: - - service: script.turn_on - entity_id: script.kill_this_ride - service: media_player.media_stop entity_id: media_player.ha_speaker + - service: script.turn_off + entity_id: script.youtube_audio +# Move It Shake It - id: move_dance_on alias: Move It Shake It On initial_state: true @@ -446,8 +561,10 @@ automation: entity_id: input_boolean.move_shake_dance to: 'on' action: - - service: script.turn_on - entity_id: script.move_it_shake_it + - service: script.youtube_audio + data_template: + media: "http://192.168.7.40/audio/move_it_shake_dance_audio.mp3" + volume: .6 - id: move_dance_off alias: Move It Shake It Off initial_state: true @@ -456,55 +573,33 @@ automation: entity_id: input_boolean.move_shake_dance to: 'off' action: - - service: script.turn_on - entity_id: script.kill_this_ride - service: media_player.media_stop entity_id: media_player.ha_speaker + - service: script.turn_off + entity_id: script.youtube_audio - - - id: kill_show - alias: Kill Show +# Random Disney Area Loop + - id: random_disney_area_on + alias: Random Disney Area On + initial_state: true trigger: - platform: state - entity_id: - - script.haunted_mansion_show_sequence - - script.haunted_mansion_start - - script.illuminations_show - - script.boo_to_you_show - - script.happy_ever_after_show - - script.tiki_room_audio - - script.mk_loop - - script.spaceship_earth_ride - - script.welcome_show_audio - - script.move_it_shake_it - - script.holiday_wishes_start - - script.holiday_wishes - - script.american_adventure - - script.disney_springs_xmas - - script.this_is_halloween - - script.sleepy_hollow_readalong - from: 'on' + entity_id: input_boolean.disney_random_area_loop + to: 'on' + action: + - service: script.disney_park_audio + - id: random_disney_area_off + alias: Random Disney Area Off + initial_state: true + trigger: + - platform: state + entity_id: input_boolean.disney_random_area_loop to: 'off' action: - service: media_player.media_stop entity_id: media_player.ha_speaker - - service: scene.turn_on - entity_id: scene.normal_livingroom_lighting - - service: script.reset_show_inputs - initial_state: true - - - id: house_lights_up - alias: House Lights Up - trigger: - - platform: state - entity_id: - - binary_sensor.vlc_player - from: 'on' - to: 'off' - action: - - service: script.kill_this_ride - initial_state: true - + - service: script.turn_off + entity_id: script.youtube_audio script: # kill_hurry_back: @@ -534,12 +629,7 @@ script: - service: scene.turn_on data: entity_id: scene.haunted_preshow - # house_lights_on: - # sequence: - # - delay: 00:04:20 - # - service: scene.turn_on - # data: - # entity_id: scene.normal_livingroom_lighting + haunted_lights_out: sequence: - delay: 00:02:15 @@ -577,279 +667,18 @@ script: entity_id: sensor.family_status state: Home - service: shell_command.haunted_mansion_ride - - mk_loop: - sequence: - - condition: state - entity_id: input_boolean.audible_notifications - state: 'on' - - condition: state - entity_id: sensor.family_status - state: Home - - service: media_player.turn_on - entity_id: media_player.ha_speaker - - service: media_player.volume_set - data_template: - entity_id: media_player.ha_speaker - volume_level: .5 - - service: media_player.play_media - entity_id: media_player.ha_speaker - data: - media_content_id: http://192.168.7.40/audio/magic_kingdom.mp3 - media_content_type: "music" - + +# Big Kill show script - This is my E-Stop kill_this_ride: sequence: - service: media_player.media_stop entity_id: media_player.ha_speaker - # - service: shell_command.alarm_off - # - service: shell_command.vlc_off - service: script.turn_off - data: - entity_id: script.haunted_preshow + entity_id: script.youtube_audio - service: script.turn_off - data: - entity_id: script.haunted_lights_out - - service: script.turn_off - data: - entity_id: script.haunted_lights_on - - service: script.turn_off - data: - entity_id: script.illuminations_preshow - - service: script.turn_off - data: - entity_id: script.illuminations_lights_out - - service: scene.turn_on - data: - entity_id: scene.normal_livingroom_lighting - - service: input_boolean.turn_off - entity_id: input_boolean.illuminations - - service: script.chromecast_media_stop - - service: script.turn_off - entity_id: script.illuminations_preshow - - service: script.turn_off - entity_id: script.illuminations_lights_out - - service: script.turn_off - entity_id: script.illuminations_single_light - - service: script.turn_off - entity_id: script.illuminations_dual_light - - service: script.turn_off - entity_id: script.illuminations_triple_light - - service: script.turn_off - entity_id: script.illuminations_show - - service: script.turn_off - entity_id: script.haunted_mansion_start - - service: script.turn_off - entity_id: script.welcome_show_audio - - service: script.turn_off - entity_id: script.move_it_shake_it - - service: script.turn_off - entity_id: script.holiday_wishes - - service: script.turn_off - entity_id: script.american_adventure - - service: script.turn_off - entity_id: script.disney_springs_xmas - - service: script.turn_off - entity_id: script.this_is_halloween - - service: script.turn_off - entity_id: script.sleepy_hollow_readalong - # - service: shell_command.normal_vol - # - service: switch.turn_off - # entity_id: switch.ha_speaker - - service: script.reset_show_inputs + entity_id: script.youtube_audio + - reset_show_inputs: - sequence: - - service: input_boolean.turn_off - entity_id: input_boolean.happy_ever_after_show - - service: input_boolean.turn_off - entity_id: input_boolean.haunted_mansion - - service: input_boolean.turn_off - entity_id: input_boolean.boo_to_you_show - - service: input_boolean.turn_off - entity_id: input_boolean.holiday_wishes - - service: input_boolean.turn_off - entity_id: input_boolean.spaceship_earth_ride - - service: input_boolean.turn_off - entity_id: input_boolean.boo_to_you - - service: input_boolean.turn_off - entity_id: input_boolean.happy_ever_after - - service: input_boolean.turn_off - entity_id: input_boolean.mk_loop - - service: input_boolean.turn_off - entity_id: input_boolean.tiki_room_audio - - service: input_boolean.turn_off - entity_id: input_boolean.illuminations - - service: input_boolean.turn_off - entity_id: input_boolean.move_shake_dance - - service: input_boolean.turn_off - entity_id: input_boolean.welcome_show - - service: input_boolean.turn_off - entity_id: input_boolean.american_adventure - - service: input_boolean.turn_off - entity_id: input_boolean.disney_springs_xmas - - service: input_boolean.turn_off - entity_id: input_boolean.sleepy_hollow_audiobook - - service: input_boolean.turn_off - entity_id: input_boolean.this_is_halloween - - - move_it_shake_it: - sequence: - - condition: state - entity_id: input_boolean.audible_notifications - state: 'on' - - condition: state - entity_id: sensor.family_status - state: Home - # - service: shell_command.dance_it - - service: media_player.turn_on - entity_id: media_player.ha_speaker - - service: media_player.volume_set - data_template: - entity_id: media_player.ha_speaker - volume_level: .7 - - service: media_player.play_media - entity_id: media_player.ha_speaker - data: - media_content_id: http://192.168.7.40/audio/move_it_shake_dance_audio.mp3 - media_content_type: "music" - american_adventure: - sequence: - - condition: state - entity_id: input_boolean.audible_notifications - state: 'on' - - condition: state - entity_id: sensor.family_status - state: Home - - service: media_player.turn_on - entity_id: media_player.ha_speaker - - service: media_player.volume_set - data_template: - entity_id: media_player.ha_speaker - volume_level: .7 - - service: media_player.play_media - entity_id: media_player.ha_speaker - data: - media_content_id: http://192.168.7.40/audio/The_American_Adventure.mp3 - media_content_type: "music" - - - disney_springs_xmas: - sequence: - - condition: state - entity_id: input_boolean.audible_notifications - state: 'on' - - condition: state - entity_id: sensor.family_status - state: Home - - service: media_player.turn_on - entity_id: media_player.ha_speaker - - service: media_player.volume_set - data_template: - entity_id: media_player.ha_speaker - volume_level: > - .3 - - service: media_player.play_media - entity_id: media_player.ha_speaker - data: - media_content_id: http://192.168.7.40/audio/Disney_Springs_Xmas_Loop.mp3 - media_content_type: "music" - sleepy_hollow_readalong: - sequence: - - condition: state - entity_id: input_boolean.audible_notifications - state: 'on' - - condition: state - entity_id: sensor.family_status - state: Home - - service: shell_command.sleepy_hollow_audiobook - spaceship_earth_ride: - sequence: - - condition: state - entity_id: input_boolean.audible_notifications - state: 'on' - - condition: state - entity_id: sensor.family_status - state: Home - # - service: shell_command.spaceship_earth_ride - - service: media_player.turn_on - entity_id: media_player.ha_speaker - - service: media_player.volume_set - data_template: - entity_id: media_player.ha_speaker - volume_level: .7 - - service: media_player.play_media - entity_id: media_player.ha_speaker - data: - media_content_id: http://192.168.7.40/audio/spaceship_earth_ride.mp3 - media_content_type: "music" - welcome_to_magic_kingdom: - sequence: - - condition: state - entity_id: input_boolean.audible_notifications - state: 'on' - - condition: state - entity_id: sensor.family_status - state: Home - - service: media_player.turn_on - entity_id: media_player.ha_speaker - - service: media_player.volume_set - data_template: - entity_id: media_player.ha_speaker - volume_level: .7 - - service: media_player.play_media - entity_id: media_player.ha_speaker - data: - media_content_id: http://192.168.7.40/audio/welcome_show.mp3 - media_content_type: "music" - monorail_waiting: - sequence: - - condition: state - entity_id: input_boolean.audible_notifications - state: 'on' - - condition: state - entity_id: sensor.family_status - state: Home - - service: shell_command.monorail_waiting - monorail_mk: - sequence: - - condition: state - entity_id: input_boolean.audible_notifications - state: 'on' - - condition: state - entity_id: sensor.family_status - state: Home - - service: shell_command.monorail_mk - monorail_resort: - sequence: - - condition: state - entity_id: input_boolean.audible_notifications - state: 'on' - - condition: state - entity_id: group.family - state: 'on' - - service: shell_command.monorail_resort - welcome_show_audio: - sequence: - - condition: state - entity_id: input_boolean.audible_notifications - state: 'on' - - condition: state - entity_id: sensor.family_status - state: Home - # - service: shell_command.welcome_show - - service: media_player.turn_on - entity_id: media_player.ha_speaker - - service: media_player.volume_set - data_template: - entity_id: media_player.ha_speaker - volume_level: .7 - - service: media_player.play_media - entity_id: media_player.ha_speaker - data: - media_content_id: http://192.168.7.40/audio/welcome_show.mp3 - media_content_type: "music" holiday_wishes_preshow: sequence: @@ -867,21 +696,6 @@ script: media_content_id: http://192.168.7.40/audio/wishes_5_min.mp3 media_content_type: "music" - holiday_wishes: - sequence: - - condition: state - entity_id: input_boolean.audible_notifications - state: 'on' - - condition: state - entity_id: sensor.family_status - state: Home - - service: media_player.turn_on - entity_id: media_player.ha_speaker - - service: media_player.play_media - entity_id: media_player.ha_speaker - data: - media_content_id: http://192.168.7.40/audio/holidaywishes.mp3 - media_content_type: "music" wishes_lights_on: sequence: @@ -905,100 +719,8 @@ script: - service: scene.turn_on entity_id: scene.tower_lamp_red - boo_to_you_show: - sequence: - - condition: state - entity_id: input_boolean.audible_notifications - state: 'on' - - condition: state - entity_id: sensor.family_status - state: Home - # - service: shell_command.boo_to_you - - service: media_player.turn_on - entity_id: media_player.ha_speaker - - service: media_player.play_media - entity_id: media_player.ha_speaker - data: - media_content_id: http://192.168.7.40/audio/boo_to_you_audio.mp3 - media_content_type: "music" - happy_ever_after_show: - sequence: - - condition: state - entity_id: input_boolean.audible_notifications - state: 'on' - - condition: state - entity_id: sensor.family_status - state: Home - - service: media_player.turn_on - entity_id: media_player.ha_speaker - - service: media_player.volume_set - data_template: - entity_id: media_player.ha_speaker - volume_level: .5 - - service: media_player.play_media - entity_id: media_player.ha_speaker - data: - media_content_id: http://192.168.7.40/audio/Happily_Ever_After_Audio.mp3 - media_content_type: "music" - # boo_to_you: - # sequence: - # - condition: state - # entity_id: input_boolean.audible_notifications - # state: 'on' - # - condition: state - # entity_id: sensor.family_status - # state: Home - # #- service: shell_command.boo_to_you - # - service: media_player.turn_on - # entity_id: media_player.ha_speaker - # - service: media_player.play_media - # entity_id: media_player.ha_speaker - # data: - # media_content_id: http://192.168.7.40/audio/boo_to_you_audio.mp3 - # media_content_type: "music" - tiki_room_audio: - sequence: - - condition: state - entity_id: input_boolean.audible_notifications - state: 'on' - - condition: state - entity_id: sensor.family_status - state: Home - # - service: shell_command.tiki_vol - # - service: shell_command.tiki_room_audio - - service: media_player.turn_on - entity_id: media_player.ha_speaker - - service: media_player.turn_on - entity_id: media_player.ha_speaker - - service: media_player.volume_set - data_template: - entity_id: media_player.ha_speaker - volume_level: .5 - - service: media_player.play_media - entity_id: media_player.ha_speaker - data: - media_content_id: http://192.168.7.40/audio/tiki_room_audio.mp3 - media_content_type: "music" - # happy_ever_after: - # sequence: - # - condition: state - # entity_id: input_boolean.audible_notifications - # state: 'on' - # - condition: state - # entity_id: sensor.family_status - # state: Home - # #- service: shell_command.happily_ever_after - # - service: media_player.turn_on - # entity_id: media_player.ha_speaker - # - service: media_player.volume_set - # data_template: - # entity_id: media_player.ha_speaker - # volume_level: .5 - # - service: media_player.play_media - # entity_id: media_player.ha_speaker - # data: - # media_content_id: http://192.168.7.40/audio/Happily_Ever_After_Audio.mp3 - # media_content_type: "music" + + illuminations_lights_out: sequence: - delay: 00:00:57 @@ -1034,63 +756,8 @@ script: - service: scene.turn_on data: entity_id: scene.normal_livingroom_lighting - illuminations_audio: - sequence: - - condition: state - entity_id: input_boolean.audible_notifications - state: 'on' - - condition: state - entity_id: sensor.family_status - state: Home - # - service: shell_command.illuminations_audio - - service: media_player.turn_on - entity_id: media_player.ha_speaker - - service: media_player.volume_set - data_template: - entity_id: media_player.ha_speaker - volume_level: .5 - - service: media_player.play_media - entity_id: media_player.ha_speaker - data: - media_content_id: http://192.168.7.40/audio/illuminations.mp3 - media_content_type: "music" - - service: script.turn_on - entity_id: script.illuminations_preshow - - service: script.turn_on - entity_id: script.illuminations_lights_out - - service: script.turn_on - entity_id: script.illuminations_single_light - - service: script.turn_on - entity_id: script.illuminations_dual_light - - service: script.turn_on - entity_id: script.illuminations_triple_light - - service: script.turn_on - entity_id: script.illuminations_show - this_is_halloween: - sequence: - - condition: state - entity_id: input_boolean.audible_notifications - state: 'on' - - condition: state - entity_id: sensor.family_status - state: Home - # - service: shell_command.this_is_halloween - # - service: switch.turn_on - # entity_id: switch.ha_speaker - - service: media_player.turn_on - entity_id: media_player.ha_speaker - - service: media_player.volume_set - data_template: - entity_id: media_player.ha_speaker - volume_level: > - .5 - - service: media_player.play_media - entity_id: media_player.ha_speaker - data: - media_content_id: http://192.168.7.40/audio/This_is_Halloween.mp3 - media_content_type: "music" - +# Welcome Foolish Mortals to the Haunted Mansion haunted_guest_welcome: sequence: - condition: state @@ -1101,13 +768,46 @@ script: state: Home - service: media_player.turn_on entity_id: media_player.ha_speaker - - service: media_player.volume_set + - service: script.youtube_audio data_template: - entity_id: media_player.ha_speaker - volume_level: > - .5 - - service: media_player.play_media - entity_id: media_player.ha_speaker - data: - media_content_id: http://192.168.7.40/audio/haunted_guest_welcome.mp3 - media_content_type: "music" \ No newline at end of file + media: "http://192.168.7.40/audio/haunted_guest_welcome.mp3" + volume: .5 + +# Random Disney Park Music + disney_park_audio: + sequence: + - service: script.youtube_audio + data_template: + volume: .4 + media: > + {{- ["http://192.168.7.40/audio/Liberty_square_audio.mp3", + "http://192.168.7.40/audio/adventureland_loop.mp3", + "http://192.168.7.40/audio/be_our_guest.mp3", + "http://192.168.7.40/audio/epcot_entrance_loop.mp3", + "http://192.168.7.40/audio/frontierland_loop.mp3", + "http://192.168.7.40/audio/tomorrowland_loop.mp3", + "https://www.youtube.com/watch?v=IyWlxq2kOvw", + "https://www.youtube.com/watch?v=ngRdzcvr0rg", + "https://youtu.be/UW9WKIvF9y4", + "https://www.youtube.com/watch?v=31YJPz7gZ4c", + "https://www.youtube.com/watch?v=EPO3S649TNs", + "https://www.youtube.com/watch?v=jOfcg9WYkGw", + "https://www.youtube.com/watch?v=tBm73YjJB0o", + "https://www.youtube.com/watch?v=Jmyspnk8DZ8", + "https://www.youtube.com/watch?v=joOLgTNMuVU", + "https://www.youtube.com/watch?v=19-ooWL5R8w"] | random -}} + +# Dapper Dan Music + dapper_dan_audio: + sequence: + - service: script.youtube_audio + data_template: + volume: .4 + media: > + {{- [ + "https://www.youtube.com/watch?v=ELjBO21QaI0", + "https://www.youtube.com/watch?v=sQqz_6dkwKE", + "https://www.youtube.com/watch?v=4uqapvdZLlc", + "https://www.youtube.com/watch?v=NgWemGSpQDc", + "https://www.youtube.com/watch?v=bCyCWP311pE" + ] | random -}} \ No newline at end of file