diff --git a/config/automation/Speech/home_stats.yaml b/config/automation/Speech/home_stats.yaml index 7f0e948d..8c8b8195 100755 --- a/config/automation/Speech/home_stats.yaml +++ b/config/automation/Speech/home_stats.yaml @@ -19,9 +19,9 @@ action: - # - wait_template: >- - # {{ is_state('group.garage_doors', 'closed') }} - # timeout: 00:05:30 + - wait_template: >- + {{ is_state('group.garage_doors', 'closed') }} + timeout: 00:05:30 - service: script.speech_engine data: diff --git a/config/automation/Timed_Triggers/sunset_turn_on.yaml b/config/automation/Timed_Triggers/sunset_turn_on.yaml index 8db31559..7fab76e7 100755 --- a/config/automation/Timed_Triggers/sunset_turn_on.yaml +++ b/config/automation/Timed_Triggers/sunset_turn_on.yaml @@ -53,8 +53,8 @@ - service: light.turn_on entity_id: - light.living_room_accents - # - wait_template: >- - # {{ is_state('group.garage_doors', 'closed') }} + - wait_template: >- + {{ is_state('group.garage_doors', 'closed') }} - wait_template: >- {{ is_state('group.entry_points', 'off') }} - service: script.speech_engine diff --git a/config/automation/guard_dog.yaml b/config/automation/guard_dog.yaml index 9848785e..86f3e725 100755 --- a/config/automation/guard_dog.yaml +++ b/config/automation/guard_dog.yaml @@ -19,10 +19,10 @@ to: 'on' from: 'off' - # condition: - # - condition: state - # entity_id: group.garage_doors - # state: 'closed' + condition: + - condition: state + entity_id: group.garage_doors + state: 'closed' action: - service: script.dog_bark diff --git a/config/automation/late_night_outside_helper.yaml b/config/automation/late_night_outside_helper.yaml index 54a7d59d..2063272b 100755 --- a/config/automation/late_night_outside_helper.yaml +++ b/config/automation/late_night_outside_helper.yaml @@ -48,7 +48,7 @@ - switch.front_door_outlet - switch.foyer_outlet - wait_template: "{{ is_state('group.entry_points', 'off') }}" -# - wait_template: "{{ is_state('group.garage_doors', 'closed') #}}" + - wait_template: "{{ is_state('group.garage_doors', 'closed') }}" - service: script.monthly_color_scene - choose: diff --git a/config/packages/rheem_econet.yaml b/config/packages/rheem_econet.yaml index 1872358b..5368281e 100755 --- a/config/packages/rheem_econet.yaml +++ b/config/packages/rheem_econet.yaml @@ -4,16 +4,66 @@ # Support for Rheem Water Heaters (https://amzn.to/36yOSnN) # https://github.com/CCOSTAN/Home-AssistantConfig/issues/892 # https://www.home-assistant.io/integrations/econet/ -# No Sensors are added. Only 2 Services to put the mode in Vacation Mode (and then exit) #------------------------------------------- -# Moved to UI - -# water_heater: -# - platform: econet -# username: !secret rheem_username -# password: !secret rheem_password - ############################################################################## ### Automations ############################################################################## + +automation: + - alias: "Rheem Water Heater Health Monitoring" + trigger: + - platform: numeric_state + entity_id: sensor.rheem_wh_compressor_health + below: 90 # Adjust threshold as needed + - platform: numeric_state + entity_id: sensor.rheem_wh_tank_health + below: 90 # Adjust threshold as needed + action: + - choose: + - conditions: + - condition: trigger + id: sensor.rheem_wh_compressor_health + sequence: + - service: script.notify_engine + data: + title: "Maintenance Alert" + value1: "Rheem Water Tank Compressor Health below recommended level." + who: 'carlo' + apns_id: 'information' + - conditions: + - condition: trigger + id: sensor.rheem_wh_tank_health + sequence: + - service: script.notify_engine + data: + title: "Maintenance Alert" + value1: "Rheem Water Tank Health below recommended level." + who: 'carlo' + apns_id: 'information' + + - alias: "Rheem Water Heater Hot Water Availability Alert" + trigger: + - platform: numeric_state + entity_id: sensor.rheem_wh_available_hot_water + below: 30 # Alert when available hot water drops below 30% + action: + - service: script.notify_engine + data: + title: "Hot Water Alert" + value1: "Available hot water is below 30%." + who: 'carlo' + apns_id: 'information' + - service: script.speech_engine + data: + value1: "Please be aware that the hot water has dropped below 30% availability. Please consider taking a shower at another time." + + - wait_template: "{{ states('sensor.rheem_wh_available_hot_water')|float > 50 }}" + timeout: '01:00:00' # Adjust timeout as needed + - service: script.speech_engine + data: + value1: "The available hot water is now above 50%. Normal showering can resume." + + + + diff --git a/config/recorder.yaml b/config/recorder.yaml index b2d61b37..3699e461 100755 --- a/config/recorder.yaml +++ b/config/recorder.yaml @@ -20,6 +20,10 @@ exclude: - media_player.carlo_s_4th_fire - media_player.alarm_panel_2 - media_player.tap + - script.speech_processing + - script.amp_settings + - sensor.carlo_ap + - sensor.carlo_fast - sensor.clock_am_pm - sensor.clock_date - sensor.clock_day diff --git a/config/templates/speech/briefing.yaml b/config/templates/speech/briefing.yaml index 6885d0ac..e1730b29 100755 --- a/config/templates/speech/briefing.yaml +++ b/config/templates/speech/briefing.yaml @@ -1,31 +1,42 @@ >- {%- macro dark_outside() -%} - {{ [ - 'It is pretty dark outside. I will turn on the outside lights now.', - 'The sun is offical down. Exterior Cameras are now motion activated.', - 'The sun has been ushered off the stage. Activating the perimiter cameras.', - 'It is a little past Sunset. Time to turn on the outside lights. I am on it.', - 'I will switch on the outside lights. It is getting dark outside.', - 'Time to turn on the front lights. I will take care of it.', - 'Switching to night mode! ', - 'If you have not looked outside lately the light of the day is gone.', - 'The outside world has switched to dark mode.' - ]|random }} + {{ [ + 'It is pretty dark outside. I will turn on the outside lights now.', + 'The sun is official down. Exterior Cameras are now motion activated.', + 'The sun has been ushered off the stage. Activating the perimeter cameras.', + 'It is a little past Sunset. Time to turn on the outside lights. I am on it.', + 'I will switch on the outside lights. It is getting dark outside.', + 'Time to turn on the front lights. I will take care of it.', + 'Switching to night mode!', + 'If you have not looked outside lately the light of the day is gone.', + 'The outside world has switched to dark mode.', + 'Evening has arrived. Engaging outdoor security protocols.', + 'Darkness falls. Its time for the lights to rise. Activating now.', + 'Night has begun its shift. Illuminating the exterior for safety.', + 'Goodbye daylight, hello moonlight. Outdoor lights are coming on.', + 'As night takes the stage, its time for lights to shine outside.', + 'Sunset complete. Implementing nighttime security measures.', + 'Dusk is here, let there be light! Activating outdoor lights.' + ]|random }} {%- endmacro -%} + {%- macro responsibilities() -%} - {% if now().strftime('%a') == 'Wed' or now().strftime('%a') == 'Sun' %} - Today is {{ now().strftime('%A') }} and {{ now().strftime('%A') }} is garbage day. - {% endif %} - {% if now().strftime('%a') == 'Wed' %} - Both Recycling and regular Garbage goes out. Please take out all of the garbage cans tonight. - {% endif %} - {% if now().strftime('%j')|int(9999)% 2 != 0 %} - Today is Justin's day to do the chores. - {% else %} - Today is Paige's day to do the chores. - {% endif %} + {% set day_of_week = now().strftime('%a') %} + {% if day_of_week in ['Wed', 'Sun'] %} + Today is {{ now().strftime('%A') }} and {{ now().strftime('%A') }} is garbage day. + {% if day_of_week == 'Wed' %} + Both Recycling and regular Garbage goes out. Please take out all of the garbage cans tonight. + {% endif %} + {% endif %} + {% set day_of_year = now().strftime('%j')|int(9999) %} + {% if day_of_year % 2 != 0 %} + Today is Justin's day to do the chores. + {% else %} + Today is Paige's day to do the chores. + {% endif %} {%- endmacro -%} + {%- macro inside_weather() -%} Inside the house, it is {{ states.climate.downstairs.attributes['current_temperature'] }} degrees with around {{ states('sensor.downstairs_thermostat_humidity') }} percent humidity.