This is the current config. Moved old to the v1-config branch

This commit is contained in:
Jeffrey Stone
2018-03-06 11:04:37 -05:00
parent d0e9db33c8
commit 67ecd08d7a
81 changed files with 1745 additions and 352 deletions

View File

@@ -0,0 +1,5 @@
appliances_off:
sequence:
- service: switch.turn_off
data:
entity_id: switch.master_fan

View File

@@ -0,0 +1,5 @@
appliances_on:
sequence:
- service: switch.turn_on
data:
entity_id: switch.master_fan

12
scripts/driveway_off.yaml Normal file
View File

@@ -0,0 +1,12 @@
# Turn off Driveway lights after 10 minute delay
driveway_off:
sequence:
- delay:
minutes: 10
- service: switch.turn_off
data:
entity_id: switch.driveway_light
- service: switch.turn_off
data:
entity_id: switch.side_door

12
scripts/driveway_on.yaml Normal file
View File

@@ -0,0 +1,12 @@
driveway_on:
sequence:
- condition: state
entity_id: sun.sun
state: 'below_horizon'
- service: switch.turn_on
data:
entity_id: switch.driveway_light
- service: switch.turn_on
data:
entity_id: switch.side_door

View File

@@ -0,0 +1,6 @@
family_is_away:
sequence:
- service: mqtt.publish
data:
topic: "house/family/status"
payload_template: "away"

View File

@@ -0,0 +1,6 @@
family_is_home:
sequence:
- service: mqtt.publish
data:
topic: "house/family/status"
payload_template: "home"

View File

@@ -0,0 +1,15 @@
fire_alarm_kitchen:
sequence:
- event: LOGBOOK_ENTRY
event_data:
name: EVENT
message: "Smoke Detected: Kitchen"
- delay:
minutes: 1
- service: notify.jeff_ios
data:
message: 'Smoke Detected in Kitchen.'
- service: tts.google_say
data:
entity_id: media_player.hass_speaker
message: Attention. Smoke detected in the kitchen.

View File

@@ -0,0 +1,16 @@
garage_abort_lockdown:
sequence:
- event: LOGBOOK_ENTRY
event_data:
name: EVENT
message: "SECURITY: Aborting Lockdown - Garage Could Not Close"
- condition: state
entity_id: input_boolean.secure_mode
state: "on"
- service: tts.google_say
data:
entity_id: media_player.hass_speaker
message: Garage was unable to close.
- service: input_boolean.turn_off
data:
entity_id: input_boolean.secure_mode

11
scripts/garage_close.yaml Normal file
View File

@@ -0,0 +1,11 @@
close_garage:
sequence:
- event: LOGBOOK_ENTRY
event_data:
name: EVENT
message: "HASS: Closing Garage"
- condition: state
entity_id: cover.garage_door
state: "open"
- service: cover.close_cover
entity_id: cover.garage_door

View File

@@ -0,0 +1,11 @@
garage_closing:
sequence:
- event: LOGBOOK_ENTRY
event_data:
name: EVENT
message: "INFO: Garage Closing"
- service: tts.google_say
data:
entity_id: media_player.hass_speaker
message: Garage is Closing

View File

@@ -0,0 +1,13 @@
garage_failed_to_close:
sequence:
- event: LOGBOOK_ENTRY
event_data:
name: EVENT
message: "WARN: Garage Could Not Close"
- condition: state
entity_id: sensor.garage_door_contact
state: "open"
- service: tts.google_say
data:
entity_id: media_player.hass_speaker
message: Garage was unable to close.

View File

@@ -0,0 +1,16 @@
#garage_now_closed:
# sequence:
# - event: LOGBOOK_ENTRY
# event_data:
# name: EVENT
# message: "SUCCESS: Garage Now Closed"
# - condition: state
# entity_id: sensor.garage_door_contact
# state: "closed"
#- service: notify.jeff_ios
# data:
# message: 'SUCCESS: Garage Now Closed'
#- service: tts.google_say
# data:
# entity_id: media_player.hass_speaker
# message: Garage has been Closed.

11
scripts/garage_open.yaml Normal file
View File

@@ -0,0 +1,11 @@
open_garage:
sequence:
- event: LOGBOOK_ENTRY
event_data:
name: EVENT
message: "opening the garage"
- condition: state
entity_id: cover.garage_door
state: "closed"
- service: cover.open_cover
entity_id: cover.garage_door

View File

@@ -1,8 +1,12 @@
sequence:
- event: LOGBOOK_ENTRY
event_data:
name: EVENT
message: "Turning inside lights off."
- service: switch.turn_off
data:
entity_id: switch.tower_lamp
inside_all_off:
sequence:
- event: LOGBOOK_ENTRY
event_data:
name: EVENT
message: "Turning inside lights off"
- service: light.turn_off
data:
entity_id: light.tower_lamp
- service: light.turn_off
data:
entity_id: light.front_lamp

View File

@@ -1,11 +1,15 @@
sequence:
- event: LOGBOOK_ENTRY
event_data:
name: EVENT
message: "Turning inside lights on."
- service: switch.turn_on
data:
entity_id: switch.tower_lamp
- service: scene.turn_on
data:
entity_id: scene.livingroom_normal
inside_all_on:
sequence:
- event: LOGBOOK_ENTRY
event_data:
name: EVENT
message: "Turning inside lights on."
- service: light.turn_on
data:
entity_id: light.tower_lamp
- service: light.turn_on
data:
entity_id: light.front_lamp
- service: scene.turn_on
data:
entity_id: scene.livingroom_normal

View File

@@ -0,0 +1,8 @@
jeff_at_work_notification:
sequence:
- condition: state
entity_id: input_boolean.text_notify_kat
state: "on"
- service: notify.ios_katherinestonesiphone
data:
message: Jeff has arrived at Summit

View File

@@ -0,0 +1,7 @@
jeff_destination_arrived:
sequence:
- service: mqtt.publish
data:
topic: "jeff/driving/destination"
payload: "Arrived"
retain: true

View File

@@ -0,0 +1,7 @@
jeff_destination_harbins:
sequence:
- service: mqtt.publish
data:
topic: "jeff/driving/destination"
payload: "Harbins"
retain: true

View File

@@ -0,0 +1,7 @@
jeff_destination_home:
sequence:
- service: mqtt.publish
data:
topic: "jeff/driving/destination"
payload: "Home"
retain: true

View File

@@ -0,0 +1,7 @@
jeff_destination_na:
sequence:
- service: mqtt.publish
data:
topic: "jeff/driving/destination"
payload: "na"
retain: true

View File

@@ -0,0 +1,7 @@
jeff_destination_none:
sequence:
- service: mqtt.publish
data:
topic: "jeff/driving/destination"
payload: "none"
retain: true

View File

@@ -0,0 +1,7 @@
jeff_destination_summit:
sequence:
- service: mqtt.publish
data:
topic: "jeff/driving/destination"
payload: "Summit"
retain: true

View File

@@ -0,0 +1,7 @@
jeff_destination_zoo:
sequence:
- service: mqtt.publish
data:
topic: "jeff/driving/destination"
payload: "Zoo"
retain: true

View File

@@ -0,0 +1,9 @@
jeff_is_home_audible:
sequence:
- condition: state
entity_id: input_boolean.audible_notifications
state: "on"
- service: tts.google_say
data:
entity_id: media_player.hass_speaker
message: Jeffrey is home

View File

@@ -1,9 +1,7 @@
sequence:
- event: LOGBOOK_ENTRY
event_data:
name: EVENT
message: "Jeff is Moving"
- service: input_select.select_option
data:
entity_id: input_select.jeff_status
option: moving
jeff_is_moving:
sequence:
- service: mqtt.publish
data:
topic: "jeff/location/status"
payload: "moving"
retain: true

View File

@@ -1,9 +1,7 @@
sequence:
- event: LOGBOOK_ENTRY
event_data:
name: EVENT
message: "Jeff is Stationary"
- service: input_select.select_option
data:
entity_id: input_select.jeff_status
option: stationary
jeff_is_stationary:
sequence:
- service: mqtt.publish
data:
topic: "jeff/location/status"
payload: "stationary"
retain: true

