Skip to content

Gas costs incorrect and bug mentioned in log #428

@mcderd-coder

Description

@mcderd-coder

Describe the bug
I am seing a daily gas cost of 31p soon after midnight and then it changes to 63p

I am currently away and my gas valve is shut off

To Reproduce
Steps to reproduce the behaviour:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behaviour
I expect the cost to track accurately

Screenshots
If applicable, add screenshots to help explain your problem.

Version
Latest

Debug log
This error originated from a custom integration.

Logger: custom_components.hildebrandglow_dcc.sensor
Source: custom_components/hildebrandglow_dcc/sensor.py:185
integration: Hildebrand Glow (DCC) (documentation, issues)
First occurred: 24 July 2025 at 01:32:20 (14 occurrences)
Last logged: 29 July 2025 at 01:32:22

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 185, in daily_data
v = readings[0][1].value
~~~~~~~~^^^
IndexError: list index out of range

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions