Compare commits

..

7 Commits

Author SHA1 Message Date
CCOSTAN cbea31a807 Fixing a lot of stuff related to Spook! #1350 2024-09-25 18:15:57 +00:00
CCOSTAN 9105e5fc12 Disabling Nest Protects for now #250 2024-09-25 15:51:00 +00:00
CCOSTAN 64ab9b1e51 Added Places to #1472 2024-09-24 21:29:00 +00:00
CCOSTAN 348ea39056 Lots of little bug fixes! #1141 2024-09-18 18:05:53 +00:00
CCOSTAN 16164f93f7 another minor update #1141 2024-09-18 17:51:15 +00:00
CCOSTAN 374bbcf312 fixes #1141 with AI generated Flag data til 2030. 2024-09-18 17:43:14 +00:00
CCOSTAN 2c0bffa221 REMOVE iss INTERGRATION SINCE IT WAS SO BUGGY. Just kept spamming the logs. #110 2024-09-18 16:56:20 +00:00
22 changed files with 137 additions and 234 deletions

View File

@ -1 +1 @@
2024.10.0.dev202409030223
2024.10.0.dev202409250230

View File

@ -8,8 +8,8 @@
- platform: state
entity_id:
- sensor.downstairs_thermostat_hvac_state
- sensor.upstairs_thermostat_hvac_state
- climate.downstairs
- climate.upstairs
from: 'off'
action:

View File

@ -10,10 +10,6 @@
mode: single
# Set the trigger for the automation
trigger:
# The automation will be triggered when the state of the "binary_sensor.downstairs_nest_away" entity changes to "on"
- platform: state
entity_id: binary_sensor.downstairs_nest_away
to: 'on'
# The automation will also be triggered when the state of the "group.family" entity changes to "not_home"
- platform: state
entity_id: group.family

View File

@ -6,9 +6,6 @@
- alias: 'Late Night Helper'
id: acacc9b4-b66d-46d2-bf6d-47b75afddb57
trigger:
- platform: state
entity_id: binary_sensor.downstairs_nest_away
to: 'off'
- platform: state
entity_id: group.family
to: 'home'

View File

@ -11,9 +11,6 @@
trigger:
- platform: event
event_type: upstairs_light_on
- platform: state
entity_id: binary_sensor.upstairs_nest_away
to: 'off'
condition:
- condition: state
@ -29,17 +26,10 @@
- alias: 'Upstairs Light Turn off'
id: ee50f882-94b7-4cfc-bc2e-4a3e07ae08a8
trigger:
- platform: event
event_type: upstairs_light_off
- platform: state
entity_id: binary_sensor.upstairs_nest_away
to: 'on'
- platform: state
entity_id: light.upstairs_lights
to: 'on'
for: '02:00:00'
action:
service: light.turn_off
entity_id: light.upstairs_lights

View File

@ -2,10 +2,8 @@ Weather:
entities:
- climate.downstairs
- sensor.downstairs_thermostat_humidity
- binary_sensor.downstairs_nest_away
- climate.upstairs
- sensor.upstairs_thermostat_humidity
- binary_sensor.upstairs_nest_away
- sensor.pirateweather_cloud_coverage
- sensor.pirateweather_minutely_summary
# - sensor.pirateweather_nearest_storm_distance
@ -16,6 +14,5 @@ Weather:
- sensor.pirateweather_temperature
- sensor.pirateweather_uv_index
- sensor.moon
- binary_sensor.iss
- sensor.launch_window
- sensor.next_launch

View File

@ -65,3 +65,11 @@ entity_config:
linked_motion_sensor: binary_sensor.camera3_motion_sensor
video_codec: copy
stream_source: !secret camera3_stream
camera.poolcam:
linked_motion_sensor: binary_sensor.poolcam_motion_sensor
video_codec: copy
stream_source: !secret camera4_stream
camera.birdseye:
linked_motion_sensor: binary_sensor.birdseye_motion_sensor
video_codec: copy
stream_source: !secret camera5_stream

82
config/json_data/flag_days.json Executable file
View File