View File

@@ -0,0 +1,9 @@
kat_is_home_audible:
sequence:
- condition: state
entity_id: input_boolean.audible_notifications
state: "on"
- service: tts.google_say
data:
entity_id: media_player.hass_speaker
message: Katherine is home

View File

@@ -0,0 +1,7 @@
kill_audible_alarm:
sequence:
- event: LOGBOOK_ENTRY
event_data:
name: EVENT
message: "Silence Alarm"
- service: shell_command.alarm_off

9
scripts/lockdown.yaml Normal file
View File

@@ -0,0 +1,9 @@
lockdown:
sequence:
- event: LOGBOOK_ENTRY
event_data:
name: EVENT
message: "SECURITY: Executing Lockdown procedures"
- service: input_boolean.turn_on
data:
entity_id: input_boolean.secure_mode

View File

@@ -0,0 +1,11 @@
lockdown:
sequence:
- event: LOGBOOK_ENTRY
event_data:
name: EVENT
message: "SECURITY: Executing Lockdown in 5 mins"
- delay:
minutes: 5
- service: input_boolean.turn_on
data:
entity_id: input_boolean.secure_mode

View File

@@ -1,17 +1,15 @@
sequence:
- event: LOGBOOK_ENTRY
event_data:
name: EVENT
message: "Turning outside lights off."
- service: switch.turn_off
data:
entity_id: switch.driveway_light
- service: switch.turn_off
data:
entity_id: switch.side_door_light
- service: switch.turn_off
data:
entity_id: switch.front_porch_left
- service: switch.turn_off
data:
entity_id: switch.front_porch_right
outside_all_off:
sequence:
- event: LOGBOOK_ENTRY
event_data:
name: EVENT
message: "Turning outside lights off."
- service: switch.turn_off
data:
entity_id: switch.driveway_light
- service: switch.turn_off
data:
entity_id: switch.side_door_light
- service: switch.turn_off
data:
entity_id: switch.front_porch

View File

@@ -1,17 +1,16 @@
sequence:
- event: LOGBOOK_ENTRY
event_data:
name: EVENT
message: "Turning outside lights on."
- service: switch.turn_on
data:
entity_id: switch.driveway_light
- service: switch.turn_on
data:
entity_id: switch.side_door_light
- service: switch.turn_on
data:
entity_id: switch.front_porch_left
- service: switch.turn_on
data:
entity_id: switch.front_porch_right
outside_all_on:
sequence:
- event: LOGBOOK_ENTRY
event_data:
name: EVENT
message: "Turning outside lights on."
- service: switch.turn_on
data:
entity_id: switch.driveway_light
- service: switch.turn_on
data:
entity_id: switch.side_door_light
- service: switch.turn_on
data:
entity_id: switch.front_porch

View File

@@ -0,0 +1,13 @@
security_access_authorized:
sequence:
- event: LOGBOOK_ENTRY
event_data:
name: EVENT
message: "Access Authorized: Security Measures Standing Down"
#- service: notify.jeff_ios
# data:
# message: 'Access Authorized: Security Measures Standing Down'
- service: tts.google_say
data:
entity_id: media_player.hass_speaker
message: Access Authorized. Security response has been canceled

View File

@@ -0,0 +1,18 @@
security_check_garage:
sequence:
- event: LOGBOOK_ENTRY
event_data:
name: EVENT
message: "SECURITY: Performing Security check - Garage"
- condition: state
#entity_id: sensor.garage_door_contact
entity_id: cover.garage_door
state: "open"
- delay:
minutes: 1
- service: input_boolean.turn_on
data:
entity_id: input_boolean.garage_issue
- service: input_boolean.turn_off
data:
entity_id: input_boolean.secure_mode

View File

