Continuing on the audio system improvements. Getting ready for upcoming video
This commit is contained in:
parent
59b98d2d7c
commit
86c6749d55
|
@ -130,36 +130,6 @@
|
|||
- service: media_player.turn_off
|
||||
entity_id: media_player.googlehomehub3492
|
||||
initial_state: true
|
||||
- id: kitchen_occupency_lighting
|
||||
alias: Kitchen Occupency Lighting
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.kitchen_motion
|
||||
to: 'on'
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: sun.sun
|
||||
state: below_horizon
|
||||
action:
|
||||
- service: script.dog_mode_on
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: time
|
||||
after: 05:30:00
|
||||
before: '22:30:00'
|
||||
sequence:
|
||||
- scene: scene.normal_kitchen_lighting
|
||||
- conditions:
|
||||
- condition: time
|
||||
after: '22:30:00'
|
||||
before: 05:30:00
|
||||
sequence:
|
||||
- scene: scene.diminished_kitchen_lighting
|
||||
- delay: 00:18:00
|
||||
- scene: scene.kitchen_lighting_off
|
||||
default: []
|
||||
initial_state: true
|
||||
mode: single
|
||||
- id: driveway_motion_lighting
|
||||
alias: Driveway Motion Lighting
|
||||
initial_state: true
|
||||
|
@ -238,30 +208,54 @@
|
|||
action:
|
||||
- service: scene.turn_on
|
||||
entity_id: scene.theater_dark
|
||||
- id: motion_detected_at_front_door
|
||||
alias: motion_detected_at_front_door
|
||||
|
||||
|
||||
- id: '1607350354349'
|
||||
alias: WFH Video Call Lights On
|
||||
description: ''
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id:
|
||||
- binary_sensor.aarlo_motion_front_door
|
||||
- binary_sensor.latlmacr0f9jg5m_c922_pro_stream_webcam_camera
|
||||
- binary_sensor.latlmacr0f9jg5m_c922_pro_stream_webcam_2
|
||||
from: 'off'
|
||||
to: 'on'
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: input_boolean.audible_notifications
|
||||
state: 'on'
|
||||
- condition: state
|
||||
entity_id: binary_sensor.front_door
|
||||
state: 'off'
|
||||
condition: []
|
||||
action:
|
||||
- service: script.speech_engine
|
||||
data_template:
|
||||
who: '{{ states.sensor.room_audio.state }}'
|
||||
message: '{{ [ "I have detected motion at the ", "Someone may be at the
|
||||
", "There is movement at the ", "My sensors are picking up motion at the ",
|
||||
"We appear to have a visitor at the " ] | random }} {{ trigger.to_state.attributes.friendly_name
|
||||
}}.'
|
||||
- delay: 00:02:00
|
||||
- service: scene.turn_on
|
||||
data: {}
|
||||
entity_id: scene.jeff_desk_on
|
||||
- service: switch.turn_on
|
||||
data: {}
|
||||
entity_id: switch.tplink_a2
|
||||
mode: single
|
||||
- id: '1607350405537'
|
||||
alias: WFH Video Lights Off
|
||||
description: ''
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.latlmacr0f9jg5m_c922_pro_stream_webcam_camera
|
||||
from: 'on'
|
||||
to: 'off'
|
||||
condition: []
|
||||
action:
|
||||
- service: switch.turn_off
|
||||
data: {}
|
||||
entity_id: switch.tplink_a2
|
||||
mode: single
|
||||
initial_state: true
|
||||
|
||||
- id: 'test_tag_event'
|
||||
alias: Tag desk is scanned
|
||||
description: ''
|
||||
trigger:
|
||||
platform: event
|
||||
event_type: tag_scanned
|
||||
event_data:
|
||||
tag_id: 27cb75e7-ea9f-4395-a747-28eb1118a890
|
||||
device_id: 3B33820C-9851-40CD-931E-32801D4BAE3D
|
||||
condition: []
|
||||
action:
|
||||
- service: notify.jeff_ios
|
||||
data:
|
||||
message: "Jeff someone scanned desk tag"
|
||||
mode: single
|
||||
|
|
|
@ -127,8 +127,10 @@ automation:
|
|||
alias: Master Bedroom Report
|
||||
initial_state: true
|
||||
trigger:
|
||||
platform: template
|
||||
value_template: "{{ states('sensor.time') == (state_attr('input_datetime.daily_report', 'timestamp') | int | timestamp_custom('%H:%M', False)) }}"
|
||||
#platform: template
|
||||
#value_template: "{{ states('sensor.time') == (state_attr('input_datetime.daily_report', 'timestamp') | int | timestamp_custom('%H:%M', False)) }}"
|
||||
platform: time
|
||||
at: input_datetime.daily_report
|
||||
condition:
|
||||
- condition: time
|
||||
weekday:
|
||||
|
|
|
@ -58,6 +58,7 @@ script:
|
|||
entity_id: media_player.ha_speaker
|
||||
volume_level: >
|
||||
{{ volume }}
|
||||
- delay: 00:00:05
|
||||
# This tells it to play the media and is set when the script is called.
|
||||
- service: media_player.play_media
|
||||
entity_id: media_player.ha_speaker
|
||||
|
|
|
@ -110,35 +110,7 @@ automation:
|
|||
action:
|
||||
- service: scene.turn_on
|
||||
entity_id: scene.master_bedroom_on
|
||||
|
||||
|
||||
- id: b054e477-be50-480e-bd2e-2996b3e1c997
|
||||
alias: Master bedroom alarm
|
||||
initial_state: true
|
||||
trigger:
|
||||
- platform: time
|
||||
at: 06:00:00
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: input_boolean.vacation_mode
|
||||
state: 'off'
|
||||
action:
|
||||
- service: scene.turn_on
|
||||
entity_id: scene.master_bedroom_on
|
||||
|
||||
- id: 1feafed1-0de9-44a4-a2f0-e693bc637ea1
|
||||
alias: Master bedroom Wake Up
|
||||
initial_state: true
|
||||
trigger:
|
||||
- platform: time
|
||||
at: 05:50:00
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: input_boolean.vacation_mode
|
||||
state: 'off'
|
||||
action:
|
||||
- service: scene.turn_on
|
||||
entity_id: scene.master_bedroom_dim
|
||||
|
||||
- id: 0d5cea61-f295-4e5d-87a9-f12dfb5b67d6
|
||||
alias: Good Night
|
||||
|
@ -161,9 +133,8 @@ automation:
|
|||
- service: switch.turn_off
|
||||
data:
|
||||
entity_id: switch.ha_speaker
|
||||
- service: light.turn_off
|
||||
data:
|
||||
entity_id: light.kitchen_cabinets
|
||||
- service: scene.turn_on
|
||||
entity_id: scene.kitchen_lighting_off
|
||||
- service: script.good_night_loft
|
||||
- service: input_boolean.turn_off
|
||||
entity_id: input_boolean.audible_notifications
|
||||
|
|
|
@ -184,7 +184,7 @@ automation:
|
|||
action:
|
||||
- service: script.local_audio
|
||||
data_template:
|
||||
media: "http://192.168.7.40/audio/tiki_room_audio.mp3"
|
||||
media: "http://192.168.7.40/tiki_room_audio.mp3"
|
||||
volume: .5
|
||||
- id: tiki_room_off
|
||||
alias: Tiki Room Off
|
||||
|
@ -210,7 +210,7 @@ automation:
|
|||
action:
|
||||
- service: script.local_audio
|
||||
data_template:
|
||||
media: "http://192.168.7.40/audio/illuminations.mp3"
|
||||
media: "http://192.168.7.40/illuminations.mp3"
|
||||
volume: .5
|
||||
- id: illuminations_off
|
||||
alias: Illuminations Off
|
||||
|
@ -237,7 +237,7 @@ automation:
|
|||
action:
|
||||
- service: script.local_audio
|
||||
data_template:
|
||||
media: "http://192.168.7.40/audio/Happily_Ever_After_Audio.mp3"
|
||||
media: "http://192.168.7.40/Happily_Ever_After_Audio.mp3"
|
||||
volume: .5
|
||||
- id: happy_ever_after_show_off
|
||||
alias: Happy Ever After Show Off
|
||||
|
@ -263,8 +263,9 @@ automation:
|
|||
action:
|
||||
- service: script.local_audio
|
||||
data_template:
|
||||
media: "http://192.168.7.40/audio/holidaywishes.mp3"
|
||||
media: "http://192.168.7.40/holidaywishes.mp3"
|
||||
volume: .5
|
||||
|
||||
- id: holiday_wishes_show_off
|
||||
alias: Holiday Wishes Show Off
|
||||
initial_state: true
|
||||
|
@ -327,7 +328,7 @@ automation:
|
|||
action:
|
||||
- service: script.local_audio
|
||||
data_template:
|
||||
media: "http://192.168.7.40/audio/spaceship_earth_ride.mp3"
|
||||
media: "http://192.168.7.40/spaceship_earth_ride.mp3"
|
||||
volume: .6
|
||||
- id: spaceship_earth_off
|
||||
alias: Spaceship Earth Off
|
||||
|
@ -353,7 +354,7 @@ automation:
|
|||
action:
|
||||
- service: script.local_audio
|
||||
data_template:
|
||||
media: "http://192.168.7.40/audio/boo_to_you_audio.mp3"
|
||||
media: "http://192.168.7.40/boo_to_you_audio.mp3"
|
||||
volume: .5
|
||||
- id: boo_to_you_show_off
|
||||
alias: Boo To You Show Off
|
||||
|
@ -379,8 +380,9 @@ automation:
|
|||
action:
|
||||
- service: script.local_audio
|
||||
data_template:
|
||||
media: "http://192.168.7.40/audio/holidaywishes.mp3"
|
||||
media: "http://192.168.7.40/holidaywishes.mp3"
|
||||
volume: .5
|
||||
|
||||
- id: holiday_wishes_off
|
||||
alias: Holiday Wishes Off
|
||||
initial_state: true
|
||||
|
@ -405,7 +407,7 @@ automation:
|
|||
action:
|
||||
- service: script.local_audio
|
||||
data_template:
|
||||
media: "http://192.168.7.40/audio/ML_Welcome_Show.mp3"
|
||||
media: "http://192.168.7.40/ML_Welcome_Show.mp3"
|
||||
volume: .5
|
||||
- delay:
|
||||
minutes: 8
|
||||
|
@ -465,7 +467,7 @@ automation:
|
|||
action:
|
||||
- service: script.local_audio
|
||||
data_template:
|
||||
media: "http://192.168.7.40/audio/Pandora_Area_Loop.mp3"
|
||||
media: "http://192.168.7.40/Pandora_Area_Loop.mp3"
|
||||
volume: .4
|
||||
- id: pandora_audio_off
|
||||
alias: Pandora Audio Off
|
||||
|
@ -492,7 +494,7 @@ automation:
|
|||
action:
|
||||
- service: script.local_audio
|
||||
data_template:
|
||||
media: "http://192.168.7.40/audio/WDW_Resort_TV.mp3"
|
||||
media: "http://192.168.7.40/WDW_Resort_TV.mp3"
|
||||
volume: .4
|
||||
- id: resort_room_audio_off
|
||||
alias: Resort Room Off
|
||||
|
@ -519,7 +521,7 @@ automation:
|
|||
action:
|
||||
- service: script.local_audio
|
||||
data_template:
|
||||
media: "http://192.168.7.40/audio/The_American_Adventure.mp3"
|
||||
media: "http://192.168.7.40/The_American_Adventure.mp3"
|
||||
volume: .7
|
||||
- id: american_adventure_off
|
||||
alias: American Adventure Off
|
||||
|
@ -545,7 +547,7 @@ automation:
|
|||
action:
|
||||
- service: script.local_audio
|
||||
data_template:
|
||||
media: "http://192.168.7.40/audio/thelegendofsleepyhallow-readalong.mp3"
|
||||
media: "http://192.168.7.40/thelegendofsleepyhallow-readalong.mp3"
|
||||
volume: .4
|
||||
- id: sleepy_hollow_readalong_off
|
||||
alias: Sleepy Hollow Readalong Off
|
||||
|
@ -571,7 +573,7 @@ automation:
|
|||
action:
|
||||
- service: script.local_audio
|
||||
data_template:
|
||||
media: "http://192.168.7.40/audio/move_it_shake_dance_audio.mp3"
|
||||
media: "http://192.168.7.40/move_it_shake_dance_audio.mp3"
|
||||
volume: .6
|
||||
- id: move_dance_off
|
||||
alias: Move It Shake It Off
|
||||
|
@ -701,8 +703,11 @@ script:
|
|||
- service: media_player.play_media
|
||||
entity_id: media_player.ha_speaker
|
||||
data:
|
||||
media_content_id: http://192.168.7.40/audio/http://192.168.7.40/audio/wishes_5_min.mp3
|
||||
media_content_id: http://192.168.7.40/wishes_5_min.mp3
|
||||
media_content_type: "music"
|
||||
- delay: 00:03:00
|
||||
- service: scene.turn_on
|
||||
entity_id: scene.wishes_preshow
|
||||
|
||||
|
||||
wishes_lights_on:
|
||||
|
@ -778,7 +783,7 @@ script:
|
|||
entity_id: media_player.ha_speaker
|
||||
- service: script.youtube_audio
|
||||
data_template:
|
||||
media: "http://192.168.7.40/audio/haunted_guest_welcome.mp3"
|
||||
media: "http://192.168.7.40/haunted_guest_welcome.mp3"
|
||||
volume: .5
|
||||
|
||||
# Random Disney Park Music
|
||||
|
@ -788,12 +793,12 @@ script:
|
|||
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",
|
||||
{{- ["http://192.168.7.40/Liberty_square_audio.mp3",
|
||||
"http://192.168.7.40/adventureland_loop.mp3",
|
||||
"http://192.168.7.40/be_our_guest.mp3",
|
||||
"http://192.168.7.40/epcot_entrance_loop.mp3",
|
||||
"http://192.168.7.40/frontierland_loop.mp3",
|
||||
"http://192.168.7.40/tomorrowland_loop.mp3",
|
||||
"https://www.youtube.com/watch?v=IyWlxq2kOvw",
|
||||
"https://www.youtube.com/watch?v=ngRdzcvr0rg",
|
||||
"https://youtu.be/UW9WKIvF9y4",
|
||||
|
|
Loading…
Reference in New Issue