@ -0,0 +1,82 @@
{
"Flag_Days_US": {
"static": {
"2/12": "Lincoln's Birthday",
"5/15": "Peace Officers Memorial Day",
"6/14": "Flag Day",
"7/4": "Independence Day",
"7/27": "National Korean War Veterans Armistice Day",
"9/11": "Patriot Day",
"9/17": "Constitution Day",
"10/27": "Navy Day",
"11/11": "Veterans Day",
"12/7": "Pearl Harbor Remembrance Day"
},
"dynamic": {
"01/20/2025": "Inauguration Day",
"01/16/2023": "Martin Luther King Jr. Day",
"01/15/2024": "Martin Luther King Jr. Day",
"01/19/2026": "Martin Luther King Jr. Day",
"01/18/2027": "Martin Luther King Jr. Day",
"01/17/2028": "Martin Luther King Jr. Day",
"01/15/2029": "Martin Luther King Jr. Day",
"01/21/2030": "Martin Luther King Jr. Day",
"02/20/2023": "Washington's Birthday (Presidents Day)",
"02/19/2024": "Washington's Birthday (Presidents Day)",
"02/17/2025": "Washington's Birthday (Presidents Day)",
"02/16/2026": "Washington's Birthday (Presidents Day)",
"02/15/2027": "Washington's Birthday (Presidents Day)",
"02/21/2028": "Washington's Birthday (Presidents Day)",
"02/19/2029": "Washington's Birthday (Presidents Day)",
"02/18/2030": "Washington's Birthday (Presidents Day)",
"05/20/2023": "Armed Forces Day",
"05/18/2024": "Armed Forces Day",
"05/17/2025": "Armed Forces Day",
"05/16/2026": "Armed Forces Day",
"05/15/2027": "Armed Forces Day",
"05/20/2028": "Armed Forces Day",
"05/19/2029": "Armed Forces Day",
"05/18/2030": "Armed Forces Day",
"05/29/2023": "Memorial Day",
"05/27/2024": "Memorial Day",
"05/26/2025": "Memorial Day",
"05/25/2026": "Memorial Day",
"05/31/2027": "Memorial Day",
"05/29/2028": "Memorial Day",
"05/28/2029": "Memorial Day",
"05/27/2030": "Memorial Day",
"09/04/2023": "Labor Day",
"09/02/2024": "Labor Day",
"09/01/2025": "Labor Day",
"09/07/2026": "Labor Day",
"09/06/2027": "Labor Day",
"09/04/2028": "Labor Day",
"09/03/2029": "Labor Day",
"09/02/2030": "Labor Day",
"09/15/2023": "National POW/MIA Recognition Day",
"09/20/2024": "National POW/MIA Recognition Day",
"09/19/2025": "National POW/MIA Recognition Day",
"09/18/2026": "National POW/MIA Recognition Day",
"09/17/2027": "National POW/MIA Recognition Day",
"09/15/2028": "National POW/MIA Recognition Day",
"09/21/2029": "National POW/MIA Recognition Day",
"09/20/2030": "National POW/MIA Recognition Day",
"10/09/2023": "Columbus Day",
"10/14/2024": "Columbus Day",
"10/13/2025": "Columbus Day",
"10/12/2026": "Columbus Day",
"10/11/2027": "Columbus Day",
"10/09/2028": "Columbus Day",
"10/08/2029": "Columbus Day",
"10/14/2030": "Columbus Day",
"11/07/2023": "Election Day",
"11/05/2024": "Election Day",
"11/04/2025": "Election Day",
"11/03/2026": "Election Day",
"11/02/2027": "Election Day",
"11/07/2028": "Election Day",
"11/06/2029": "Election Day",
"11/05/2030": "Election Day"
}
}
}

View File

@ -102,7 +102,6 @@
- light.led_garage_snip
- light.led_garage_small
- light.led_outdoor_den
- light.front_door
- light.treeflood
- light.flood_2
- light.pathmiddle

View File

@ -9,7 +9,7 @@ sensor:
sensors:
last_alexa:
value_template: >
{{ states.media_player | selectattr('attributes.last_called','eq',True) | map(attribute='entity_id') | first }}
{{ states.media_player | selectattr('attributes.last_called','eq',True) | map(attribute='entity_id') | first | default('none') }}
#-------------------------------------------

View File

@ -1,43 +0,0 @@
#-------------------------------------------
# HACS Related Information
# @CCOSTAN
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
# https://github.com/CCOSTAN/Home-AssistantConfig/issues/797
#-------------------------------------------
#-------------------------------------------
rest_command:
github_new_version_hacs:
url: https://api.github.com/repos/ccostan/Home-AssistantConfig/issues
method: POST
headers:
Authorization: !secret github_token
payload: '{"title":"HACS {{ repo }}","body":"{{ message }}"}'
#-------------------------------------------
automation:
- alias: HACS Component Update Notification
id: e5266b0b-017f-4c69-83a3-357aaa03dbe2
mode: single
trigger:
- platform: state
entity_id: sensor.hacs
condition:
- condition: numeric_state
entity_id: sensor.hacs
above: 0
action:
- service: rest_command.github_new_version_hacs
data:
repo: 'There are {{ states.sensor.hacs.state }} updates to HACS components at {{ states("sensor.time") }}:'
message: >-
{%- for repo in state_attr("sensor.hacs","repositories") -%}
{{repo['display_name'] }} {{ repo['installed_version'] }} to {{ repo['available_version'] }}
{%- endfor %}
- delay:
days: 1