@@ -0,0 +1,16 @@
security_check_verified:
sequence:
- condition: state
#entity_id: sensor.garage_door_contact
entity_id: cover.garage_door
state: "closed"
- condition: state
entity_id: group.doors
state: "closed"
- service: notify.jeff_ios
data:
message: "SECURITY: Lockdown procedures Complete"
- service: homeassistant.turn_off
entity_id: script.security_check_zones
- service: homeassistant.turn_off
entity_id: script.security_check_garage

View File

@@ -0,0 +1,17 @@
security_check_zones:
sequence:
- event: LOGBOOK_ENTRY
event_data:
name: EVENT
message: "SECURITY: Performing Security check - Zones"
- condition: state
entity_id: group.doors
state: "Open"
- delay:
seconds: 20
- service: input_boolean.turn_off
data:
entity_id: input_boolean.secure_mode
- service: input_boolean.turn_on
data:
entity_id: input_boolean.security_issue

View File

@@ -0,0 +1,31 @@
security_report:
sequence:
- delay:
seconds: 9
- service: tts.google_say
data_template:
entity_id: media_player.hass_speaker
message: >
{%- if is_state("input_boolean.security_alarm", "on") %}
{%- if is_state("binary_sensor.front_door", "on") %}
Front door is open
{%- endif %}
{%- if is_state("binary_sensor.back_door", "on") %}
Back door is open
{%- endif %}
{%- if is_state("binary_sensor.laundry_room_door", "on") %}
Laundry door is open
{%- endif %}
{%- if is_state("binary_sensor.attic_door", "on") %}
Attic door is open
{%- endif %}
{%- if is_state("binary_sensor.garage_door", "on") %}
Garage door is open
{%- endif %}
{%- if is_state("binary_sensor.garage_motion", "on") %}
Motion in garage
{%- endif %}
{% else %}
House is secure
{%- endif %}

View File

@@ -0,0 +1,9 @@
security_sound_alarm:
sequence:
- event: LOGBOOK_ENTRY
event_data:
name: EVENT
message: "Sounding Security Alarm"
- delay:
seconds: 80
- service: shell_command.security_alarm

View File

@@ -0,0 +1,10 @@
security_sound_alarm_intro:
sequence:
- event: LOGBOOK_ENTRY
event_data:
name: EVENT
message: "Sounding Security Alarm Intro"
- condition: state
entity_id: sensor.family_status
state: home
- service: shell_command.security_alarm_intro

View File

@@ -0,0 +1,12 @@
security_warning_back_door:
sequence:
- event: LOGBOOK_ENTRY
event_data:
name: EVENT
message: "Warning: Back door open"
- delay:
seconds: 5
- service: tts.google_say
data:
entity_id: media_player.hass_speaker
message: Back door open

View File

@@ -0,0 +1,12 @@
security_warning_front_door:
sequence:
- event: LOGBOOK_ENTRY
event_data:
name: EVENT
message: "Warning: Front door open"
- delay:
seconds: 5
- service: tts.google_say
data:
entity_id: media_player.hass_speaker
message: front door open

View File

@@ -0,0 +1,12 @@
security_warning_garage_door:
sequence:
- event: LOGBOOK_ENTRY
event_data:
name: EVENT
message: "Warning: Front door open"
- delay:
seconds: 5
- service: tts.google_say
data:
entity_id: media_player.hass_speaker
message: Garage is open

View File

@@ -0,0 +1,12 @@
security_warning_garage_motion:
sequence:
- event: LOGBOOK_ENTRY
event_data:
name: EVENT
message: "Warning: Motion in Garage"
- delay:
seconds: 5
- service: tts.google_say
data:
entity_id: media_player.hass_speaker
message: Motion in Garage

View File

@@ -0,0 +1,12 @@
security_warning_front_door:
sequence:
- event: LOGBOOK_ENTRY
event_data:
name: EVENT
message: "Warning: Laundry room door open"
- delay:
seconds: 5
- service: tts.google_say
data:
entity_id: media_player.hass_speaker
message: Laundry Room door open

View File

@@ -0,0 +1,9 @@
skylar_dressed_notifications:
sequence:
- condition: state
entity_id: sensor.family_status
state: home
- service: tts.google_say
data:
entity_id: media_player.hass_speaker
message: Skylar it is time to get dressed

12
scripts/standby.yaml Normal file
View File

@@ -0,0 +1,12 @@
standby:
sequence:
- event: LOGBOOK_ENTRY
event_data:
name: EVENT
message: "Security standing down"
- service: input_boolean.turn_off
data:
entity_id: input_boolean.secure_mode
- service: notify.jeff_ios
data:
message: Anchorage House in Standby

View File

@@ -0,0 +1,17 @@
status_report:
sequence:
- service: tts.google_say
data_template:
entity_id: media_player.hass_speaker
message: >
{% if now().strftime("%H")|int < 12 %}
Good morning
{% elif now().strftime("%H")|int < 18 %}
Good afternoon
{% else %}
Good evening
{% endif %}
It's {{now().strftime("%H%M")}}
It's currently {{states.sensor.dark_sky_summary.state}} and {{states.sensor.dark_sky_temperature.state|round}}
degrees in Grayson. Today will be {{states.sensor.dark_sky_hourly_summary.state|replace(".", "")}}, with a high of
{{states.sensor.dark_sky_daily_high_temperature.state|round}} degrees.

14
scripts/test_tts.yaml Normal file
View File

@@ -0,0 +1,14 @@
test_tts:
sequence:
- service: tts.google_say
data_template:
entity_id: media_player.hass_speaker
message: >
{% if now().strftime("%H")|int < 12 %}
Good morning
{% elif now().strftime("%H")|int < 18 %}
Good afternoon
{% else %}
Good evening
{% endif %}
This is simply a test of google's text to speech platform

View File

@@ -0,0 +1,12 @@
tornado_alarm:
sequence:
- event: LOGBOOK_ENTRY
event_data:
name: EVENT
message: "Sounding Tornado Alarm"
- delay:
seconds: 15
- service: shell_command.tornado_alarm

View File

@@ -0,0 +1,13 @@
tornado_warning:
sequence:
- event: LOGBOOK_ENTRY
event_data:
name: EVENT
message: "Tornado Warning"
#- service: notify.jeff_ios
# data:
# message: 'Tornado Warning Issued for Anchorage House.'
- service: tts.google_say
data:
entity_id: media_player.hass_speaker
message: Atention. Severe Weather Alert. A Tornado Warning has been issued for this area. Repeat. A Tornado Warning has been issued for this area. Sounding Alarm.

View File

@@ -0,0 +1,8 @@
vacation_canceled:
sequence:
- condition: state
entity_id: input_boolean.vacation_mode
state: "on"
- service: input_boolean.turn_off
data:
entity_id: input_boolean.vacation_mode

View File

@@ -0,0 +1,14 @@
washer_finished_notification:
sequence:
- condition: state
entity_id: input_boolean.washer_notification
state: 'on'
- delay:
minutes: 3
- service: notify.all_ios
data:
message: "Washer is done"
- service: input_boolean.turn_off
data:
entity_id: input_boolean.washer_notification
- service: script.washer_notification_audible

View File

@@ -0,0 +1,10 @@
washer_notification_audible:
sequence:
- condition: state
entity_id: input_boolean.audible_notifications
state: "on"
- service: tts.google_say
data:
entity_id: media_player.hass_speaker
message: The Washing Machine has stopped

17
scripts/wxalert_tile.yaml Normal file
View File

@@ -0,0 +1,17 @@
wxalert_tile:
sequence:
## Dismiss any current alert so the UI isn't filled
## up with these if there are more then one.
## Only show the latest alert
- service: persistent_notification.dismiss
data:
notification_id: "wxalert"
## Create a new persistant notification in the UI for a new alert
- service_template: >
{% if states.sensor.pws_alerts.attributes.Message %}
persistent_notification.create
{% endif %}
data_template:
notification_id: "wxalert"
message: '{{ states.sensor.pws_alerts.attributes.Message }}'
title: '{{ states.sensor.pws_alerts.attributes.Description }}'