Moving Haunted Mansion show to new source due to hass-core migration

This commit is contained in:
Jeffrey Stone 2020-03-17 22:52:15 -04:00
parent 824675731d
commit dbcfee9601
1 changed files with 30 additions and 2 deletions

View File

@ -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: