Skip to content

IP Address change Predbat fails to load #3713

@Drewmarkham

Description

@Drewmarkham

I was forced to change my IP addresses by changing routers. The SSID & p/w remained the same, but the AIO is now 192.168.0.56, it was 192.168.1.144. All other aspects of HA work fine after the change (once I changed the IP address) but Predbat errors. And now fails to load at all.

Part of predbat log that repeats every 20 seconds:

[17:15:53] INFO: Predbat init script running
Running Predbat inside Add-on
Your API key is: 5a71e93be96f1d3c4e710d7599c03acc8818ac6b9ee89b7ed2aec3e09388d444b7c27163d400a3e3de7e2ef1c815eaae790559918e7b04de
Bootstrap Predbat
Startup
Predbat files are installed correctly for version v8.35.1
**** Starting Standalone Predbat ****
2026-03-31 17:16:00.330319: Loading secrets from secrets.yaml
2026-03-31 17:16:00.338388: Loading apps.yaml
2026-03-31 17:16:00.572741: Info: App slug is 6adb4f0d_predbat
2026-03-31 17:16:00.604139: Creating task: <coroutine object HAInterface.start at 0x7f8fa5a340>
2026-03-31 17:16:00.606127: Info: Starting HA interface
2026-03-31 17:16:00.607633: Info: Start socket for url http://supervisor/core/api/websocket
2026-03-31 17:16:00.627580: Info: Web Socket active
2026-03-31 17:16:01.606809: Creating task: <coroutine object ComponentBase.start at 0x7f8fc23a00>
2026-03-31 17:16:01.609142: Info: Starting HAHistory
2026-03-31 17:16:01.609527: Info: HAHistory: Pruning history data started.
2026-03-31 17:16:01.609717: Info: HAHistory: Pruning history data completed.
2026-03-31 17:16:02.608948: Creating task: <coroutine object WebInterface.start at 0x7f8d986130>
Web interface started
2026-03-31 17:16:03.733220: Warn: Regular argument car_charging_planned expression re:(sensor.wallbox_portal_status_description|sensor.myenergi_zappi_[0-9a-z]+_plug_status) failed to match - disabling this item
2026-03-31 17:16:03.741371: Error: Exception raised missing ), unterminated subpattern at position 1
2026-03-31 17:16:03.751699: Error: Traceback (most recent call last):
File "/config/predbat.py", line 1565, in initialize
self.auto_config()
File "/config/userinterface.py", line 1077, in auto_config
matched, arg_value = self.resolve_arg_re(arg, arg_value, state_keys)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/userinterface.py", line 1049, in resolve_arg_re
res = re.search(my_re, key)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/re/init.py", line 177, in search
return _compile(pattern, flags).search(string)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/re/init.py", line 307, in _compile
p = _compiler.compile(pattern, flags)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/re/_compiler.py", line 745, in compile
p = _parser.parse(p, flags)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/re/_parser.py", line 979, in parse
p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/re/_parser.py", line 460, in _parse_sub
itemsappend(_parse(source, state, verbose, nested + 1,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/re/_parser.py", line 864, in _parse
raise source.error("missing ), unterminated subpattern",
re.error: missing ), unterminated subpattern at position 1
2026-03-31 17:16:03.798969: Warn: record_status Error: Exception raised missing ), unterminated subpattern at position 1
Error: Failed to initialise predbat missing ), unterminated subpattern at position 1
Traceback (most recent call last):
File "/config/hass.py", line 54, in main
p_han.initialize()
File "/config/predbat.py", line 1587, in initialize
raise e
File "/config/predbat.py", line 1565, in initialize
self.auto_config()
File "/config/userinterface.py", line 1077, in auto_config
matched, arg_value = self.resolve_arg_re(arg, arg_value, state_keys)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/userinterface.py", line 1049, in resolve_arg_re
res = re.search(my_re, key)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/re/init.py", line 177, in search
return _compile(pattern, flags).search(string)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/re/init.py", line 307, in _compile
p = _compiler.compile(pattern, flags)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/re/_compiler.py", line 745, in compile
p = _parser.parse(p, flags)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/re/_parser.py", line 979, in parse
p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/re/_parser.py", line 460, in _parse_sub
itemsappend(_parse(source, state, verbose, nested + 1,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/re/_parser.py", line 864, in _parse
raise source.error("missing ), unterminated subpattern",
re.error: missing ), unterminated subpattern at position 1
2026-03-31 17:16:03.805954: Stopping Predbat
2026-03-31 17:16:04.083080: Info: Web socket stopping
2026-03-31 17:16:04.083297: Info: Web Socket stopped
2026-03-31 17:16:04.083516: Info: HA interface stopped
2026-03-31 17:16:04.107881: Info: Components stopped
Web interface stopped
Shutdown, sleeping 20 seconds before restarting

I have tried re-instaling Predbat & GivTcp to no avail. On the latest version of everything. Running HA on PI-400, with 128GB SSD. Currently haven't bothered to amend the apps.yaml to relevant settings as makes no difference.

What am I doing wrong?

TIA

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