View File

@ -32,27 +32,40 @@ sensor:
scan_interval: 14400
value_template: >
{% set today = now().month ~ '/' ~ now().day %}
{% set holiday = value_json.MAJOR_US.static[ today ] %}
{% set holiday = value_json.MAJOR_US.static[today] if today in value_json.MAJOR_US.static else "" %}
{% if holiday | trim == "" %}
{% set today = now().month ~ '/' ~ now().day ~ '/' ~ now().year %}
{% set holiday = value_json.MAJOR_US.dynamic[ today ] %}
{% set holiday = value_json.MAJOR_US.dynamic[today] if today in value_json.MAJOR_US.dynamic else "" %}
{% endif %}
{{ holiday }}
################################################################################
# Sensor Uses Flag data from this calendar - http://www.webcal.fi/en-US/flag_days.php
# Sensor Uses Flag data generated by AI
################################################################################
- platform: rest
resource: https://www.webcal.fi/cal.php?id=335&format=json&start_year=current_year&end_year=current_year&tz=America%2FNew_York
resource: https://raw.githubusercontent.com/CCOSTAN/Home-AssistantConfig/master/config/json_data/flag_days.json
name: Flag
scan_interval: 14400
value_template: >-
{%- set now_string = now().strftime('%Y-%m-%d') %}
{% for day_val in value_json if day_val.date == now_string %}
{% set now_string = now().strftime('%m/%d') %}
{% set now_full_string = now().strftime('%m/%d/%Y') %}
{% if value_json is defined and value_json.Flag_Days_US is defined %}
{% set static_days = value_json.Flag_Days_US.static %}
{% set dynamic_days = value_json.Flag_Days_US.dynamic %}
{% if static_days is defined and now_string in static_days %}
True
{% elif dynamic_days is defined %}
{% for day_val in dynamic_days %}
{% if day_val.date == now_full_string %}
True
{% endif %}
{% endfor %}
{% else %}
False
{% endfor -%}
{% endif %}
{% else %}
{% endif %}
################################################################################
# Countdown Sensor using WolfRam Alpha Natural language queries

View File

@ -1,96 +0,0 @@
######################################################################################################
# Nest Protect Package
# @CCOSTAN
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
# - Write up- https://www.vcloudinfo.com/2017/06/psa-check-out-your-smoke-detectors-once.html
######################################################################################################
#-----------------------------------
#
group:
protects:
name: Nest Protects
entities:
- binary_sensor.upstairs_living_room_nest_protect_online
- binary_sensor.hallway_nest_protect_kids_hallway_online
- binary_sensor.justins_room_nest_protect_online
- binary_sensor.kitchen_nest_protect_online
- binary_sensor.master_bedroom_nest_protect_online
- binary_sensor.master_hallway_nest_protect_online
- binary_sensor.paiges_room_nest_protect_paiges_room_online
- binary_sensor.upstairs_bedroom_nest_protect_online
- binary_sensor.office_nest_protect_online
automation:
- alias: Nest protect emergency
id: 95856443-6da8-4bef-80b2-f11c725b4dad
mode: parallel
trigger:
platform: state
entity_id:
- sensor.hallway_nest_protect_kids_hallway_smoke_status
- sensor.hallway_nest_protect_kids_hallway_co_status
- sensor.justins_room_nest_protect_smoke_status
- sensor.justins_room_nest_protect_co_status
- sensor.kitchen_nest_protect_smoke_status
- sensor.kitchen_nest_protect_co_status
- sensor.master_bedroom_nest_protect_smoke_status
- sensor.master_bedroom_nest_protect_co_status
- sensor.master_hallway_nest_protect_smoke_status
- sensor.master_hallway_nest_protect_co_status
- sensor.office_nest_protect_smoke_status
- sensor.office_nest_protect_co_status
- sensor.paiges_room_nest_protect_paiges_room_smoke_status
- sensor.paiges_room_nest_protect_paiges_room_co_status
- sensor.upstairs_bedroom_nest_protect_smoke_status
- sensor.upstairs_bedroom_nest_protect_co_status
- sensor.upstairs_living_room_nest_protect_smoke_status
- sensor.upstairs_living_room_nest_protect_co_status
to: 'Emergency'
action:
- service: input_boolean.turn_on
entity_id: input_boolean.alert_mode
- service: script.speech_engine
data:
value1: "The {{ trigger.to_state.attributes.friendly_name }} is now {{ (trigger.to_state.state)|replace('_', ' ') }}. Please check immediately."
- service: script.notify_engine
data:
value1: "An emergency has been detected on {{ trigger.to_state.attributes.friendly_name }} Please investigate IMMEDIATELY."
who: "family"
group: '{{ trigger.to_state.attributes.friendly_name }}'
- service: script.emergency
data:
call_garage_open: 1
- alias: Nest Protect Offline Notify
id: 43983144-a54f-4966-ae03-755e62cd35ec
mode: parallel
trigger:
platform: state
entity_id:
- binary_sensor.upstairs_living_room_nest_protect_online
- binary_sensor.hallway_nest_protect_kids_hallway_online
- binary_sensor.justins_room_nest_protect_online
- binary_sensor.kitchen_nest_protect_online
- binary_sensor.master_bedroom_nest_protect_online
- binary_sensor.master_hallway_nest_protect_online
- binary_sensor.paiges_room_nest_protect_paiges_room_online
- binary_sensor.upstairs_bedroom_nest_protect_online
- binary_sensor.office_nest_protect_online
from: 'on'
action:
- service: script.notify_engine
data:
value1: "The {{ trigger.to_state.attributes.friendly_name }} is now {{ (trigger.to_state.state)|replace('_', ' ') }}. Please check immediately."
who: "family"
group: '{{ trigger.to_state.attributes.friendly_name }}'

View File

@ -3,12 +3,7 @@
# @CCOSTAN
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
#-------------------------------------------
#------ISS----------------------------------
#-------------------------------------------
# binary_sensor:
# - platform: iss
# show_on_map: true
#-------------------------------------------
sensor:

View File

@ -25,12 +25,9 @@
state: 'on'
rgb_color: &smoke [245,245,245]
brightness: 30
light.front_door:
state: 'on'
rgb_color: &red [204,0,0]
light.flood_2:
state: 'on'
rgb_color: *red
rgb_color: &red [204,0,0]
light.outdoor_sconce_3:
state: 'on'
rgb_color: *smoke
@ -68,15 +65,12 @@
light.outdoor_foyer:
state: 'on'
rgb_color: *gold
light.front_door:
state: 'on'
rgb_color: &purple [128,0,128]
light.flood_2:
state: 'on'
rgb_color: *gold
light.outdoor_sconce_1:
state: 'on'
rgb_color: *purple
rgb_color: &purple [128,0,128]
light.outdoor_sconce_2:
state: 'on'
rgb_color: *gold
@ -117,9 +111,6 @@
light.outdoor_foyer:
state: 'on'
rgb_color: &lavender [244,187,255]
light.front_door:
state: 'on'
rgb_color: *lavender
light.flood_2:
state: 'on'
rgb_color: &yellow [255,255,0]
@ -157,9 +148,6 @@
light.flood_2:
state: 'on'
rgb_color: *red
light.front_door:
state: 'on'
rgb_color: *yellow
light.outdoor_sconce_1:
state: 'on'
rgb_color: *smoke
@ -193,9 +181,6 @@
light.flood_2:
state: 'on'
rgb_color: *red
light.front_door:
state: 'on'
rgb_color: *red
light.outdoor_sconce_1:
state: 'on'
rgb_color: *red
@ -239,9 +224,6 @@
light.treeflood:
state: 'on'
rgb_color: *orange
light.front_door:
state: 'on'
rgb_color: *orange
light.outdoor_sconce_1:
state: 'on'
rgb_color: *blue
@ -260,9 +242,6 @@
light.flood_2:
state: 'on'
rgb_color: *green
light.front_door:
state: 'on'
rgb_color: *orange
light.outdoor_sconce_1:
state: 'on'
rgb_color: *orange
@ -316,9 +295,6 @@
light.treeflood:
state: 'on'
rgb_color: *blue
light.front_door:
state: 'on'
rgb_color: *white
light.outdoor_sconce_1:
state: 'on'
rgb_color: *white
@ -352,9 +328,6 @@
light.flood_2:
state: 'on'
rgb_color: *green
light.front_door:
state: 'on'
rgb_color: *green
light.outdoor_sconce_1:
state: 'on'
rgb_color: *red
@ -386,9 +359,6 @@
light.flood_2:
state: 'on'
rgb_color: *red
light.front_door:
state: 'on'
rgb_color: *yellow
light.outdoor_sconce_1:
state: 'on'
rgb_color: *blue

