Moving from shell commands to media_player for audio

This commit is contained in:
Jeffrey Stone 2019-07-11 07:42:32 -04:00
parent c27f1d7767
commit 6cc011e6ef
1 changed files with 94 additions and 31 deletions

View File

@ -1,6 +1,6 @@
############################################################################### ###############################################################################
# @author : Jeffrey Stone # @author : Jeffrey Stone
# @date : 02/19/2019 # @date : 03/13/2019
# @package : Disney # @package : Disney
# @description : A little Imaginering to bring disney into our home. # @description : A little Imaginering to bring disney into our home.
############################################################################### ###############################################################################
@ -112,6 +112,8 @@ automation:
action: action:
- service: script.turn_on - service: script.turn_on
entity_id: script.kill_this_ride entity_id: script.kill_this_ride
- service: media_player.media_stop
entity_id: media_player.hass_speaker
- id: happy_ever_after_on - id: happy_ever_after_on
alias: Happy Ever After On alias: Happy Ever After On
initial_state: true initial_state: true
@ -122,7 +124,7 @@ automation:
action: action:
- service: script.turn_on - service: script.turn_on
entity_id: script.happy_ever_after entity_id: script.happy_ever_after
- id: happy_ever_after_on - id: happy_ever_after_off
alias: Happy Ever After Off alias: Happy Ever After Off
initial_state: true initial_state: true
trigger: trigger:
@ -132,6 +134,8 @@ automation:
action: action:
- service: script.turn_on - service: script.turn_on
entity_id: script.kill_this_ride entity_id: script.kill_this_ride
- service: media_player.media_stop
entity_id: media_player.hass_speaker
- id: haunted_mansion_on - id: haunted_mansion_on
alias: Haunted Mansion On alias: Haunted Mansion On
initial_state: true initial_state: true
@ -150,8 +154,9 @@ automation:
entity_id: input_boolean.haunted_mansion entity_id: input_boolean.haunted_mansion
to: 'off' to: 'off'
action: action:
- service: script.turn_on - service: script.kill_this_ride
entity_id: script.kill_this_ride - service: media_player.media_stop
entity_id: media_player.hass_speaker
- id: spaceship_earth_on - id: spaceship_earth_on
alias: Spaceship Earth On alias: Spaceship Earth On
initial_state: true initial_state: true
@ -172,6 +177,8 @@ automation:
action: action:
- service: script.turn_on - service: script.turn_on
entity_id: script.kill_this_ride entity_id: script.kill_this_ride
- service: media_player.media_stop
entity_id: media_player.hass_speaker
- id: boo_to_you_show_on - id: boo_to_you_show_on
alias: Boo To You Show On alias: Boo To You Show On
initial_state: true initial_state: true
@ -192,6 +199,8 @@ automation:
action: action:
- service: script.turn_on - service: script.turn_on
entity_id: script.kill_this_ride entity_id: script.kill_this_ride
- service: media_player.media_stop
entity_id: media_player.hass_speaker
- id: boo_to_you_on - id: boo_to_you_on
alias: Boo To You On alias: Boo To You On
initial_state: true initial_state: true
@ -212,6 +221,8 @@ automation:
action: action:
- service: script.turn_on - service: script.turn_on
entity_id: script.kill_this_ride entity_id: script.kill_this_ride
- service: media_player.media_stop
entity_id: media_player.hass_speaker
- id: holiday_wisher_on - id: holiday_wisher_on
alias: Holiday Wishes On alias: Holiday Wishes On
initial_state: true initial_state: true
@ -232,6 +243,8 @@ automation:
action: action:
- service: script.turn_on - service: script.turn_on
entity_id: script.kill_this_ride entity_id: script.kill_this_ride
- service: media_player.media_stop
entity_id: media_player.hass_speaker
script: script:
kill_hurry_back: kill_hurry_back:
@ -257,25 +270,25 @@ script:
- service: shell_command.haunted_mansion_hurry_back_full - service: shell_command.haunted_mansion_hurry_back_full
haunted_lights_on: haunted_lights_on:
sequence: sequence:
- delay: 00:02:16 - delay: 00:02:25
- service: scene.turn_on - service: scene.turn_on
data: data:
entity_id: scene.haunted_preshow entity_id: scene.haunted_preshow
house_lights_on: # house_lights_on:
sequence: # sequence:
- delay: 00:04:12 # - delay: 00:04:20
- service: scene.turn_on # - service: scene.turn_on
data: # data:
entity_id: scene.normal_livingroom_lighting # entity_id: scene.normal_livingroom_lighting
haunted_lights_out: haunted_lights_out:
sequence: sequence:
- delay: 00:02:05 - delay: 00:02:15
- service: scene.turn_on - service: scene.turn_on
data: data:
entity_id: scene.haunted_lights_out entity_id: scene.haunted_lights_out
haunted_preshow: haunted_preshow:
sequence: sequence:
- delay: 00:01:05 - delay: 00:01:15
- service: scene.turn_on - service: scene.turn_on
data: data:
entity_id: scene.haunted_preshow entity_id: scene.haunted_preshow
@ -287,7 +300,12 @@ script:
- condition: state - condition: state
entity_id: sensor.family_status entity_id: sensor.family_status
state: Home state: Home
- service: shell_command.haunted_mansion_preshow_full #- service: shell_command.haunted_mansion_preshow_full
- service: media_player.play_media
entity_id: media_player.hass_speaker
data:
media_content_id: /media/audio/haunted_mansion_preshow_full.mp3
media_content_type: "music"
- data: - data:
entity_id: script.haunted_preshow entity_id: script.haunted_preshow
service: script.turn_on service: script.turn_on
@ -385,7 +403,12 @@ script:
- condition: state - condition: state
entity_id: sensor.family_status entity_id: sensor.family_status
state: Home state: Home
- service: shell_command.dance_it #- service: shell_command.dance_it
- service: media_player.play_media
entity_id: media_player.hass_speaker
data:
media_content_id: /media/audio/move_it_shake_dance_audio.mp3
media_content_type: "music"
spaceship_earth_ride: spaceship_earth_ride:
sequence: sequence:
- condition: state - condition: state
@ -394,7 +417,12 @@ script:
- condition: state - condition: state
entity_id: sensor.family_status entity_id: sensor.family_status
state: Home state: Home
- service: shell_command.spaceship_earth_ride #- service: shell_command.spaceship_earth_ride
- service: media_player.play_media
entity_id: media_player.hass_speaker
data:
media_content_id: media/audio/spaceship_earth_ride.mp3
media_content_type: "music"
welcome_to_magic_kingdom: welcome_to_magic_kingdom:
sequence: sequence:
- condition: state - condition: state
@ -439,7 +467,12 @@ script:
- condition: state - condition: state
entity_id: sensor.family_status entity_id: sensor.family_status
state: Home state: Home
- service: shell_command.welcome_show_crowd #- service: shell_command.welcome_show_crowd
- service: media_player.play_media
entity_id: media_player.hass_speaker
data:
media_content_id: /media/audio/welcome_show_crowd.mp3
media_content_type: "music"
holiday_wishes_start: holiday_wishes_start:
sequence: sequence:
- condition: state - condition: state
@ -458,16 +491,26 @@ script:
- condition: state - condition: state
entity_id: sensor.family_status entity_id: sensor.family_status
state: Home state: Home
- service: shell_command.holiday_wishes #- service: shell_command.holiday_wishes
- service: media_player.play_media
entity_id: media_player.hass_speaker
data:
media_content_id: /media/audio/wishes_5_min.mp3
media_content_type: "music"
boo_to_you_show: boo_to_you_show:
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: group.family entity_id: sensor.family_status
state: 'on' state: Home
- service: shell_command.boo_to_you #- service: shell_command.boo_to_you
- service: media_player.play_media
entity_id: media_player.hass_speaker
data:
media_content_id: /media/audio/boo_to_you_audio.mp3
media_content_type: "music"
happy_ever_after_show: happy_ever_after_show:
sequence: sequence:
- condition: state - condition: state
@ -476,7 +519,12 @@ script:
- condition: state - condition: state
entity_id: sensor.family_status entity_id: sensor.family_status
state: Home state: Home
- service: shell_command.happily_ever_after #- service: shell_command.happily_ever_after
- service: media_player.play_media
entity_id: media_player.hass_speaker
data:
media_content_id: /media/audio/Happily_Ever_After_Audio.mp3
media_content_type: "music"
boo_to_you: boo_to_you:
sequence: sequence:
- condition: state - condition: state
@ -485,7 +533,12 @@ script:
- condition: state - condition: state
entity_id: sensor.family_status entity_id: sensor.family_status
state: Home state: Home
- service: shell_command.boo_to_you #- service: shell_command.boo_to_you
- service: media_player.play_media
entity_id: media_player.hass_speaker
data:
media_content_id: /media/audio/boo_to_you_audio.mp3
media_content_type: "music"
tiki_room_audio: tiki_room_audio:
sequence: sequence:
- condition: state - condition: state
@ -508,34 +561,39 @@ script:
- condition: state - condition: state
entity_id: sensor.family_status entity_id: sensor.family_status
state: Home state: Home
- service: shell_command.happily_ever_after #- service: shell_command.happily_ever_after
- service: media_player.play_media
entity_id: media_player.hass_speaker
data:
media_content_id: /media/audio/Happily_Ever_After_Audio.mp3
media_content_type: "music"
illuminations_lights_out: illuminations_lights_out:
sequence: sequence:
- delay: 00:00:47 - delay: 00:00:57
- service: scene.turn_on - service: scene.turn_on
data: data:
entity_id: scene.haunted_lights_out entity_id: scene.haunted_lights_out
illuminations_single_light: illuminations_single_light:
sequence: sequence:
- delay: 00:00:52 - delay: 00:01:03
- service: scene.turn_on - service: scene.turn_on
data: data:
entity_id: scene.dimished_livingroom_lighting entity_id: scene.dimished_livingroom_lighting
illuminations_dual_light: illuminations_dual_light:
sequence: sequence:
- delay: 00:00:59 - delay: 00:01:08
- service: scene.turn_on - service: scene.turn_on
data: data:
entity_id: scene.illuminations_livingroom_lighting_two entity_id: scene.illuminations_livingroom_lighting_two
illuminations_triple_light: illuminations_triple_light:
sequence: sequence:
- delay: 00:01:04 - delay: 00:01:11
- service: scene.turn_on - service: scene.turn_on
data: data:
entity_id: scene.illuminations_livingroom_lighting_three entity_id: scene.illuminations_livingroom_lighting_three
illuminations_show: illuminations_show:
sequence: sequence:
- delay: 00:01:10 - delay: 00:01:19
- service: scene.turn_on - service: scene.turn_on
data: data:
entity_id: scene.normal_livingroom_lighting entity_id: scene.normal_livingroom_lighting
@ -552,7 +610,12 @@ script:
- condition: state - condition: state
entity_id: sensor.family_status entity_id: sensor.family_status
state: Home state: Home
- service: shell_command.illuminations_audio #- service: shell_command.illuminations_audio
- service: media_player.play_media
entity_id: media_player.hass_speaker
data:
media_content_id: /media/audio/illuminations.mp3
media_content_type: "music"
- service: script.turn_on - service: script.turn_on
entity_id: script.illuminations_preshow entity_id: script.illuminations_preshow
- service: script.turn_on - service: script.turn_on