Skip to content

API Changes in Rheem Econet Vacation Mode #61

Description

@arcivanov

Describe the bug

Error setting up entry <redacted>@gmail.com for econet

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 762, in __async_setup_with_context
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/econet/__init__.py", line 60, in async_setup_entry
    equipment = await api.get_equipment_by_type(
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        [EquipmentType.WATER_HEATER, EquipmentType.THERMOSTAT]
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/pyeconet/api.py", line 207, in get_equipment_by_type
    await self._get_equipment()
  File "/usr/local/lib/python3.13/site-packages/pyeconet/api.py", line 174, in _get_equipment
    _equip, __ = self.check_mode_enum(_equip)
                 ~~~~~~~~~~~~~~~~~~~~^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/pyeconet/api.py", line 98, in check_mode_enum
    if (value != enumtext.index(status)):
                 ~~~~~~~~~~~~~~^^^^^^^^
ValueError: 'Vacation' is not in list
Error doing job: Task exception was never retrieved (task: None)

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/econet/__init__.py", line 89, in resubscribe
    await api.refresh_equipment()
  File "/usr/local/lib/python3.13/site-packages/pyeconet/api.py", line 201, in refresh_equipment
    _equip, __ = self.check_mode_enum(_equip)
                 ~~~~~~~~~~~~~~~~~~~~^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/pyeconet/api.py", line 98, in check_mode_enum
    if (value != enumtext.index(status)):
                 ~~~~~~~~~~~~~~^^^^^^^^
ValueError: 'Vacation' is not in list
Source: /usr/local/lib/python3.13/site-packages/pyeconet/api.py:324
First occurred: 12:11:30 PM (9 occurrences)
Last logged: 6:35:08 PM

    Failed to parse the following MQTT message: b'{"@ALERTCOUNT":0,"@ACTIVE":true,"@STATUS":"","@MODE":{"value":5,"status":"Vacation"},"device_name":"<redacted>","serial_number":"re-da-ct-ed","transactionId":"AUTOPOLL_2026-01-26T20:48:09.846Z"}'
    Failed to parse the following MQTT message: b'{"@ALERTCOUNT":0,"@ACTIVE":true,"@STATUS":"","@MODE":{"value":5,"status":"Vacation"},"device_name":"<redacted>","serial_number":"re-da-ct-ed","transactionId":"AUTOPOLL_2026-01-26T22:53:50.567Z"}'
    Failed to parse the following MQTT message: b'{"@ALERTCOUNT":0,"@ACTIVE":true,"@STATUS":"","@MODE":{"value":5,"status":"Vacation"},"device_name":"<redacted>","serial_number":"re-da-ct-ed","transactionId":"AUTOPOLL_2026-01-26T23:25:25.425Z"}'
    Failed to parse the following MQTT message: b'{"@ALERTCOUNT":0,"@ACTIVE":true,"@STATUS":"","@MODE":{"value":5,"status":"Vacation"},"device_name":"<redacted>","serial_number":"re-da-ct-ed","transactionId":"AUTOPOLL_2026-01-26T23:28:23.999Z"}'
    Failed to parse the following MQTT message: b'{"@ALERTCOUNT":0,"@ACTIVE":true,"@STATUS":"","@MODE":{"value":5,"status":"Vacation"},"device_name":"<redacted>","serial_number":"re-da-ct-ed","transactionId":"AUTOPOLL_2026-01-26T23:35:05.175Z"}'

To Reproduce
Steps to reproduce the behavior:

  1. This occurs in the current latest HASS.
  2. Set Rheem Hybrid Tank Heater to Away using Rheem app.
  3. Disable and then enable Rheem integration.
  4. Observe the exceptions.

Expected behavior
Parsing is correct

Screenshots
N/A

Additional context
This is sudden as of 2026-01-26

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions