Added another halloween option
This commit is contained in:
parent
0fd30f22d5
commit
9541f1fa75
|
@ -213,6 +213,7 @@ script:
|
||||||
"https://www.youtube.com/watch?v=oeLcHIpTlHU"
|
"https://www.youtube.com/watch?v=oeLcHIpTlHU"
|
||||||
] | random -}}
|
] | random -}}
|
||||||
|
|
||||||
|
|
||||||
# Update this script with your local sounds.
|
# Update this script with your local sounds.
|
||||||
# Each time this script is called it will play a random sound
|
# Each time this script is called it will play a random sound
|
||||||
haunted_sounds:
|
haunted_sounds:
|
||||||
|
@ -254,6 +255,42 @@ script:
|
||||||
"/media/haunted_sounds/Haunted-Vocals.mp3"
|
"/media/haunted_sounds/Haunted-Vocals.mp3"
|
||||||
] | random -}}
|
] | random -}}
|
||||||
|
|
||||||
|
haunted_sounds_git:
|
||||||
|
sequence:
|
||||||
|
# Ensure that haunted sounds are allowed. Comment out if not needed.
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_boolean.haunted_sounds
|
||||||
|
state: 'on'
|
||||||
|
- service: script.youtube_audio # This script is in the audio.yaml in the packages folder.
|
||||||
|
data:
|
||||||
|
speaker: >
|
||||||
|
{{ ['media_player.kitchen_display',
|
||||||
|
'media_player.upstairs_speaker',
|
||||||
|
'media_player.master_bedroom_speaker',
|
||||||
|
'media_player.croft_speaker',
|
||||||
|
'media_player.ha_speaker',
|
||||||
|
'media_player.skylars_bedroom_speaker',
|
||||||
|
'media_player.theater'
|
||||||
|
] | random }}
|
||||||
|
volume: .5
|
||||||
|
# I try to ensure each of the following links is 60 seconds or less.
|
||||||
|
media: >
|
||||||
|
{{-[
|
||||||
|
"https://raw.githubusercontent.com/thejeffreystone/home-assistant-configuration/master/config/media/haunted_sounds/EvilLaughCackle.mp3".
|
||||||
|
"https://raw.githubusercontent.com/thejeffreystone/home-assistant-configuration/master/config/media/haunted_sounds/ChainsRattling.mp3",
|
||||||
|
"https://raw.githubusercontent.com/thejeffreystone/home-assistant-configuration/master/config/media/haunted_sounds/CreakingDoorSpooky.mp3",
|
||||||
|
"https://raw.githubusercontent.com/thejeffreystone/home-assistant-configuration/master/config/media/haunted_sounds/Evil_Laugh_2.mp3",
|
||||||
|
"https://raw.githubusercontent.com/thejeffreystone/home-assistant-configuration/master/config/media/haunted_sounds/Evillaugh.mp3",
|
||||||
|
"https://raw.githubusercontent.com/thejeffreystone/home-assistant-configuration/master/config/media/haunted_sounds/Haunted-CatScream.mp3",
|
||||||
|
"https://raw.githubusercontent.com/thejeffreystone/home-assistant-configuration/master/config/media/haunted_sounds/Haunted-DragonRoaring.mp3",
|
||||||
|
"https://raw.githubusercontent.com/thejeffreystone/home-assistant-configuration/master/config/media/haunted_sounds/Haunted-Heart.mp3",
|
||||||
|
"https://raw.githubusercontent.com/thejeffreystone/home-assistant-configuration/master/config/media/haunted_sounds/Haunted-ScaryScream.mp3",
|
||||||
|
"https://raw.githubusercontent.com/thejeffreystone/home-assistant-configuration/master/config/media/haunted_sounds/Haunted-TollingBell.mp3",
|
||||||
|
"https://raw.githubusercontent.com/thejeffreystone/home-assistant-configuration/master/config/media/haunted_sounds/Scary.mp3",
|
||||||
|
"https://raw.githubusercontent.com/thejeffreystone/home-assistant-configuration/master/config/media/haunted_sounds/raven.mp3",
|
||||||
|
] | random -}}
|
||||||
|
|
||||||
|
|
||||||
################################
|
################################
|
||||||
# local_audio is meant to be used to play audio in your media folder. (https://www.home-assistant.io/integrations/media_source/)
|
# local_audio is meant to be used to play audio in your media folder. (https://www.home-assistant.io/integrations/media_source/)
|
||||||
#
|
#
|
||||||
|
|
|
@ -91,71 +91,6 @@ automation:
|
||||||
- service: input_boolean.turn_on
|
- service: input_boolean.turn_on
|
||||||
entity_id: input_boolean.holiday_wishes
|
entity_id: input_boolean.holiday_wishes
|
||||||
|
|
||||||
# script:
|
|
||||||
|
|
||||||
# more_haunted_sounds:
|
|
||||||
# sequence:
|
|
||||||
# - service: script.youtube_audio
|
|
||||||
# data_template:
|
|
||||||
# volume: .5
|
|
||||||
# media: >
|
|
||||||
# {{- [
|
|
||||||
# "https://www.youtube.com/watch?v=pVeX4C9B1Lk",
|
|
||||||
# "https://www.youtube.com/watch?v=S_hKvncbL9w",
|
|
||||||
# "https://www.youtube.com/watch?v=zB-Y5OswETY",
|
|
||||||
# "https://www.youtube.com/watch?v=x5tmmRZYq4s",
|
|
||||||
# "https://www.youtube.com/watch?v=rxxC7RJ2b_E",
|
|
||||||
# "https://www.youtube.com/watch?v=Zhd8V9cDUsA",
|
|
||||||
# "https://www.youtube.com/watch?v=jmSI-jf6nLo",
|
|
||||||
# "https://www.youtube.com/watch?v=szxC3E7m9dk",
|
|
||||||
# "https://www.youtube.com/watch?v=TaejWf5NIfI",
|
|
||||||
# "https://www.youtube.com/watch?v=orDBUrmK9vU",
|
|
||||||
# "https://www.youtube.com/watch?v=nKltUaCxZPc",
|
|
||||||
# "https://www.youtube.com/watch?v=_A1yK0YU6U0",
|
|
||||||
# "https://www.youtube.com/watch?v=AQ1SE4tLIC"
|
|
||||||
# ] | random -}}
|
|
||||||
|
|
||||||
# haunted_sounds:
|
|
||||||
# sequence:
|
|
||||||
# - service: script.local_audio
|
|
||||||
# data_template:
|
|
||||||
# volume: .5
|
|
||||||
# media: >
|
|
||||||
# {{- [
|
|
||||||
# "/media/haunted_sounds/haunted_guest_welcome.mp3",
|
|
||||||
# "/media/haunted_sounds/ChainsRattling.mp3",
|
|
||||||
# "/media/haunted_sounds/CreakingDoorSpooky.mp3",
|
|
||||||
# "/media/haunted_sounds/DemonHaunting.mp3",
|
|
||||||
# "/media/haunted_sounds/Evil_Laugh_2.mp3",
|
|
||||||
# "/media/haunted_sounds/Evillaugh.mp3",
|
|
||||||
# "/media/haunted_sounds/audio/Scary.mp3",
|
|
||||||
# "/media/haunted_sounds/audio/raven.mp3",
|
|
||||||
# "/media/haunted_sounds/audio/EvilLaughCackle.mp3",
|
|
||||||
# "/media/haunted_sounds/audio/Haunted-CatScream.mp3",
|
|
||||||
# "/media/haunted_sounds/audio/Haunted-DragonRoaring.mp3",
|
|
||||||
# "/media/haunted_sounds/Haunted-Heart.mp3",
|
|
||||||
# "/media/haunted_sounds/Haunted-ScaryScream.mp3",
|
|
||||||
# "/media/haunted_sounds/Haunted-TRexRoar.mp3",
|
|
||||||
# "/media/haunted_sounds/Haunted-TollingBell.mp3",
|
|
||||||
# "/media/haunted_sounds/Haunted-Vocals.mp3"
|
|
||||||
# ] | random -}}
|
|
||||||
|
|
||||||
# haunted_house:
|
|
||||||
# sequence:
|
|
||||||
# - delay: '00:05:00'
|
|
||||||
# - service: script.haunted_sounds
|
|
||||||
# - delay: '00:0{{ range(2,5) | random | int }}:00'
|
|
||||||
# - service: script.haunted_sounds
|
|
||||||
# - delay: '00:0{{ range(2,5) | random | int }}:00'
|
|
||||||
# - service: script.haunted_sounds
|
|
||||||
# - delay: '00:0{{ range(2,5) | random | int }}:00'
|
|
||||||
# - service: script.haunted_sounds
|
|
||||||
# - delay: '00:0{{ range(2,5) | random | int }}:00'
|
|
||||||
# - service: script.haunted_sounds
|
|
||||||
# - delay: '00:0{{ range(2,5) | random | int }}:00'
|
|
||||||
# - service: script.haunted_sounds
|
|
||||||
# - delay: '00:0{{ range(2,5) | random | int }}:00'
|
|
||||||
# - service: script.haunted_sounds
|
|
||||||
|
|
||||||
sensor:
|
sensor:
|
||||||
- platform: rest
|
- platform: rest
|
||||||
|
|
Loading…
Reference in New Issue