home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.73k stars 30.85k forks source link

Open Hardware Monitor more than 4000 errors #128108

Open pickonedev opened 1 month ago

pickonedev commented 1 month ago

The problem

Hi!

For about 1-3 weeks, I get a lot of errors regarding Open Hardware Monitor integration....

Logger: homeassistant.helpers.entity
Source: helpers/entity.py:942
First occurred: 17:12:11 (4628 occurrences)
Last logged: 18:41:14

    Update for sensor.windows_samsung_ssd_990_pro_with_heatsink_4tb_levels_percentage_used fails
    Update for sensor.windows_samsung_ssd_990_pro_with_heatsink_4tb_data_data_read fails
    Update for sensor.windows_samsung_ssd_990_pro_with_heatsink_4tb_data_data_written fails
    Update for sensor.windows_samsung_ssd_990_pro_with_heatsink_4tb_throughput_read_rate fails
    Update for sensor.windows_samsung_ssd_990_pro_with_heatsink_4tb_throughput_write_rate fails

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 942, in async_update_ha_state
    await self.async_device_update()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1302, in async_device_update
    await hass.async_add_executor_job(self.update)
  File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/openhardwaremonitor/sensor.py", line 111, in update
    values = array[path_number]
             ~~~~~^^^^^^^^^^^^^
IndexError: list index out of range

This is the config:

- platform: openhardwaremonitor
  host: 192.168.0.100

Any idea what is happening?

What version of Home Assistant Core has the issue?

core-2024.10.1

What was the last working version of Home Assistant Core?

dunno exactly

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Open Hardware Monitor

Link to integration documentation on our website

https://www.home-assistant.io/integrations/openhardwaremonitor

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 1 month ago

openhardwaremonitor documentation openhardwaremonitor source