Updates to the Rheem water heeater. closes #1150

This commit is contained in:
CCOSTAN 2023-11-14 20:53:13 +00:00
parent 4da2eb3136
commit 0a471c4363
7 changed files with 105 additions and 40 deletions

View File

@ -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:

View File

@ -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

View File

@ -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

View File

@ -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:

View File

@ -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."

View File

@ -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

View File

@ -2,31 +2,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.',
'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! ',
'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.'
'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' %}
{% 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.
{% endif %}
{% if now().strftime('%a') == 'Wed' %}
{% if day_of_week == '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 %}
{% 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.
{%- endmacro -%}