Syncing changes done for recent youtube videos :)

This commit is contained in:
Jeffrey Stone 2021-01-02 13:20:07 -05:00
parent 2957c7acb3
commit d3268fa2f9
6 changed files with 697 additions and 502 deletions

View File

@ -1,6 +1,6 @@
lockdown_issue:
name: Issue Prevented Lockdown...Please Check
done_message: Issue Resolved...Anchorage House Ready
name: Issue Preventing Lockdown...Please Check
done_message: Issue Resolved...Anchorage House Ready to Arm
entity_id: input_boolean.lockdown_issue
state: 'on'
repeat: 2

View File

@ -1,39 +1,14 @@
automations:
name: Automations
icon: mdi:home-automation
trash_notification:
name: Trash Notification
icon: mdi:telegram
welcome_greeting:
name: Welcome Greeting
icon: mdi:speaker-wireless
lockdown_notification:
name: Lockdown Notifications
icon: mdi:speaker-wireless
garage_notifications:
name: Garage Notifications
icon: mdi:speaker-wireless
tornado_alarm:
name: Tornado Alarm
icon: mdi:speaker-wireless
tstorm_alarm:
name: T-Storm Alarm
icon: mdi:speaker-wireless
text_notify_jeff:
name: Send Jeff Texts
icon: mdi:telegram
text_notify_kat:
name: Send Kat Texts
icon: mdi:telegram
audible_notifications:
name: Audible Notifications
icon: mdi:speaker-wireless
presence_notifications_jeff:
name: Send Jeff Presence Texts
icon: mdi:telegram
presence_notifications_kat:
name: Send Kat Presence Texts
icon: mdi:telegram
kat_heading_home:
name: Kat Heading Home
icon: mdi:car
@ -55,18 +30,7 @@ kat_travel_monitor:
jeff_travel_monitor:
name: Jeff Travel Monitor
icon: mdi:car
notifications_audio:
name: Audio Notifications
icon: mdi:speaker-wireless
text_notifications:
name: Text Notifications
icon: mdi:telegram
presence_text_notifications:
name: Presence Texts
icon: mdi:telegram
presence_audio_notifications:
name: Presence Audio
icon: mdi:speaker-wireless
weather_reports:
name: Weather Info
traffic_reports:

View File

@ -5,8 +5,67 @@
# @description : All the Lightning specific configs.
###############################################################################
input_number:
master_bedroom_wakeup:
name: Master Bedroom Wakeup Lighting
initial: 8.5
min: 8.5
max: 255
step: 8.5
automation:
# MAster Bedroom lights turn on if dark and no other lights already on.
- id: e1cb39dc-0423-11eb-adc1-0242ac120002
alias: Master Bedroom Lights Needed
initial_state: true
trigger:
- entity_id: binary_sensor.master_bedroom_motion
from: 'off'
platform: state
to: 'on'
condition:
- below: 13
condition: numeric_state
entity_id: sensor.master_bedroom_illuminance
- condition: time
after: '07:30:00'
before: '22:00:00'
- condition: state
entity_id: group.master_bedroom
state: 'off'
action:
- service: script.master_bedroom_lights_w_level
data:
level: 255
# Increase the light level in master bedroom from 15% to 100% over 15 minutes.
- id: 1feafed1-0de9-44a4-a2f0-e693bc637ea1
alias: Master bedroom Wake Up
initial_state: true
trigger:
- platform: time
at: 06:15:00
condition:
- condition: state
entity_id: input_boolean.vacation_mode
state: 'off'
action:
- service: script.turn_on
entity_id: script.master_bedroom_morning_wakeup_lighting
- delay: 00:33:00
- service: script.turn_off
entity_id: script.master_bedroom_morning_wakeup_lighting
- service: input_number.set_value
data_template:
entity_id: input_number.master_bedroom_wakeup
value: 8.5
- service: scene.turn_on
entity_id: scene.master_bedroom_on
# Kitchen lights needed when dark and there is motion
- id: e1cb3d56-0423-11eb-adc1-0242ac120002
@ -292,6 +351,44 @@ script:
- service: scene.turn_on
entity_id: scene.theater_bright
#################################################
master_bedroom_lights_w_level:
sequence:
- service: light.turn_on
entity_id: light.jeff_lamp_level_light_color_on_off
data:
brightness: >
{{ level | int }}
color_temp: 369
- service: light.turn_on
entity_id: light.tower_spotlight_level_on_off
data:
brightness: >
{{ level | int }}
color_temp: 369
- service: light.turn_on
entity_id: light.kat_lamp
data:
brightness: >
{{ level | int }}
master_bedroom_morning_wakeup_lighting:
sequence:
- repeat:
while:
- condition: template
value_template: '{{ states("input_number.master_bedroom_wakeup") | int < 256 }}'
sequence:
- service: script.master_bedroom_lights_w_level
data:
level: '{{ states("input_number.master_bedroom_wakeup") }}'
- service: input_number.increment
entity_id: input_number.master_bedroom_wakeup
- delay: 00:01:00
- service: input_number.set_value
data:
entity_id: input_number.master_bedroom_wakeup
value: 8.5

View File

@ -50,6 +50,50 @@ tts:
voice: Brian
cache: True
input_boolean:
text_notify_jeff:
name: Send Texts to Jeff
icon: mdi:telegram
text_notify_kat:
name: Send Texts to Kat
icon: mdi:telegram
text_notify_skylar:
name: Send Texts Skylar
icon: mdi:telegram
text_notify_parents:
name: Send Texts to Parents
icon: mdi:telegram
text_notifications:
name: Text Notifications
icon: mdi:telegram
presence_text_notifications:
name: Presence Texts
icon: mdi:telegram
notifications_audio:
name: Audio Notifications
icon: mdi:speaker-wireless
presence_audio_notifications:
name: Presence Audio
icon: mdi:speaker-wireless
audible_notifications:
name: Audible Notifications
icon: mdi:speaker-wireless
presence_notifications_jeff:
name: Send Jeff Presence Texts
icon: mdi:telegram
presence_notifications_kat:
name: Send Kat Presence Texts
icon: mdi:telegram
lockdown_notification:
name: Lockdown Notifications
icon: mdi:speaker-wireless
garage_notifications:
name: Garage Notifications
icon: mdi:speaker-wireless
trash_notification:
name: Trash Notification
icon: mdi:telegram
notify:
- platform: ios
- name: all_ios
@ -182,31 +226,56 @@ script:
- condition: state
entity_id: input_boolean.text_notifications
state: 'on'
- service: >
{% if who == 'jeff' %}
notify.jeff_ios
{% elif who == 'kat' %}
notify.kat_ios
{% elif who == 'skylar' %}
notify.skylar_ios
{% elif who == 'parents' %}
notify.ios_parents
{% else %}
notify.all_ios
{% endif %}
- choose:
- conditions:
- condition: template
value_template: '{{ who == "jeff"}}'
- condition: state
entity_id: input_boolean.text_notify_jeff
state: 'on'
sequence:
- service: notify.jeff_ios
data:
title: '{{ title }}'
message: '{{ message }}'
- conditions:
- condition: template
value_template: '{{ who == "kat"}}'
- condition: state
entity_id: input_boolean.text_notify_kat
state: 'on'
sequence:
- service: notify.kat_ios
data:
title: '{{ title }}'
message: '{{ message }}'
- conditions:
- condition: template
value_template: '{{ who == "skylar"}}'
- condition: state
entity_id: input_boolean.text_notify_skylar
state: 'on'
sequence:
- service: notify.skylar_ios
data:
title: '{{ title }}'
message: '{{ message }}'
- conditions:
- condition: template
value_template: '{{ who == "parents"}}'
- condition: state
entity_id: input_boolean.text_notify_parents
state: 'on'
sequence:
- service: notify.parents_ios
data:
title: '{{ title }}'
message: '{{ message }}'
default:
- service: notify.all_ios
data:
title: '{{ title }}'
message: '{{ message }}'
#data:
# attachment:
# url: '{{ url }}'
# content-type: '{{ content_type }}'
# hide-thumbnail: false
# push:
# sound: '{{ ios_sound }}'
# badge: 0
# category: '{{ ios_category }}'
# entity_id: '{{ camera_entity }}'
text_alert:
sequence:

View File

@ -458,7 +458,7 @@ automation:
{% set is_are = ' are ' %}
{% set has_have = ' have ' %}
{% endif %}
{%- macro greeting_sentence(person, is_are) -%}
{%- macro greeting_sentence(person, is_are, has_have) -%}
{{ [
person ~ has_have + " arrived.",
person ~ is_are + " in the neighborhood.",
@ -474,11 +474,11 @@ automation:
"I know a secret! " ~ person ~ is_are +" home!",
"Just a quick announcement. " ~ person ~ has_have +" arrived!",
"Hey" ~ person + "! High Five! Glad you are finally home.",
"Just a quick announcement. " ~ person ~has_have + " arrived!",
"Just a quick announcement. " ~ person ~ has_have + " arrived!",
person ~ has_have + " finally made it home."
] | random }}
{%- endmacro -%}
{{greeting_sentence(person)}}
{{greeting_sentence(person, is_are, has_have)}}
- service: group.set
data:
object_id: "arriving"
@ -543,10 +543,8 @@ script:
- service: script.appliances_off
- service: scene.turn_on
entity_id: scene.lights_out
- service: script.security_check_garage
- service: script.security_check_zones
- service: script.lockdown
- service: script.lockdown_issue
- service: input_boolean.turn_on
entity_id: input_boolean.sentry_mode
- service: scene.turn_on
entity_id: scene.all_fans_off
- service: mqtt.publish

File diff suppressed because it is too large Load Diff