Continuing on the audio system improvements. Getting ready for upcoming video

This commit is contained in:
Jeffrey Stone
2021-01-02 13:23:19 -05:00
parent 59b98d2d7c
commit 86c6749d55
5 changed files with 76 additions and 103 deletions

View File

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