2020-10-05 21:08:31 +00:00
#-------------------------------------------
# @CCOSTAN
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
# Support for Rheem Water Heaters (https://amzn.to/36yOSnN)
# https://github.com/CCOSTAN/Home-AssistantConfig/issues/892
# https://www.home-assistant.io/integrations/econet/
#-------------------------------------------
##############################################################################
### Automations
##############################################################################
2023-11-14 20:53:13 +00:00
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'
2023-11-17 22:16:41 +00:00
group : 'information'
2023-11-14 20:53:13 +00:00
- 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'
2023-11-17 22:16:41 +00:00
group : 'information'
2023-11-14 20:53:13 +00:00
- 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'
2023-11-17 22:16:41 +00:00
group : 'information'
2023-11-14 20:53:13 +00:00
- service : script.speech_engine
data :
2024-05-25 00:23:12 +00:00
value1 : "Please be aware that the hot water has dropped below 30% availability. Please consider taking a shower at another time. Gallons used today: {{sensor.phyn_daily_water_usage}}"
2023-11-14 20:53:13 +00:00
- wait_template : "{{ states('sensor.rheem_wh_available_hot_water')|float > 50 }}"
timeout : '01:00:00' # Adjust timeout as needed
- service : script.speech_engine
data :
2024-05-25 00:23:12 +00:00
value1 : "The available hot water is now above 50%. Normal showering can resume. Gallons used today: {{sensor.phyn_daily_water_usage}}"
2023-11-14 20:53:13 +00:00