Skip to content

Status is displayed as error when no export rate even if commented out #4173

Description

@Stealthbird97

Describe the bug
Status is displayed as completed with error when there is no export rate when export sensor is commented out.
i.e.
#metric_octopus_export: 're:(sensor.(octopus_energy_|)electricity_[0-9a-z]+_[0-9a-z]+_export_current_rate)'

Expected behaviour
If export metric_octopus_export: is commented out, and no other export rate variables are set, then predbat should ignore and assume zero and not error

Predbat version

v8.43.1

Screenshots

Image

Log file
2026-07-02 19:05:48.821578: Warning: No export rate data provided 2026-07-02 19:05:48.843963: Warn: record_status Error: No export rate data provided

apps.yaml (1).txt

predbat_debug.yaml.txt

predbat.log

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions