HandyHat / ha-hildebrandglow-dcc

Home Assistant integration for UK SMETS (Smart) meters pulling data from the DCC via the Hildebrand Glow API
MIT License
240 stars 35 forks source link

Unexpected exception: list index out of range. (from logs) #400

Open chronvas opened 3 months ago

chronvas commented 3 months ago

Describe the bug I just seen this log in the settings/logs suggesting to open an issue. Not sure how it affects the functionality of the integration.

To Reproduce Steps to reproduce the behaviour:

  1. Go to 'settings/system'
  2. Click on 'logs'
  3. Scroll down to 'the error'
  4. See error

Expected behaviour Not sure

Screenshots See logs further down

Version 1.0.3 (latest)

Debug log Enable debug logging by following the instructions here

Logger: custom_components.hildebrandglow_dcc.sensor
Source: custom_components/hildebrandglow_dcc/sensor.py:186
integration: Hildebrand Glow (DCC) ([documentation](https://github.com/HandyHat/ha-hildebrandglow-dcc), [issues](https://github.com/HandyHat/ha-hildebrandglow-dcc/issues))
First occurred: 1:05:10 AM (34 occurrences)
Last logged: 5:05:10 AM
Unexpected exception: list index out of range. Please open an issue

Traceback (most recent call last):
  File "/config/custom_components/hildebrandglow_dcc/sensor.py", line 186, in daily_data
    v = readings[0][1].value
        ~~~~~~~~^^^
IndexError: list index out of range

Additional context Add any other context about the problem here.

nickmit-1957 commented 3 months ago

I am getting the same error 2024-08-16 03:30:08.318 ERROR (MainThread) [custom_components.hildebrandglow_dcc.sensor] Unexpected exception: list index out of range. Please open an issue Traceback (most recent call last): File "/config/custom_components/hildebrandglow_dcc/sensor.py", line 183, in daily_data return readings[0][1].value


IndexError: list index out of range
MichaelMKKelly commented 3 months ago

also seeing this:

Logger: custom_components.hildebrandglow_dcc.sensor Source: custom_components/hildebrandglow_dcc/sensor.py:183 integration: Hildebrand Glow (DCC) (documentation, issues) First occurred: 01:09:04 (31 occurrences) Last logged: 03:39:04

Unexpected exception: list index out of range. Please open an issue Traceback (most recent call last): File "/config/custom_components/hildebrandglow_dcc/sensor.py", line 183, in daily_data return readings[0][1].value


IndexError: list index out of range
L81ker commented 3 months ago

same Traceback (most recent call last): File "/config/custom_components/hildebrandglow_dcc/sensor.py", line 183, in daily_data return readings[0][1].value


IndexError: list index out of range
bucklevision commented 3 months ago

Also here... Unexpected exception: list index out of range. Please open an issue Traceback (most recent call last): File "/config/custom_components/hildebrandglow_dcc/sensor.py", line 196, in daily_data v = readings[0][1].value


IndexError: list index out of range
MankeyJohn commented 1 month ago

This error originated from a custom integration.

Logger: custom_components.hildebrandglow_dcc.sensor Source: custom_components/hildebrandglow_dcc/sensor.py:183 integration: Hildebrand Glow (DCC) (documentation, issues) First occurred: 01:06:43 (6 occurrences) Last logged: 01:31:43

Unexpected exception: list index out of range. Please open an issue Traceback (most recent call last): File "/config/custom_components/hildebrandglow_dcc/sensor.py", line 183, in daily_data return readings[0][1].value


IndexError: list index out of range
DRCombes commented 1 month ago

I'm getting the same error on two new installations of this integration (for two different GlowMarkt accounts).

Unsure if this error is the reason that I'm not seeing the same data being pulled through to HA as I'm seeing in the Bright App.

andrey-zotov commented 1 month ago

The solution is here, fixed it for me: https://github.com/HandyHat/ha-hildebrandglow-dcc/issues/396#issuecomment-2038364754 Hope the mainainer can merge it.