diff --git a/config/automations.yaml b/config/automations.yaml index 0bed213..cdf1b32 100644 --- a/config/automations.yaml +++ b/config/automations.yaml @@ -380,9 +380,9 @@ event: sunrise offset: 00:30:00 condition: - - condition: numeric_state - entity_id: sensor.dark_sky_cloud_coverage - below: 50 + - condition: state + entity_id: sensor.nws_current_condition + state: "cloudy" action: - service: script.inside_all_off - service: scene.turn_on @@ -426,8 +426,7 @@ - platform: time at: 06:40:00 action: - - entity_id: input_boolean.audible_notifications - service: input_boolean.turn_on + - service: script.turn_on_ha_speaker - id: jeff_eta_home alias: Jeff eta home initial_state: true @@ -667,14 +666,14 @@ # alias: Turn Off HA Speaker # trigger: # - platform: state -# entity_id: media_player.theater +# entity_id: media_player.ha_speaker # from: 'playing' # to: 'idle' # action: # - service: switch.turn_off # entity_id: switch.ha_speaker # - service: media_player.turn_off -# entity_id: media_player.theater +# entity_id: media_player.ha_speaker # - service: script.kill_this_ride # initial_state: true diff --git a/config/packages/disney.yaml b/config/packages/disney.yaml index a53f2bc..f164276 100755 --- a/config/packages/disney.yaml +++ b/config/packages/disney.yaml @@ -67,7 +67,7 @@ automation: to: 'off' action: - service: media_player.media_stop - entity_id: media_player.theater + entity_id: media_player.ha_speaker - service: script.turn_on entity_id: script.kill_this_ride - id: illuminations_on @@ -123,7 +123,7 @@ automation: - service: script.turn_on entity_id: script.kill_this_ride - service: media_player.media_stop - entity_id: media_player.theater + entity_id: media_player.ha_speaker - id: happy_ever_after_on alias: Happy Ever After On initial_state: true @@ -145,7 +145,7 @@ automation: - service: script.turn_on entity_id: script.kill_this_ride - service: media_player.media_stop - entity_id: media_player.theater + entity_id: media_player.ha_speaker - id: wishes_show_on alias: Wishes Show On @@ -168,7 +168,7 @@ automation: - service: script.turn_on entity_id: script.kill_this_ride - service: media_player.media_stop - entity_id: media_player.theater + entity_id: media_player.ha_speaker - service: script.turn_off entity_id: script.holiday_wishes - service: script.turn_off @@ -192,7 +192,7 @@ automation: initial_state: true trigger: - platform: state - entity_id: media_player.theater + entity_id: media_player.ha_speaker to: 'playing' condition: - condition: state @@ -225,7 +225,7 @@ automation: - service: script.turn_on entity_id: script.kill_this_ride - service: media_player.media_stop - entity_id: media_player.theater + entity_id: media_player.ha_speaker - service: script.turn_off entity_id: script.disney_springs_xmas @@ -252,7 +252,7 @@ automation: # action: # - service: script.kill_this_ride # - service: media_player.media_stop - # entity_id: media_player.theater + # entity_id: media_player.ha_speaker # ####################################### @@ -277,7 +277,7 @@ automation: - service: script.turn_on entity_id: script.kill_this_ride - service: media_player.media_stop - entity_id: media_player.theater + entity_id: media_player.ha_speaker - id: boo_to_you_show_on alias: Boo To You Show On initial_state: true @@ -299,7 +299,7 @@ automation: - service: script.turn_on entity_id: script.kill_this_ride - service: media_player.media_stop - entity_id: media_player.theater + entity_id: media_player.ha_speaker - id: boo_to_you_on alias: Boo To You On initial_state: true @@ -321,7 +321,7 @@ automation: - service: script.turn_on entity_id: script.kill_this_ride - service: media_player.media_stop - entity_id: media_player.theater + entity_id: media_player.ha_speaker - id: holiday_wishes_on alias: Holiday Wishes On @@ -344,7 +344,7 @@ automation: - service: script.turn_on entity_id: script.kill_this_ride - service: media_player.media_stop - entity_id: media_player.theater + entity_id: media_player.ha_speaker - id: welcome_show_on alias: Welcome Show On @@ -367,7 +367,7 @@ automation: - service: script.turn_on entity_id: script.kill_this_ride - service: media_player.media_stop - entity_id: media_player.theater + entity_id: media_player.ha_speaker - id: american_adventure_on alias: American Adventure On @@ -390,7 +390,7 @@ automation: - service: script.turn_on entity_id: script.kill_this_ride - service: media_player.media_stop - entity_id: media_player.theater + entity_id: media_player.ha_speaker - id: springs_christmas_on alias: Disney Springs XMas On @@ -413,7 +413,7 @@ automation: - service: script.turn_on entity_id: script.kill_this_ride - service: media_player.media_stop - entity_id: media_player.theater + entity_id: media_player.ha_speaker - id: sleepy_hollow_readalong_on alias: Sleepy Hollow Readalong On @@ -436,7 +436,7 @@ automation: - service: script.turn_on entity_id: script.kill_this_ride - service: media_player.media_stop - entity_id: media_player.theater + entity_id: media_player.ha_speaker - id: move_dance_on alias: Move It Shake It On @@ -459,7 +459,7 @@ automation: - service: script.turn_on entity_id: script.kill_this_ride - service: media_player.media_stop - entity_id: media_player.theater + entity_id: media_player.ha_speaker - id: kill_show @@ -487,7 +487,7 @@ automation: to: 'off' action: - service: media_player.media_stop - entity_id: media_player.theater + entity_id: media_player.ha_speaker - service: scene.turn_on entity_id: scene.normal_livingroom_lighting - service: script.reset_show_inputs @@ -587,13 +587,13 @@ script: entity_id: sensor.family_status state: Home - service: media_player.turn_on - entity_id: media_player.theater + entity_id: media_player.ha_speaker - service: media_player.volume_set data_template: - entity_id: media_player.theater + entity_id: media_player.ha_speaker volume_level: .5 - service: media_player.play_media - entity_id: media_player.theater + entity_id: media_player.ha_speaker data: media_content_id: http://192.168.7.40/audio/magic_kingdom.mp3 media_content_type: "music" @@ -601,7 +601,7 @@ script: kill_this_ride: sequence: - service: media_player.media_stop - entity_id: media_player.theater + entity_id: media_player.ha_speaker # - service: shell_command.alarm_off # - service: shell_command.vlc_off - service: script.turn_off @@ -704,13 +704,13 @@ script: state: Home # - service: shell_command.dance_it - service: media_player.turn_on - entity_id: media_player.theater + entity_id: media_player.ha_speaker - service: media_player.volume_set data_template: - entity_id: media_player.theater + entity_id: media_player.ha_speaker volume_level: .7 - service: media_player.play_media - entity_id: media_player.theater + 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" @@ -723,13 +723,13 @@ script: entity_id: sensor.family_status state: Home - service: media_player.turn_on - entity_id: media_player.theater + entity_id: media_player.ha_speaker - service: media_player.volume_set data_template: - entity_id: media_player.theater + entity_id: media_player.ha_speaker volume_level: .7 - service: media_player.play_media - entity_id: media_player.theater + entity_id: media_player.ha_speaker data: media_content_id: http://192.168.7.40/audio/The_American_Adventure.mp3 media_content_type: "music" @@ -744,14 +744,14 @@ script: entity_id: sensor.family_status state: Home - service: media_player.turn_on - entity_id: media_player.theater + entity_id: media_player.ha_speaker - service: media_player.volume_set data_template: - entity_id: media_player.theater + entity_id: media_player.ha_speaker volume_level: > .3 - service: media_player.play_media - entity_id: media_player.theater + 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" @@ -774,13 +774,13 @@ script: state: Home # - service: shell_command.spaceship_earth_ride - service: media_player.turn_on - entity_id: media_player.theater + entity_id: media_player.ha_speaker - service: media_player.volume_set data_template: - entity_id: media_player.theater + entity_id: media_player.ha_speaker volume_level: .7 - service: media_player.play_media - entity_id: media_player.theater + entity_id: media_player.ha_speaker data: media_content_id: http://192.168.7.40/audio/spaceship_earth_ride.mp3 media_content_type: "music" @@ -793,13 +793,13 @@ script: entity_id: sensor.family_status state: Home - service: media_player.turn_on - entity_id: media_player.theater + entity_id: media_player.ha_speaker - service: media_player.volume_set data_template: - entity_id: media_player.theater + entity_id: media_player.ha_speaker volume_level: .7 - service: media_player.play_media - entity_id: media_player.theater + entity_id: media_player.ha_speaker data: media_content_id: http://192.168.7.40/audio/welcome_show.mp3 media_content_type: "music" @@ -840,13 +840,13 @@ script: state: Home # - service: shell_command.welcome_show - service: media_player.turn_on - entity_id: media_player.theater + entity_id: media_player.ha_speaker - service: media_player.volume_set data_template: - entity_id: media_player.theater + entity_id: media_player.ha_speaker volume_level: .7 - service: media_player.play_media - entity_id: media_player.theater + entity_id: media_player.ha_speaker data: media_content_id: http://192.168.7.40/audio/welcome_show.mp3 media_content_type: "music" @@ -860,9 +860,9 @@ script: entity_id: sensor.family_status state: Home - service: media_player.turn_on - entity_id: media_player.theater + entity_id: media_player.ha_speaker - service: media_player.play_media - entity_id: media_player.theater + entity_id: media_player.ha_speaker data: media_content_id: http://192.168.7.40/audio/wishes_5_min.mp3 media_content_type: "music" @@ -876,9 +876,9 @@ script: entity_id: sensor.family_status state: Home - service: media_player.turn_on - entity_id: media_player.theater + entity_id: media_player.ha_speaker - service: media_player.play_media - entity_id: media_player.theater + entity_id: media_player.ha_speaker data: media_content_id: http://192.168.7.40/audio/holidaywishes.mp3 media_content_type: "music" @@ -915,9 +915,9 @@ script: state: Home # - service: shell_command.boo_to_you - service: media_player.turn_on - entity_id: media_player.theater + entity_id: media_player.ha_speaker - service: media_player.play_media - entity_id: media_player.theater + 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" @@ -930,13 +930,13 @@ script: entity_id: sensor.family_status state: Home - service: media_player.turn_on - entity_id: media_player.theater + entity_id: media_player.ha_speaker - service: media_player.volume_set data_template: - entity_id: media_player.theater + entity_id: media_player.ha_speaker volume_level: .5 - service: media_player.play_media - entity_id: media_player.theater + 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" @@ -950,9 +950,9 @@ script: # state: Home # #- service: shell_command.boo_to_you # - service: media_player.turn_on - # entity_id: media_player.theater + # entity_id: media_player.ha_speaker # - service: media_player.play_media - # entity_id: media_player.theater + # 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" @@ -967,15 +967,15 @@ script: # - service: shell_command.tiki_vol # - service: shell_command.tiki_room_audio - service: media_player.turn_on - entity_id: media_player.theater + entity_id: media_player.ha_speaker - service: media_player.turn_on - entity_id: media_player.theater + entity_id: media_player.ha_speaker - service: media_player.volume_set data_template: - entity_id: media_player.theater + entity_id: media_player.ha_speaker volume_level: .5 - service: media_player.play_media - entity_id: media_player.theater + entity_id: media_player.ha_speaker data: media_content_id: http://192.168.7.40/audio/tiki_room_audio.mp3 media_content_type: "music" @@ -989,13 +989,13 @@ script: # state: Home # #- service: shell_command.happily_ever_after # - service: media_player.turn_on - # entity_id: media_player.theater + # entity_id: media_player.ha_speaker # - service: media_player.volume_set # data_template: - # entity_id: media_player.theater + # entity_id: media_player.ha_speaker # volume_level: .5 # - service: media_player.play_media - # entity_id: media_player.theater + # 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" @@ -1044,13 +1044,13 @@ script: state: Home # - service: shell_command.illuminations_audio - service: media_player.turn_on - entity_id: media_player.theater + entity_id: media_player.ha_speaker - service: media_player.volume_set data_template: - entity_id: media_player.theater + entity_id: media_player.ha_speaker volume_level: .5 - service: media_player.play_media - entity_id: media_player.theater + entity_id: media_player.ha_speaker data: media_content_id: http://192.168.7.40/audio/illuminations.mp3 media_content_type: "music" @@ -1079,14 +1079,14 @@ script: # - service: switch.turn_on # entity_id: switch.ha_speaker - service: media_player.turn_on - entity_id: media_player.theater + entity_id: media_player.ha_speaker - service: media_player.volume_set data_template: - entity_id: media_player.theater + entity_id: media_player.ha_speaker volume_level: > .5 - service: media_player.play_media - entity_id: media_player.theater + entity_id: media_player.ha_speaker data: media_content_id: http://192.168.7.40/audio/This_is_Halloween.mp3 media_content_type: "music" \ No newline at end of file diff --git a/config/packages/haunted_mansion_show.yaml b/config/packages/haunted_mansion_show.yaml index 01a779e..84d8bd9 100755 --- a/config/packages/haunted_mansion_show.yaml +++ b/config/packages/haunted_mansion_show.yaml @@ -41,7 +41,7 @@ automation: initial_state: true trigger: - platform: state - entity_id: media_player.theater + entity_id: media_player.ha_speaker to: 'playing' condition: - condition: state @@ -63,10 +63,10 @@ script: state: Home - service: media_player.volume_set data_template: - entity_id: media_player.theater + entity_id: media_player.ha_speaker volume_level: .5 - service: media_player.play_media - entity_id: media_player.theater + entity_id: media_player.ha_speaker data: media_content_id: http://192.168.7.40/audio/haunted_mansion_preshow_full.mp3 media_content_type: "music" diff --git a/config/packages/security.yaml b/config/packages/security.yaml index 27eb1c6..5bc22bd 100755 --- a/config/packages/security.yaml +++ b/config/packages/security.yaml @@ -170,10 +170,10 @@ automation: - condition: or conditions: - condition: state - entity_id: media_player.theater + entity_id: media_player.ha_speaker state: 'idle' - condition: state - entity_id: media_player.theater + entity_id: media_player.ha_speaker state: 'off' action: - service: script.door_chime @@ -307,7 +307,7 @@ automation: - service: script.turn_off entity_id: script.security_response - service: media_player.media_stop - entity_id: media_player.theater + entity_id: media_player.ha_speaker - service: scene.turn_on entity_id: scene.lr_red - service: script.livingroom_lamps_on @@ -407,7 +407,7 @@ automation: - service: script.turn_off entity_id: script.notification_security_alarm_audio - service: media_player.media_stop - entity_id: media_player.theater + entity_id: media_player.ha_speaker - id: Kitchen_Alarm_Smoke alias: Kitchen Alarm Smoke @@ -545,13 +545,13 @@ script: entity_id: input_boolean.fire_alarm state: "on" - service: media_player.turn_on - entity_id: media_player.theater + entity_id: media_player.ha_speaker - service: media_player.volume_set data_template: - entity_id: media_player.theater + entity_id: media_player.ha_speaker volume_level: .75 - service: media_player.play_media - entity_id: media_player.theater + entity_id: media_player.ha_speaker data: media_content_id: http://192.168.7.40/audio/fire_alarm.mp3 media_content_type: "music" @@ -610,13 +610,13 @@ script: notification_security_alarm_audio: sequence: - service: media_player.turn_on - entity_id: media_player.theater + entity_id: media_player.ha_speaker - service: media_player.volume_set data_template: - entity_id: media_player.theater + entity_id: media_player.ha_speaker volume_level: .75 - service: media_player.play_media - entity_id: media_player.theater + entity_id: media_player.ha_speaker data: media_content_id: http://192.168.7.40/audio/security_siren.mp3 media_content_type: "music" @@ -703,13 +703,13 @@ script: - delay: seconds: 15 - service: media_player.turn_on - entity_id: media_player.theater + entity_id: media_player.ha_speaker - service: media_player.volume_set data_template: - entity_id: media_player.theater + entity_id: media_player.ha_speaker volume_level: .5 - service: media_player.play_media - entity_id: media_player.theater + entity_id: media_player.ha_speaker data: media_content_id: http://192.168.7.40/audio/security_siren.mp3 media_content_type: "music" diff --git a/config/scripts/general.yaml b/config/scripts/general.yaml index 859badc..4c7e094 100755 --- a/config/scripts/general.yaml +++ b/config/scripts/general.yaml @@ -22,6 +22,15 @@ sunset_garage_open: state: 'on' - service: script.driveway_all_on +turn_on_ha_speaker: + sequence: + - condition: state + entity_id: input_boolean.audible_notifications + state: 'off' + - service: input_boolean.turn_on + entity_id: input_boolean.audible_notifications + + inside_all_on: sequence: - service: scene.turn_on @@ -146,7 +155,7 @@ chromecast_media_stop: sequence: - service: media_player.media_stop data: - entity_id: media_player.theater + entity_id: media_player.ha_speaker appliances_on: sequence: