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