View File

@ -45,7 +45,7 @@ speech_processing:
state: 'off'
- condition: time
after: '08:00:00'
before: '21:30:00'
before: '22:00:00'
- condition: state
entity_id: input_boolean.alert_mode
state: 'on'

View File

@ -63,7 +63,7 @@
{%- if states('sensor.nws_alerts')|int > 0 -%}
{%- set alert_description = state_attr('sensor.nws_alerts', 'Alerts') %}
[WEATHER ALERT: Summarize the WHAT, WHEN and IMPACTS. Use the Situation Overview Section to best understand what is going on]
[WEATHER ALERT: Summarize the weather alert and give overall details on any storms. Use the Situation Overview Section to best understand what is going on - Be sure to highlight any impacts to Seminole County or Tallahassee]
{{ alert_description }}
[END of Weather Alert]
{%- endif %}
@ -155,12 +155,6 @@
{% endif -%}
{%- endmacro -%}
{%- macro iss() -%}
{% if is_state('binary_sensor.iss', 'on') -%}
The international space station is above us now and there are {{ states.binary_sensor.iss.attributes['number_of_people_in_space'] }} people in space right now. [include an ISS fact at the end]
{% endif -%}
{%- endmacro -%}
{%- macro moon() -%}
{% if (now().hour == 17) %}
Current Moon phase: {{ states('sensor.moon') }} [Give a fact and mention today's phase]
@ -245,13 +239,13 @@
{% set time = current_date.strftime('%I:%M %p') %}
Current date time: {{ month }} {{ day }}, {{ year }} {{ time }}
Residents: Location
- Carlo (Dad): {{ states('device_tracker.life360_carlo_costanzo') }} at {{ state_attr('device_tracker.life360_carlo_costanzo', 'place') | replace(' (Costanzo Family)', '') | replace(' (Desantis Family)', '') if state_attr('device_tracker.life360_carlo_costanzo', 'place') != None else 'Away' }}
- Stacey (Mom): {{ states('device_tracker.life360_stacey_costanzo')}} at {{ state_attr('device_tracker.life360_stacey_costanzo', 'place') | replace(' (Costanzo Family)', '') | replace(' (Desantis Family)', '') if state_attr('device_tracker.life360_stacey_costanzo', 'place') != None else 'Away' }}
- Justin (Son): {{ states('device_tracker.life360_justin_costanzo') }} at {{ state_attr('device_tracker.life360_justin_costanzo', 'place') | replace(' (Costanzo Family)', '') | replace(' (Desantis Family)', '') if state_attr('device_tracker.life360_justin_costanzo', 'place') != None else 'Away' }}
- Paige (Daughter): {{ states('device_tracker.life360_paige_costanzo') }} at {{ state_attr('device_tracker.life360_paige_costanzo', 'place') | replace(' (Costanzo Family)', '') | replace(' (Desantis Family)', '') if state_attr('device_tracker.life360_paige_costanzo', 'place') != None else 'Away' }}
- Carlo (Dad): {{ states('person.carlo') }} at {{ states('sensor.carlo_place') if states('sensor.carlo_place') != None else 'Away' }}
- Stacey (Mom): {{ states('person.stacey')}} at {{ states('sensor.stacey_place') if states('sensor.stacey_place') != None else 'Away' }}
- Justin (Son): {{ states('person.justin') }} at {{ states('sensor.justin_place') if states('sensor.justin_place') != None else 'Away' }}
- Paige (Daughter): {{ states('person.paige') }} at {{ states('sensor.paige_place') if states('sensor.paige_place') != None else 'Away' }}
and our cat Molly: Always home.
Previous broadcast: "{{ state_attr('sensor.openai_response', 'response') }}"
[Avoid repeating information from the previous broadcast if it was within the hour]
[Announce where everyone is if they are not at home. Avoid repeating information from the previous broadcast if it was within the hour]
New Information:
{% if call_no_announcement != 1 %}
@ -329,7 +323,7 @@
{% endif %}
{# call a Random fact about the house or inspiration quote #}
{{ ([iss, moon, uv, holiday, days_until, outside_weather, outside_weather, inspirational_quote, fact_of_the_day]|random)() }}
{{ ([moon, uv, holiday, days_until, outside_weather, outside_weather, inspirational_quote, fact_of_the_day]|random)() }}
{%- endmacro -%}
{{- cleanup(mother_of_all_macros()) -}}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -156,7 +156,7 @@ rules:
- light.led_garage_large
- light.led_garage_small
- light.led_outdoor_den
- light.front_door
- light.flood_2
states:
- state: 'on'
class: 'light-on'