Skip to content

'NoneType' object has no attribute 'split' after updating to v8.30.6 #3121

@DFEvans

Description

@DFEvans

Describe the bug
After upgrading from v8.30.2 to v8.30.6, Predbat outputs the following error after each planning run, and fails to complete most of its activities afterwards (outputting to various entities, controlling the inverter, etc.):

42877 | 2025-12-24 20:50:05.935448:  Error: 'NoneType' object has no attribute 'split'
-- | --
42876 | 2025-12-24 20:50:05.935265:  Info: record_status Error: Exception raised 'NoneType' object has no attribute 'split'
42874 | AttributeError: 'NoneType'  object has no attribute 'split'
42873 | ^ ^^^^^^^^^^^^^^
42872 | domain, entity_name = e ntity_id.split(".")
42871 | File "/config/inverter.py ", line 1475, in write_and_poll_value
42870 | self.write_and_poll_val ue("charge_limit", self.base.get_arg("charge_limit", indirect=False, index=self.id, required_unit="%"), soc)
42869 | File "/config/inverter.py ", line 1404, in adjust_battery_target
42868 | inverter.adjust_battery _target(new_soc_percent, is_charging, is_exporting)
42867 | File "/config/execute.py" , line 639, in adjust_battery_target_multi
42866 | self.adjust_battery_tar get_multi(inverter, 0, isCharging, isExporting)
42865 | File "/config/execute.py" , line 565, in execute_plan
42864 | ^^^^^^^^^^^^^^^^^^^
42863 | status, status_extra =  self.execute_plan()
42862 | File "/config/predbat.py" , line 726, in update_pred
42861 | self.update_pred(schedu led=True)
42860 | File "/config/predbat.py" , line 1594, in run_time_loop
42859 | 2025-12-24 20:50:05.917186:  Error: Traceback (most recent call last):
42858 | 2025-12-24 20:50:05.913787:  Error: Exception raised 'NoneType' object has no attribute 'split'

The issue persists after a full restart of my HA server and hence Predbat. The issue doesn't reoccur after downgrading to v8.30.2.

Glancing at the lines of code in the traceback, the top-level issue seems to be not knowing the entity ID for charge_limit. That's defined as this in my apps.yaml which hasn't changed lately, and is apparently OK in v8.30.2:

  charge_rate:
    - input_number.charge_rate

So I suspect it's some underlying problem (or my config is janky and Predbat's now less tolerant).

Predbat version

v8.30.7

Environment details

Standard HAOS install

Log file
predbat(2).log

Metadata

Metadata

Labels

SigenergySigenergy Sigenstore InvertersconfigurationUser configuration issue

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions