Skip to content

StackTrace in getting Data #9

@StephanEhl

Description

@StephanEhl

System Health details

Core
2025.1.0
Supervisor
2024.12.3
Operating System
14.1
Frontend
20250103.0

Checklist

  • I have enabled debug logging for my installation.
  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of currently previous issues..

Describe the issue

As i updated today all stuff to the latest Version (also got the latest smartmeter from here to see if the log-entry is still present) i noticed that i get an error on the Interface all ~15 min. Still the values seem to be read correctly it might only be a small problem to perfection :)

Reproduction steps

...

Debug logs

2025-01-05 19:30:11.264 WARNING (MainThread) [custom_components.smartmeter_austria] smartmeter.read() smartmeter exception. 
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/smartmeter_austria_energy/smartmeter.py", line 156, in read
    dec.parse_all()
    ~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/smartmeter_austria_energy/decrypt.py", line 55, in parse_all
    data_type = decrypted[pos + 2 + 6]
                ~~~~~~~~~^^^^^^^^^^^^^
IndexError: index out of range

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/config/custom_components/smartmeter_austria/coordinator.py", line 42, in _async_update_data
    obisdata = await self.hass.async_add_executor_job(self.adapter.read)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.13/site-packages/smartmeter_austria_energy/smartmeter.py", line 161, in read

Diagnostics dump

No response

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