Cannot trigger automation on Econet operation mode changes

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?

Well… oops. The operation mode is usable in automations, but the automation has to check for heat_pump and not Heat Pump.

1 Like

thanks man, you saved me big time smashing my head against a wall on this one. Had no idea that it would need to see lower case with underscores instead of Caps and spaces. :man_facepalming:

Is this still working for you? I’m trying to get it to work to turn on high_demand mode but it does nothing.

Sorry, I’m no longer using the EcoNet integration in HA (I’ve switched to the esphome-econet component instead, which doesn’t use the Rheem ‘cloud’).