mirror of
https://github.com/thejeffreystone/home-assistant-configuration.git
synced 2025-08-15 02:34:43 +00:00
This is the current config. Moved old to the v1-config branch
This commit is contained in:
5
scripts/appliances_off.yaml
Normal file
5
scripts/appliances_off.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
appliances_off:
|
||||
sequence:
|
||||
- service: switch.turn_off
|
||||
data:
|
||||
entity_id: switch.master_fan
|
5
scripts/appliances_on.yaml
Normal file
5
scripts/appliances_on.yaml
Normal 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
12
scripts/driveway_off.yaml
Normal 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
12
scripts/driveway_on.yaml
Normal 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
|
||||
|
6
scripts/family_is_away.yaml
Normal file
6
scripts/family_is_away.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
family_is_away:
|
||||
sequence:
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: "house/family/status"
|
||||
payload_template: "away"
|
6
scripts/family_is_home.yaml
Normal file
6
scripts/family_is_home.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
family_is_home:
|
||||
sequence:
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: "house/family/status"
|
||||
payload_template: "home"
|
15
scripts/fire_alarm_kitchen.yaml
Normal file
15
scripts/fire_alarm_kitchen.yaml
Normal 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.
|
16
scripts/garage_abort_lockdown.yaml
Normal file
16
scripts/garage_abort_lockdown.yaml
Normal 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
11
scripts/garage_close.yaml
Normal 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
|
11
scripts/garage_closing.yaml
Normal file
11
scripts/garage_closing.yaml
Normal 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
|
||||
|
13
scripts/garage_failed_to_close.yaml
Normal file
13
scripts/garage_failed_to_close.yaml
Normal 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.
|
16
scripts/garage_now_closed.yaml
Normal file
16
scripts/garage_now_closed.yaml
Normal 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
11
scripts/garage_open.yaml
Normal 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
|
@@ -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
|
||||
|
@@ -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
|
||||
|
8
scripts/jeff_at_work_notification.yaml
Normal file
8
scripts/jeff_at_work_notification.yaml
Normal 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
|
7
scripts/jeff_destination_arrived.yaml
Normal file
7
scripts/jeff_destination_arrived.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
jeff_destination_arrived:
|
||||
sequence:
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: "jeff/driving/destination"
|
||||
payload: "Arrived"
|
||||
retain: true
|
7
scripts/jeff_destination_harbins.yaml
Normal file
7
scripts/jeff_destination_harbins.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
jeff_destination_harbins:
|
||||
sequence:
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: "jeff/driving/destination"
|
||||
payload: "Harbins"
|
||||
retain: true
|
7
scripts/jeff_destination_home.yaml
Normal file
7
scripts/jeff_destination_home.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
jeff_destination_home:
|
||||
sequence:
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: "jeff/driving/destination"
|
||||
payload: "Home"
|
||||
retain: true
|
7
scripts/jeff_destination_na.yaml
Normal file
7
scripts/jeff_destination_na.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
jeff_destination_na:
|
||||
sequence:
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: "jeff/driving/destination"
|
||||
payload: "na"
|
||||
retain: true
|
7
scripts/jeff_destination_none.yaml
Normal file
7
scripts/jeff_destination_none.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
jeff_destination_none:
|
||||
sequence:
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: "jeff/driving/destination"
|
||||
payload: "none"
|
||||
retain: true
|
7
scripts/jeff_destination_summit.yaml
Normal file
7
scripts/jeff_destination_summit.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
jeff_destination_summit:
|
||||
sequence:
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: "jeff/driving/destination"
|
||||
payload: "Summit"
|
||||
retain: true
|
7
scripts/jeff_destination_zoo.yaml
Normal file
7
scripts/jeff_destination_zoo.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
jeff_destination_zoo:
|
||||
sequence:
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: "jeff/driving/destination"
|
||||
payload: "Zoo"
|
||||
retain: true
|
9
scripts/jeff_is_home_audible.yaml
Normal file
9
scripts/jeff_is_home_audible.yaml
Normal 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
|
@@ -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
|
||||
|
@@ -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
|
||||
|
9
scripts/kat_is_home_audible.yaml
Normal file
9
scripts/kat_is_home_audible.yaml
Normal 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
|
7
scripts/kill_audible_alarm.yaml
Normal file
7
scripts/kill_audible_alarm.yaml
Normal 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
9
scripts/lockdown.yaml
Normal 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
|
11
scripts/lockdown_delay.yaml
Normal file
11
scripts/lockdown_delay.yaml
Normal 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
|
@@ -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
|
||||
|
@@ -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
|
||||
|
||||
|
13
scripts/security_access_authorized.yaml
Normal file
13
scripts/security_access_authorized.yaml
Normal 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
|
18
scripts/security_check_garage.yaml
Normal file
18
scripts/security_check_garage.yaml
Normal 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
|
16
scripts/security_check_verified.yaml
Normal file
16
scripts/security_check_verified.yaml
Normal 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
|
17
scripts/security_check_zones.yaml
Normal file
17
scripts/security_check_zones.yaml
Normal 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
|
31
scripts/security_report.yaml
Normal file
31
scripts/security_report.yaml
Normal 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 %}
|
||||
|
9
scripts/security_sound_alarm.yaml
Normal file
9
scripts/security_sound_alarm.yaml
Normal 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
|
10
scripts/security_sound_alarm_intro.yaml
Normal file
10
scripts/security_sound_alarm_intro.yaml
Normal 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
|
12
scripts/security_warning_back_door.yaml
Normal file
12
scripts/security_warning_back_door.yaml
Normal 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
|
12
scripts/security_warning_front_door.yaml
Normal file
12
scripts/security_warning_front_door.yaml
Normal 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
|
12
scripts/security_warning_garage_door.yaml
Normal file
12
scripts/security_warning_garage_door.yaml
Normal 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
|
12
scripts/security_warning_garage_motion.yaml
Normal file
12
scripts/security_warning_garage_motion.yaml
Normal 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
|
12
scripts/security_warning_laundry_door.yaml
Normal file
12
scripts/security_warning_laundry_door.yaml
Normal 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
|
9
scripts/skylar_dressed_notifications.yaml
Normal file
9
scripts/skylar_dressed_notifications.yaml
Normal 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
12
scripts/standby.yaml
Normal 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
|
17
scripts/status_report.yaml
Normal file
17
scripts/status_report.yaml
Normal 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
14
scripts/test_tts.yaml
Normal 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
|
12
scripts/tornado_alarm.yaml
Normal file
12
scripts/tornado_alarm.yaml
Normal 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
|
||||
|
||||
|
||||
|
13
scripts/tornado_warning.yaml
Normal file
13
scripts/tornado_warning.yaml
Normal 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.
|
8
scripts/vacation_canceled.yaml
Normal file
8
scripts/vacation_canceled.yaml
Normal 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
|
14
scripts/washer_finished_notification.yaml
Normal file
14
scripts/washer_finished_notification.yaml
Normal 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
|
10
scripts/washer_notification_audible.yaml
Normal file
10
scripts/washer_notification_audible.yaml
Normal 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
17
scripts/wxalert_tile.yaml
Normal 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 }}'
|
Reference in New Issue
Block a user