Skip to content

Auto charge and discharge in apps.yaml creates and error #3714

Description

@guyank

Describe the bug

I can no longer use auto charge and discharge battery power curves. I have populated the default curve and this is used correctly if I comment out the auto calculation line. When completed as below, the errors in the log are shown below.

battery_charge_power_curve: auto
battery_charge_power_curve_default:
91 : 0.91
92 : 0.81
93 : 0.71
94 : 0.62
95 : 0.52
96 : 0.43
97 : 0.33
98 : 0.24
99 : 0.24
100 : 0.24
battery_discharge_power_curve: auto
battery_discharge_power_curve_default:
20 : 1.0
14 : 0.98
13 : 0.92
12 : 0.92
11 : 0.9
10 : 0.82
9 : 0.82
8 : 0.73
7 : 0.74
6 : 0.65
5 : 0.62
4 : 0.62

Predbat version

8.35.1

Environment details

GivBat 5kW Gen 3 hybrid inverter and 9.6kWh battery

Log file

2026-03-31 22:59:46.075910: Warn: Validation of apps.yaml found configuration item 'battery_charge_power_curve' is not of type 'int_float_dict' value was auto
2026-03-31 22:59:46.075936: Warn: Validation of apps.yaml found configuration item 'battery_discharge_power_curve' is not of type 'int_float_dict' value was auto
2026-03-31 22:59:46.076289: Error: Validation of apps.yaml found 2 configuration errors

Activity

  1. SwiftRR commented on Apr 1, 2026

    @SwiftRR

    This is mine which works.

      battery_charge_power_curve:
      # generated 10-07-2025
        100 : 0.12
        99 : 0.12
        98 : 0.12
        97 : 0.12
        96 : 0.12
        95 : 0.34
        94 : 0.58
        93 : 0.68
        92 : 0.74
        91 : 0.86
        90 : 0.91
    
      battery_discharge_power_curve:
    # generated 10-07-2025
    
        20 : 1.0
    

    If you have data, you do not need 'auto' or the 'default' entity.

    Can you submit with ``` either side of your code so that we can seen formatting? This is what I have done:

    <INSERT CODE HERE>
    

    It looks as if you do not have 2 spaces before each data line (yaml is very finicky for formatting).

    See documentation:
    https://springfall2008.github.io/batpred/apps-yaml/#battery-chargedischarge-curves

    Rob

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions