Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Unknown" values shown in Home Assistant (Itho HRU) for HRU ECO 300 device #78

Closed
mkieboom opened this issue Dec 19, 2024 · 13 comments · Fixed by #77
Closed

"Unknown" values shown in Home Assistant (Itho HRU) for HRU ECO 300 device #78

mkieboom opened this issue Dec 19, 2024 · 13 comments · Fixed by #77

Comments

@mkieboom
Copy link

I'm having similar challenge as outlined in issue #74 but even when using either the latest stable release (2.1.0) or the latest beta (2.2.0-b3), the sensors keep showing unknown data. The other Wifi add-ons I have connected to my WPU and Autotemp are working perfectly fine.

Device: Itho HRU ECO 300 (interestingly the home assistant shows it as a HRU ECO 350 device but not sure if that makes a difference).

The wifi addon shows MQTT as connected with base topic configured as ithohru:

Screenshot 2024-12-19 at 10 21 46

And in home assistant:
Screenshot 2024-12-19 at 10 18 41

Screenshot 2024-12-19 at 10 18 58

Looking at whats happening at mqtt level I do see data flowing in:

mosquitto_sub -h 192.168.1.2 -t ithohru/state
20

mqtt mosquitto_sub -h 192.168.1.2 -t ithohru/remotesinfo
{}
{}

docker exec -it mqtt mosquitto_sub -h 192.168.1.2 -t ithohru/lastcmd
{"source":"","command":"","timestamp":0}
{"source":"","command":"","timestamp":0}

mosquitto_sub -h 192.168.1.2 -t ithohru/cmd

mosquitto_sub -h 192.168.1.2 -t ithohru/lwt
online

mqtt mosquitto_sub -h 192.168.1.2 -t ithohru/ithostatus
<returns continous flow of json objects every 60 seconds >

for example when having HRU ECO 300 running at full speed:

{"Error number":0,"Status":4,"Measured outside temperature (°C)":12.53,"Measured temperature of mixed outside air (°C)":13.05,"The flow of the inflated air (M3/h)":266.1,"Inlet temperature (°C)":20.23,"Temperature of the extracted air (°C)":20.79,"Temperature of the blown out air of the house (°C)":15.33,"The flow of the blown air (m3/h)":244.7,"Relative fanspeed (%)":100,"Absolute speed of the fan (%)":100,"Hysteresis use in control mode (K)":0,"Timer for how long the house is cooled (hour)":0,"Timer for how long the house is heated (hour)":0,"The mass flow of the air entering the house (kg/h)":328.15,"The mass flow of the air leaving the house (kg/h)":298.26,"Percentage that the bypass valve is open (%)":100,"The desired inlet temperature (°C)":17,"Hysteresis of the frost (K)":0,"Number of steps the frost valve is open (steps)":1400,"Number of hours of too cold air (hour)":0,"Temporary speed reduction (rpm)":0,"Sample timer in frost mode (min)":0,"RPM of the motor (rpm)":2247,"Measured waste temperature heated NTC (°C)":27.4,"Measured blend temperature heated NTC (°C)":25.27,"Desired capacity (m3/h)":0,"Busy doing adjustments (-)":0,"Current consumption of fan (mA)":14802,"Desired current consumption of fan (mA)":0,"Highest measured RH (%)":127.5,"Highest measured CO2 (ppm)":579}

and with HRU ECO 300 running at normal speed:

{"Error number":0,"Status":4,"Measured outside temperature (°C)":12.93,"Measured temperature of mixed outside air (°C)":13.44,"The flow of the inflated air (M3/h)":73.2,"Inlet temperature (°C)":20.48,"Temperature of the extracted air (°C)":20.82,"Temperature of the blown out air of the house (°C)":15.24,"The flow of the blown air (m3/h)":68.8,"Relative fanspeed (%)":0,"Absolute speed of the fan (%)":20.5,"Hysteresis use in control mode (K)":0,"Timer for how long the house is cooled (hour)":0,"Timer for how long the house is heated (hour)":0,"The mass flow of the air entering the house (kg/h)":90.12,"The mass flow of the air leaving the house (kg/h)":83.96,"Percentage that the bypass valve is open (%)":100,"The desired inlet temperature (°C)":17,"Hysteresis of the frost (K)":0,"Number of steps the frost valve is open (steps)":1400,"Number of hours of too cold air (hour)":0,"Temporary speed reduction (rpm)":0,"Sample timer in frost mode (min)":0,"RPM of the motor (rpm)":703,"Measured waste temperature heated NTC (°C)":30.46,"Measured blend temperature heated NTC (°C)":29.29,"Desired capacity (m3/h)":0,"Busy doing adjustments (-)":0,"Current consumption of fan (mA)":1378,"Desired current consumption of fan (mA)":0,"Highest measured RH (%)":127.5,"Highest measured CO2 (ppm)":559}

@benjamin-dcs
Copy link
Collaborator

The HRU300 is not yet supported. We are working on an update which will include every 'version' of the HRU family, including every sensor that is available for that type. Should be released this year

@benjamin-dcs
Copy link
Collaborator

FYI: #77

@mkieboom
Copy link
Author

Thanks for the quick response and update!

@benjamin-dcs
Copy link
Collaborator

Please try v2.2.0-b4. Let us know if/how if works. Any feedback is more than welcome!

@benjamin-dcs
Copy link
Collaborator

I published another update (v2.2.0-b5) with some extra fixes and code improvements. If possible, please update and provide feedback :)

@maerten
Copy link

maerten commented Dec 24, 2024

Screenshot 2024-12-24 at 12 25 25 Screenshot 2024-12-24 at 12 25 31
Logger: homeassistant.config_entries
Source: config_entries.py:640
First occurred: 12:25:18 PM (1 occurrences)
Last logged: 12:25:18 PM

Error setting up entry Itho WiFi Add-on for Non-CVE - HRU ECO for ithodaalderop
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 640, in __async_setup_with_context
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/ithodaalderop/__init__.py", line 26, in async_setup_entry
    await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2278, in async_forward_entry_setups
    await integration.async_get_platforms(platforms)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1184, in async_get_platforms
    import_future.result()
    ~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1184, in async_get_platforms
    import_future.result()
    ~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1154, in async_get_platforms
    await self.hass.async_add_import_executor_job(
        self._load_platforms, platform_names
    )
  File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1097, in _load_platforms
    platform_name: self._load_platform(platform_name)
                   ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1271, in _load_platform
    cache[full_name] = self._import_platform(platform_name)
                       ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1303, in _import_platform
    return importlib.import_module(f"{self.pkg_path}.{platform_name}")
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/util/loop.py", line 200, in protected_loop_func
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.13/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 1022, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/config/custom_components/ithodaalderop/sensor.py", line 13, in <module>
    from .sensors.autotemp import get_autotemp_sensors
  File "/config/custom_components/ithodaalderop/sensors/autotemp.py", line 6, in <module>
    from config.custom_components.ithodaalderop.const import (
    ...<8 lines>...
    )
ModuleNotFoundError: No module named 'config.custom_components'

@benjamin-dcs
Copy link
Collaborator

Please try v2.2.0-b6

@maerten
Copy link

maerten commented Dec 24, 2024

That version works

image image

I see that more entities are switched off by default. Not sure if that is intentional?
Or perhaps it was always like this, and i had just enabled a few myself..

Anyway, thanks for the fix/update :)

@benjamin-dcs
Copy link
Collaborator

Yes, that's intentional. The HA integration now provides all available sensors from the WiFi Addon. As we don't think all are worthy for every users, we have disabled those by default. If you feel some should be enabled by default, please say so :p

@maerten
Copy link

maerten commented Dec 24, 2024

that makes sense. not sure if they should be enabled by default.
I think at least the "Last Command / Last Command Source" are interesting

i have just enabled them all for now, not sure what most of them even are since I cannot find any documentation on it.
but at least i can keep an eye on it :)

image image

@benjamin-dcs
Copy link
Collaborator

The 'documentation' part is also where I'm struggling ;) - For some sensors we kinda have to guess their units or whether they are just binary of actual numerical sensors.

@mkieboom
Copy link
Author

mkieboom commented Dec 30, 2024

Hi, I can confirm that with the v2.2.0-b6 release I am able to configure the HRU 300 ECO correctly. Thanks for fixing this, works great! See screenshots:

Screenshot 2024-12-30 at 09 37 34 Screenshot 2024-12-30 at 09 37 26

And a bit beyond the scope of this issue, but managed to now steer the HRU fan speed using below HA automation:

# Define our dropdown list options
input_select:
  itho_hru_fan_speed:
    name: Itho HRU Fan Speed
    options:
      - auto
      - autonight
      - low
      - medium
      - high
      - timer1
      - timer2
      - timer3
    initial: auto

automation:
  # ITHO HRU Fan Speed - auto
  - alias: Set ITHO HRU Fan Speed to auto

    trigger:
      platform: state
      entity_id: input_select.itho_hru_fan_speed

    actions:
      - service: mqtt.publish
        data:
          topic: ithohru/cmd
          payload: "{\"rfremotecmd\":\"{{ trigger.to_state.state | slugify }}\"}"

@benjamin-dcs
Copy link
Collaborator

Hi! First of all, best wishes for 2025! We just released official version 2.2.0. In case you installed a 2.2.0-beta release you will miss quite some sensors after installing the official 2.2.0. This is due to an extra option we introduced after the last beta. See available-entities on how to reconfigure your integration entry and get all the entities back (if you so wish)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants