I have a Rheem hybrid water heater connected to HA using the Rheem (Econet) integration. All of the data is reported as I expected, and I’m able to change the operation mode using the integration as well.
The integration also reports operation mode changes that are made using the Econet app, so the data is being updated if it changes from outside of HA. The heater is also able to change operation modes on its own, and I’d like to have an automation to override those changes in some conditions, so I built this:
alias: >-
Return Water Heater to Electric mode when temperature is too low for Heat
Pump
description: ''
trigger:
- platform: state
entity_id: water_heater.heat_pump_water_heater
attribute: operation_mode
to: Heat Pump
for:
hours: 0
minutes: 5
seconds: 0
condition:
- type: is_temperature
condition: device
device_id: d011aaf4c049a9e348c15790d949dac0
entity_id: sensor.klga_temperature
domain: sensor
below: 45
action:
- service: water_heater.set_operation_mode
data:
operation_mode: Electric
target:
entity_id: water_heater.heat_pump_water_heater
mode: single
If I use ‘Run Actions’ the operation mode does get changed, but this automation is never triggered by operation mode changes that happen outside of HA. I’m guessing that this is because the current operation mode is not a ‘sensor’, it doesn’t show up in History.
Can I build a template sensor to provide what the automation needs, or will this require changes in the integration?