I really dont rember what I was doing in this file...but apparantly I made changes.

This commit is contained in:
Jeffrey Stone 2022-02-24 23:27:57 -05:00
parent 34578804ed
commit 9af334ca73
1 changed files with 625 additions and 641 deletions

View File

@ -50,14 +50,12 @@ input_boolean:
name: Dog Mode name: Dog Mode
icon: mdi:dog-side icon: mdi:dog-side
sensor: sensor:
- platform: authenticated - platform: authenticated
- platform: mqtt - platform: mqtt
name: front_door_motion_away_count name: front_door_motion_away_count
state_topic: "house/front_door_motion/away_count" state_topic: "house/front_door_motion/away_count"
automation: automation:
############################################# #############################################
# When sentry mode is enabled / security armed by any method, check the doors and notify everyone. # When sentry mode is enabled / security armed by any method, check the doors and notify everyone.
@ -67,8 +65,8 @@ automation:
trigger: trigger:
- platform: state - platform: state
entity_id: input_boolean.sentry_mode entity_id: input_boolean.sentry_mode
from: 'off' from: "off"
to: 'on' to: "on"
action: action:
- choose: - choose:
- conditions: - conditions:
@ -86,7 +84,7 @@ automation:
message: "Unable to lock down Anchorage House due to issue" message: "Unable to lock down Anchorage House due to issue"
- service: script.speech_engine - service: script.speech_engine
data_template: data_template:
who: '{{ states.sensor.room_audio.state }}' who: "{{ states.sensor.room_audio.state }}"
message: > message: >
{{ [ {{ [
"I was unable to activate barn door protocol due to an open door.", "I was unable to activate barn door protocol due to an open door.",
@ -97,7 +95,7 @@ automation:
default: default:
- service: script.speech_engine - service: script.speech_engine
data_template: data_template:
who: '{{ states.sensor.room_audio.state }}' who: "{{ states.sensor.room_audio.state }}"
message: > message: >
{{ [ {{ [
"Barn door protocol has been activated.", "Barn door protocol has been activated.",
@ -114,7 +112,7 @@ automation:
- service: alarm_control_panel.aarlo_set_mode - service: alarm_control_panel.aarlo_set_mode
data: data:
entity_id: alarm_control_panel.aarlo_ah_base_station entity_id: alarm_control_panel.aarlo_ah_base_station
mode: 'Armed' mode: "Armed"
- service: media_player.play_media - service: media_player.play_media
target: target:
device_id: edb192da8c7f80c32410147961257fae device_id: edb192da8c7f80c32410147961257fae
@ -131,23 +129,23 @@ automation:
trigger: trigger:
- platform: state - platform: state
entity_id: input_boolean.sentry_mode entity_id: input_boolean.sentry_mode
from: 'on' from: "on"
to: 'off' to: "off"
action: action:
- choose: - choose:
- conditions: - conditions:
condition: or condition: or
conditions: conditions:
- condition: state - condition: state
entity_id: sensor.family_status entity_id: group.family
state: Home state: "home"
- condition: state - condition: state
entity_id: input_boolean.guest_mode entity_id: input_boolean.guest_mode
state: 'on' state: "on"
sequence: sequence:
- service: script.speech_engine - service: script.speech_engine
data_template: data_template:
who: '{{ states.sensor.room_audio.state }}' who: "{{ states.sensor.room_audio.state }}"
message: > message: >
{{ [ {{ [
"Barn door protocol has been deactivated.", "Barn door protocol has been deactivated.",
@ -163,7 +161,7 @@ automation:
- service: alarm_control_panel.aarlo_set_mode - service: alarm_control_panel.aarlo_set_mode
data: data:
entity_id: alarm_control_panel.aarlo_ah_base_station entity_id: alarm_control_panel.aarlo_ah_base_station
mode: 'home' mode: "home"
- service: input_boolean.turn_off - service: input_boolean.turn_off
entity_id: input_boolean.security_alarm entity_id: input_boolean.security_alarm
default: default:
@ -177,7 +175,7 @@ automation:
- service: alarm_control_panel.aarlo_set_mode - service: alarm_control_panel.aarlo_set_mode
data: data:
entity_id: alarm_control_panel.aarlo_ah_base_station entity_id: alarm_control_panel.aarlo_ah_base_station
mode: 'home' mode: "home"
############################################# #############################################
############################################# #############################################
@ -193,17 +191,11 @@ automation:
condition: or condition: or
conditions: conditions:
- condition: state - condition: state
entity_id: sensor.family_status entity_id: group.family
state: Home state: "home"
- condition: state
entity_id: person.jeffrey
state: home
- condition: state
entity_id: person.katherine
state: home
- condition: state - condition: state
entity_id: input_boolean.guest_mode entity_id: input_boolean.guest_mode
state: 'on' state: "on"
action: action:
- service: script.standby - service: script.standby
@ -213,7 +205,7 @@ automation:
initial_state: true initial_state: true
trigger: trigger:
- platform: time - platform: time
at: '23:00:00' at: "23:00:00"
condition: condition:
- condition: state - condition: state
entity_id: person.jeffrey entity_id: person.jeffrey
@ -223,10 +215,10 @@ automation:
state: home state: home
- condition: state - condition: state
entity_id: input_boolean.guest_mode entity_id: input_boolean.guest_mode
state: 'off' state: "off"
- condition: state - condition: state
entity_id: input_boolean.sentry_mode entity_id: input_boolean.sentry_mode
state: 'off' state: "off"
action: action:
- service: input_boolean.turn_on - service: input_boolean.turn_on
entity_id: input_boolean.sentry_mode entity_id: input_boolean.sentry_mode
@ -270,10 +262,10 @@ automation:
trigger: trigger:
- platform: state - platform: state
entity_id: binary_sensor.back_door_motion entity_id: binary_sensor.back_door_motion
to: 'on' to: "on"
- platform: state - platform: state
entity_id: input_boolean.dog_mode entity_id: input_boolean.dog_mode
to: 'on' to: "on"
action: action:
- choose: - choose:
- conditions: - conditions:
@ -289,8 +281,8 @@ automation:
entity_id: input_boolean.sentry_mode entity_id: input_boolean.sentry_mode
state: "on" state: "on"
- condition: state - condition: state
entity_id: sensor.family_status entity_id: group.family
state: Home state: "home"
sequence: sequence:
- service: input_boolean.turn_on - service: input_boolean.turn_on
entity_id: input_boolean.dog_mode entity_id: input_boolean.dog_mode
@ -303,8 +295,11 @@ automation:
entity_id: input_boolean.sentry_mode entity_id: input_boolean.sentry_mode
state: "on" state: "on"
- condition: state - condition: state
entity_id: sensor.family_status entity_id: group.family
state: Away state: "not_home"
- condition: state
entity_id: input_boolean.vacation_mode
state: "off"
sequence: sequence:
- service: script.text_alert - service: script.text_alert
data: data:
@ -323,7 +318,7 @@ automation:
trigger: trigger:
- platform: state - platform: state
entity_id: input_boolean.dog_mode entity_id: input_boolean.dog_mode
to: 'off' to: "off"
action: action:
- service: script.text_notify - service: script.text_notify
data: data:
@ -341,8 +336,8 @@ automation:
trigger: trigger:
- platform: state - platform: state
entity_id: group.garage_doors entity_id: group.garage_doors
from: 'off' from: "off"
to: 'on' to: "on"
condition: condition:
- condition: state - condition: state
entity_id: sun.sun entity_id: sun.sun
@ -371,8 +366,8 @@ automation:
trigger: trigger:
- platform: state - platform: state
entity_id: group.garage_doors entity_id: group.garage_doors
from: 'on' from: "on"
to: 'off' to: "off"
action: action:
- service: script.driveway_off - service: script.driveway_off
- service: input_boolean.turn_off - service: input_boolean.turn_off
@ -386,7 +381,7 @@ automation:
initial_state: true initial_state: true
trigger: trigger:
- platform: time - platform: time
at: '22:30:00' at: "22:30:00"
condition: condition:
- condition: state - condition: state
entity_id: binary_sensor.garage_door entity_id: binary_sensor.garage_door
@ -395,7 +390,6 @@ automation:
- service: input_boolean.turn_on - service: input_boolean.turn_on
entity_id: input_boolean.garage_after_dark entity_id: input_boolean.garage_after_dark
############################################# #############################################
############################################# #############################################
@ -410,7 +404,7 @@ automation:
- binary_sensor.laundry_room_door - binary_sensor.laundry_room_door
- binary_sensor.attic_door - binary_sensor.attic_door
- binary_sensor.back_door - binary_sensor.back_door
to: 'on' to: "on"
id: chime id: chime
- platform: state - platform: state
entity_id: entity_id:
@ -418,27 +412,27 @@ automation:
- binary_sensor.laundry_room_door - binary_sensor.laundry_room_door
- binary_sensor.attic_door - binary_sensor.attic_door
- binary_sensor.back_door - binary_sensor.back_door
from: 'off' from: "off"
to: 'on' to: "on"
for: '00:01:00' for: "00:01:00"
id: door_still_open id: door_still_open
condition: condition:
condition: and condition: and
conditions: conditions:
- condition: state - condition: state
entity_id: input_boolean.audible_notifications entity_id: input_boolean.audible_notifications
state: 'on' state: "on"
- condition: state - condition: state
entity_id: input_boolean.guest_mode entity_id: input_boolean.guest_mode
state: 'off' state: "off"
- condition: or - condition: or
conditions: conditions:
- condition: state - condition: state
entity_id: media_player.ha_blue entity_id: media_player.ha_blue
state: 'idle' state: "idle"
- condition: state - condition: state
entity_id: media_player.ha_blue entity_id: media_player.ha_blue
state: 'off' state: "off"
action: action:
- choose: - choose:
- conditions: - conditions:
@ -450,7 +444,7 @@ automation:
- service: media_player.volume_set - service: media_player.volume_set
data_template: data_template:
entity_id: media_player.ha_blue entity_id: media_player.ha_blue
volume_level: .4 volume_level: .12
- service: media_player.play_media - service: media_player.play_media
entity_id: media_player.ha_blue entity_id: media_player.ha_blue
data: data:
@ -462,7 +456,7 @@ automation:
sequence: sequence:
- service: script.speech_engine - service: script.speech_engine
data: data:
who: '{{ states.sensor.room_audio.state }}' who: "{{ states.sensor.room_audio.state }}"
message: > message: >
The {{ trigger.to_state.attributes.friendly_name }} The {{ trigger.to_state.attributes.friendly_name }}
{{ [ {{ [
@ -529,12 +523,12 @@ automation:
- platform: state - platform: state
entity_id: entity_id:
- input_boolean.guest_mode - input_boolean.guest_mode
from: 'off' from: "off"
to: 'on' to: "on"
action: action:
- service: script.speech_engine - service: script.speech_engine
data_template: data_template:
who: '{{ states.sensor.room_audio.state }}' who: "{{ states.sensor.room_audio.state }}"
message: > message: >
{{ [ {{ [
"Guest Mode has been enabled.", "Guest Mode has been enabled.",
@ -549,8 +543,8 @@ automation:
trigger: trigger:
- platform: state - platform: state
entity_id: binary_sensor.aarlo_motion_front_door entity_id: binary_sensor.aarlo_motion_front_door
from: 'off' from: "off"
to: 'on' to: "on"
action: action:
- service: image_processing.scan - service: image_processing.scan
@ -563,12 +557,13 @@ automation:
- service: mqtt.publish - service: mqtt.publish
data: data:
topic: house/front_door_motion/away_count topic: house/front_door_motion/away_count
payload_template: '{{ states.sensor.front_door_motion_away_count.state | int + 1 }}' payload_template: "{{ states.sensor.front_door_motion_away_count.state | int + 1 }}"
retain: true retain: true
- service: script.status_annc - service: script.status_annc
data: data:
who: '{{ states.sensor.room_presence.state }}' who: "{{ states.sensor.room_presence.state }}"
call_interuption: 1 call_interuption: 1
call_snark_door_motion: 1
speech_message: > speech_message: >
{{ [ {{ [
"I have detected someone at the ", "I have detected someone at the ",
@ -585,7 +580,6 @@ automation:
############################################# #############################################
############################################# #############################################
# Security Issues # Security Issues
# If doors are opened and sentry mode is on / security armed announce location of breach to house and turn on security issue. # If doors are opened and sentry mode is on / security armed announce location of breach to house and turn on security issue.
@ -599,21 +593,22 @@ automation:
- binary_sensor.back_door - binary_sensor.back_door
- binary_sensor.side_door - binary_sensor.side_door
- binary_sensor.garage_door - binary_sensor.garage_door
to: 'on' to: "on"
condition: condition:
- condition: state - condition: state
entity_id: input_boolean.sentry_mode entity_id: input_boolean.sentry_mode
state: 'on' state: "on"
action: action:
- choose: - choose:
- conditions: - conditions:
- condition: template - condition: template
value_template: '{{ trigger.to_state.attributes.friendly_name == "Back Door" value_template:
'{{ trigger.to_state.attributes.friendly_name == "Back Door"
}}' }}'
- condition: state - condition: state
entity_id: input_boolean.dog_mode entity_id: input_boolean.dog_mode
state: 'on' state: "on"
sequence: sequence:
- service: script.text_notify - service: script.text_notify
data: data:
@ -639,8 +634,8 @@ automation:
trigger: trigger:
- platform: state - platform: state
entity_id: input_boolean.security_issue entity_id: input_boolean.security_issue
from: 'off' from: "off"
to: 'on' to: "on"
for: 00:02:00 for: 00:02:00
action: action:
- service: script.turn_on - service: script.turn_on
@ -655,8 +650,8 @@ automation:
trigger: trigger:
- platform: state - platform: state
entity_id: input_boolean.security_issue entity_id: input_boolean.security_issue
from: 'on' from: "on"
to: 'off' to: "off"
action: action:
- service: script.turn_off - service: script.turn_off
entity_id: script.security_response entity_id: script.security_response
@ -678,7 +673,7 @@ automation:
trigger: trigger:
- platform: state - platform: state
entity_id: input_boolean.security_alarm entity_id: input_boolean.security_alarm
to: 'on' to: "on"
action: action:
- service: script.turn_on - service: script.turn_on
entity_id: script.notification_security_alarm_audio entity_id: script.notification_security_alarm_audio
@ -690,7 +685,7 @@ automation:
trigger: trigger:
- platform: state - platform: state
entity_id: input_boolean.security_alarm entity_id: input_boolean.security_alarm
to: 'off' to: "off"
action: action:
- service: script.turn_off - service: script.turn_off
entity_id: script.notification_security_alarm_audio entity_id: script.notification_security_alarm_audio
@ -704,8 +699,8 @@ automation:
- platform: state - platform: state
entity_id: entity_id:
- binary_sensor.0x286d9700010c9f39_water_leak - binary_sensor.0x286d9700010c9f39_water_leak
from: 'off' from: "off"
to: 'on' to: "on"
action: action:
- service: script.text_notify - service: script.text_notify
data_template: data_template:
@ -735,9 +730,6 @@ automation:
############################################# #############################################
############################################# #############################################
# Fire alarm - Currently Disabled as I rework this # Fire alarm - Currently Disabled as I rework this
# - id: Kitchen_Alarm_Smoke # - id: Kitchen_Alarm_Smoke
@ -768,7 +760,6 @@ automation:
# data: # data:
# type: announce # type: announce
# - id: Kitchen_Alarm_Co # - id: Kitchen_Alarm_Co
# alias: Kitchen Alarm CO # alias: Kitchen Alarm CO
# initial_state: true # initial_state: true
@ -854,7 +845,6 @@ automation:
# type: announce # type: announce
############################################# #############################################
script: script:
driveway_doods: driveway_doods:
sequence: sequence:
@ -949,7 +939,6 @@ script:
- service: image_processing.scan - service: image_processing.scan
entity_id: image_processing.doods_livingroom_camera entity_id: image_processing.doods_livingroom_camera
# door chime script, just plays sound anytime called. # door chime script, just plays sound anytime called.
# door_chime: # door_chime:
# sequence: # sequence:
@ -1005,7 +994,7 @@ script:
sequence: sequence:
- condition: state - condition: state
entity_id: input_boolean.vacation_mode entity_id: input_boolean.vacation_mode
state: 'on' state: "on"
- data: - data:
entity_id: input_boolean.vacation_mode entity_id: input_boolean.vacation_mode
service: input_boolean.turn_off service: input_boolean.turn_off
@ -1015,7 +1004,7 @@ script:
sequence: sequence:
- condition: state - condition: state
entity_id: input_boolean.sentry_mode entity_id: input_boolean.sentry_mode
state: 'on' state: "on"
- service: input_boolean.turn_off - service: input_boolean.turn_off
entity_id: input_boolean.sentry_mode entity_id: input_boolean.sentry_mode
@ -1024,7 +1013,7 @@ script:
sequence: sequence:
- condition: state - condition: state
entity_id: input_boolean.security_alarm entity_id: input_boolean.security_alarm
state: 'on' state: "on"
- service: input_boolean.turn_off - service: input_boolean.turn_off
entity_id: input_boolean.security_alarm entity_id: input_boolean.security_alarm
@ -1032,7 +1021,7 @@ script:
sequence: sequence:
- condition: state - condition: state
entity_id: input_boolean.security_issue entity_id: input_boolean.security_issue
state: 'on' state: "on"
- service: input_boolean.turn_off - service: input_boolean.turn_off
entity_id: input_boolean.security_issue entity_id: input_boolean.security_issue
@ -1041,7 +1030,7 @@ script:
sequence: sequence:
- condition: state - condition: state
entity_id: input_boolean.lockdown_issue entity_id: input_boolean.lockdown_issue
state: 'on' state: "on"
- service: input_boolean.turn_off - service: input_boolean.turn_off
entity_id: input_boolean.lockdown_issue entity_id: input_boolean.lockdown_issue
@ -1050,7 +1039,7 @@ script:
sequence: sequence:
- condition: state - condition: state
entity_id: input_boolean.guest_mode entity_id: input_boolean.guest_mode
state: 'off' state: "off"
- service: input_boolean.turn_on - service: input_boolean.turn_on
data: data:
entity_id: input_boolean.guest_mode entity_id: input_boolean.guest_mode
@ -1062,7 +1051,7 @@ script:
sequence: sequence:
- condition: state - condition: state
entity_id: input_boolean.guest_mode entity_id: input_boolean.guest_mode
state: 'on' state: "on"
- service: input_boolean.turn_off - service: input_boolean.turn_off
data: data:
entity_id: input_boolean.guest_mode entity_id: input_boolean.guest_mode
@ -1080,10 +1069,9 @@ script:
- service: mqtt.publish - service: mqtt.publish
data: data:
topic: house/front_door_motion/away_count topic: house/front_door_motion/away_count
payload_template: '{{ states.sensor.front_door_motion_away_count.state | int + 1 }}' payload_template: "{{ states.sensor.front_door_motion_away_count.state | int + 1 }}"
retain: true retain: true
# Security alarm audio...annoying noises. # Security alarm audio...annoying noises.
notification_security_alarm_audio: notification_security_alarm_audio:
sequence: sequence:
@ -1110,12 +1098,12 @@ script:
sequence: sequence:
- service: script.speech_engine - service: script.speech_engine
data_template: data_template:
who: '{{ states.sensor.room_audio.state }}' who: "{{ states.sensor.room_audio.state }}"
message: !include ../templates/speech/already_done.yaml message: !include ../templates/speech/already_done.yaml
default: default:
- service: script.speech_engine - service: script.speech_engine
data_template: data_template:
who: '{{ states.sensor.room_audio.state }}' who: "{{ states.sensor.room_audio.state }}"
message: !include ../templates/speech/interjections.yaml message: !include ../templates/speech/interjections.yaml
- delay: - delay:
seconds: 2 seconds: 2
@ -1133,12 +1121,12 @@ script:
sequence: sequence:
- service: script.speech_engine - service: script.speech_engine
data_template: data_template:
who: '{{ states.sensor.room_audio.state }}' who: "{{ states.sensor.room_audio.state }}"
message: !include ../templates/speech/already_done.yaml message: !include ../templates/speech/already_done.yaml
default: default:
- service: script.speech_engine - service: script.speech_engine
data_template: data_template:
who: '{{ states.sensor.room_audio.state }}' who: "{{ states.sensor.room_audio.state }}"
message: !include ../templates/speech/interjections.yaml message: !include ../templates/speech/interjections.yaml
- delay: - delay:
seconds: 2 seconds: 2
@ -1152,8 +1140,6 @@ script:
- service: script.turn_on - service: script.turn_on
entity_id: script.welcome_briefing entity_id: script.welcome_briefing
# Called via Alexa routine...adds a little interaction # Called via Alexa routine...adds a little interaction
activate_guest_mode: activate_guest_mode:
sequence: sequence:
@ -1165,12 +1151,12 @@ script:
sequence: sequence:
- service: script.speech_engine - service: script.speech_engine
data_template: data_template:
who: '{{ states.sensor.room_audio.state }}' who: "{{ states.sensor.room_audio.state }}"
message: !include ../templates/speech/already_done.yaml message: !include ../templates/speech/already_done.yaml
default: default:
- service: script.speech_engine - service: script.speech_engine
data_template: data_template:
who: '{{ states.sensor.room_audio.state }}' who: "{{ states.sensor.room_audio.state }}"
message: !include ../templates/speech/interjections.yaml message: !include ../templates/speech/interjections.yaml
- delay: - delay:
seconds: 2 seconds: 2
@ -1237,5 +1223,3 @@ script:
"Initiating my security response, and sounding the alarm. Oh, and I dont charge a monthly monitoring fee. #itsloudinhere #securityalarm", "Initiating my security response, and sounding the alarm. Oh, and I dont charge a monthly monitoring fee. #itsloudinhere #securityalarm",
"Hey, wanna hear the most annoying sound in the world? The intruder inside Anchorage House evidently did. #itsloudinhere #securityalarm" "Hey, wanna hear the most annoying sound in the world? The intruder inside Anchorage House evidently did. #itsloudinhere #securityalarm"
] | random }} ] | random }}