Updates to the Rheem water heeater. closes #1150
This commit is contained in:
parent
4da2eb3136
commit
0a471c4363
|
@ -19,9 +19,9 @@
|
||||||
|
|
||||||
action:
|
action:
|
||||||
|
|
||||||
# - wait_template: >-
|
- wait_template: >-
|
||||||
# {{ is_state('group.garage_doors', 'closed') }}
|
{{ is_state('group.garage_doors', 'closed') }}
|
||||||
# timeout: 00:05:30
|
timeout: 00:05:30
|
||||||
|
|
||||||
- service: script.speech_engine
|
- service: script.speech_engine
|
||||||
data:
|
data:
|
||||||
|
|
|
@ -53,8 +53,8 @@
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
entity_id:
|
entity_id:
|
||||||
- light.living_room_accents
|
- light.living_room_accents
|
||||||
# - wait_template: >-
|
- wait_template: >-
|
||||||
# {{ is_state('group.garage_doors', 'closed') }}
|
{{ is_state('group.garage_doors', 'closed') }}
|
||||||
- wait_template: >-
|
- wait_template: >-
|
||||||
{{ is_state('group.entry_points', 'off') }}
|
{{ is_state('group.entry_points', 'off') }}
|
||||||
- service: script.speech_engine
|
- service: script.speech_engine
|
||||||
|
|
|
@ -19,10 +19,10 @@
|
||||||
to: 'on'
|
to: 'on'
|
||||||
from: 'off'
|
from: 'off'
|
||||||
|
|
||||||
# condition:
|
condition:
|
||||||
# - condition: state
|
- condition: state
|
||||||
# entity_id: group.garage_doors
|
entity_id: group.garage_doors
|
||||||
# state: 'closed'
|
state: 'closed'
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: script.dog_bark
|
- service: script.dog_bark
|
||||||
|
|
|
@ -48,7 +48,7 @@
|
||||||
- switch.front_door_outlet
|
- switch.front_door_outlet
|
||||||
- switch.foyer_outlet
|
- switch.foyer_outlet
|
||||||
- wait_template: "{{ is_state('group.entry_points', 'off') }}"
|
- 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
|
- service: script.monthly_color_scene
|
||||||
|
|
||||||
- choose:
|
- choose:
|
||||||
|
|
|
@ -4,16 +4,66 @@
|
||||||
# Support for Rheem Water Heaters (https://amzn.to/36yOSnN)
|
# Support for Rheem Water Heaters (https://amzn.to/36yOSnN)
|
||||||
# https://github.com/CCOSTAN/Home-AssistantConfig/issues/892
|
# https://github.com/CCOSTAN/Home-AssistantConfig/issues/892
|
||||||
# https://www.home-assistant.io/integrations/econet/
|
# 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
|
### 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."
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,10 @@ exclude:
|
||||||
- media_player.carlo_s_4th_fire
|
- media_player.carlo_s_4th_fire
|
||||||
- media_player.alarm_panel_2
|
- media_player.alarm_panel_2
|
||||||
- media_player.tap
|
- media_player.tap
|
||||||
|
- script.speech_processing
|
||||||
|
- script.amp_settings
|
||||||
|
- sensor.carlo_ap
|
||||||
|
- sensor.carlo_fast
|
||||||
- sensor.clock_am_pm
|
- sensor.clock_am_pm
|
||||||
- sensor.clock_date
|
- sensor.clock_date
|
||||||
- sensor.clock_day
|
- sensor.clock_day
|
||||||
|
|
|
@ -2,31 +2,42 @@
|
||||||
{%- macro dark_outside() -%}
|
{%- macro dark_outside() -%}
|
||||||
{{ [
|
{{ [
|
||||||
'It is pretty dark outside. I will turn on the outside lights now.',
|
'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 is official down. Exterior Cameras are now motion activated.',
|
||||||
'The sun has been ushered off the stage. Activating the perimiter cameras.',
|
'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.',
|
'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.',
|
'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.',
|
'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.',
|
'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 }}
|
]|random }}
|
||||||
{%- endmacro -%}
|
{%- endmacro -%}
|
||||||
|
|
||||||
|
|
||||||
{%- macro responsibilities() -%}
|
{%- 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.
|
Today is {{ now().strftime('%A') }} and {{ now().strftime('%A') }} is garbage day.
|
||||||
{% endif %}
|
{% if day_of_week == 'Wed' %}
|
||||||
{% if now().strftime('%a') == 'Wed' %}
|
|
||||||
Both Recycling and regular Garbage goes out. Please take out all of the garbage cans tonight.
|
Both Recycling and regular Garbage goes out. Please take out all of the garbage cans tonight.
|
||||||
{% endif %}
|
{% 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.
|
Today is Justin's day to do the chores.
|
||||||
{% else %}
|
{% else %}
|
||||||
Today is Paige's day to do the chores.
|
Today is Paige's day to do the chores.
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{%- endmacro -%}
|
{%- endmacro -%}
|
||||||
|
|
||||||
|
|
||||||
{%- macro inside_weather() -%}
|
{%- macro inside_weather() -%}
|
||||||
Inside the house, it is {{ states.climate.downstairs.attributes['current_temperature'] }} degrees with around {{ states('sensor.downstairs_thermostat_humidity') }} percent humidity.
|
Inside the house, it is {{ states.climate.downstairs.attributes['current_temperature'] }} degrees with around {{ states('sensor.downstairs_thermostat_humidity') }} percent humidity.
|
||||||
{%- endmacro -%}
|
{%- endmacro -%}
|
||||||
|
|
Loading…
Reference in New Issue