Skip to content

Integration doesn't start after update #10

@pksoft585

Description

@pksoft585

Pylontech BMS integration doesn't start:

2025-11-26 19:51:54.413 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Pylontech BMS for pylontech
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 761, in __async_setup_with_context
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/pylontech/__init__.py", line 61, in async_setup_entry
    await coordinator.detect_sensors()
  File "/config/custom_components/pylontech/coordinator.py", line 87, in detect_sensors
    pwr = await self.pylontech.pwr()
          ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/pylontech/pylontech.py", line 455, in pwr
    return PwrCommand(await self._exec_cmd("pwr"))
  File "/config/custom_components/pylontech/pylontech.py", line 244, in __init__
    self.avg_temp = Temp("Average temperature").set(lines[0].split()[2])
                                                    ~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range

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