Skip to content

Warn: Return bad float value unknown from battery_power #104

@jmfweather

Description

@jmfweather

Every time HA is restarted after an update Predbat is not fully working and the message: "Warn: Return bad float value unknown from battery_power" is seen. A restart of Predbat fixes it.

Log contents:

42938 | 2026-03-25 16:10:50.824944: Warn: Cannot find battery discharge curve (settings missing), one of the required settings for soc_percent, discharge_rate and battery_power are missing from apps.yaml
-- | --
42937 | 2026-03-25 16:10:50.824893: Warn: Cannot find battery charge curve (settings missing), one of the required settings for soc_percent, charge_rate and battery_power are missing from apps.yaml
42850 | 2026-03-25 16:10:05.156408: Warn: Cannot find battery discharge curve (settings missing), one of the required settings for soc_percent, discharge_rate and battery_power are missing from apps.yaml
42849 | 2026-03-25 16:10:05.156356: Warn: Cannot find battery charge curve (settings missing), one of the required settings for soc_percent, charge_rate and battery_power are missing from apps.yaml
42804 | 2026-03-25 16:10:03.749967: Warn: Found 6 periods of zero load with power data, filling using power integration
42789 | 2026-03-25 16:09:50.832520: Warn: Cannot find battery discharge curve (settings missing), one of the required settings for soc_percent, discharge_rate and battery_power are missing from apps.yaml
42788 | 2026-03-25 16:09:50.832469: Warn: Cannot find battery charge curve (settings missing), one of the required settings for soc_percent, charge_rate and battery_power are missing from apps.yaml
42770 | 2026-03-25 16:09:01.772132: Warn: Cannot find battery discharge curve (settings missing), one of the required settings for soc_percent, discharge_rate and battery_power are missing from apps.yaml
42769 | 2026-03-25 16:09:01.772086: Warn: Cannot find battery charge curve (settings missing), one of the required settings for soc_percent, charge_rate and battery_power are missing from apps.yaml
42632 | 2026-03-25 16:08:59.897901: Warn: Cannot find battery discharge curve (settings missing), one of the required settings for soc_percent, discharge_rate and battery_power are missing from apps.yaml
42631 | 2026-03-25 16:08:59.897859: Warn: Cannot find battery charge curve (settings missing), one of the required settings for soc_percent, charge_rate and battery_power are missing from apps.yaml
42584 | 2026-03-25 16:08:58.557438: Warn: Found 6 periods of zero load with power data, filling using power integration
42469 | 2026-03-25 16:08:14.285687: Warn: Web Socket closed, will try to reconnect in 5 seconds - error count 0
42463 | 2026-03-25 16:07:24.741985: Warn: Cannot find battery discharge curve (settings missing), one of the required settings for soc_percent, discharge_rate and battery_power are missing from apps.yaml
42462 | 2026-03-25 16:07:24.741939: Warn: Cannot find battery charge curve (settings missing), one of the required settings for soc_percent, charge_rate and battery_power are missing from apps.yaml
42457 | 2026-03-25 16:07:24.741195: Warn: record_status Warn: Return bad float value unknown from battery_power
42456 | 2026-03-25 16:07:24.724648: Warn: Return bad float value unknown from battery_power using default 0.0
42453 | 2026-03-25 16:06:52.614928: Completed run status Demand with Errors reported (check log)
42443 | 2026-03-25 16:06:44.582629: Warn: Cannot find battery discharge curve (settings missing), one of the required settings for soc_percent, discharge_rate and battery_power are missing from apps.yaml
42442 | 2026-03-25 16:06:44.582579: Warn: Cannot find battery charge curve (settings missing), one of the required settings for soc_percent, charge_rate and battery_power are missing from apps.yaml
42431 | 2026-03-25 16:06:44.581733: Warn: record_status Warn: Return bad float value unknown from battery_power
42430 | 2026-03-25 16:06:44.565481: Warn: Return bad float value unknown from battery_power using default 0.0
42303 | 2026-03-25 16:06:42.172643: Warn: Cannot find battery discharge curve (settings missing), one of the required settings for soc_percent, discharge_rate and battery_power are missing from apps.yaml
42302 | 2026-03-25 16:06:42.172583: Warn: Cannot find battery charge curve (settings missing), one of the required settings for soc_percent, charge_rate and battery_power are missing from apps.yaml
42291 | 2026-03-25 16:06:34.144940: Warn: record_status Warn: Return bad float value unknown from battery_power
42290 | 2026-03-25 16:06:34.130699: Warn: Return bad float value unknown from battery_power using default 0.0
42254 | 2026-03-25 16:06:33.126666: Warn: No carbon intensity history in sensor predbat.carbon_now
42241 | 2026-03-25 16:06:32.586984: Warn: Found 6 periods of zero load with power data, filling using power integration
42231 | 2026-03-25 16:06:26.512340: Error: Validation of apps.yaml found 6 configuration errors
42230 | 2026-03-25 16:06:26.511890: Warn: Validation of apps.yaml found configuration item 'battery_temperature' element sensor.solax_battery_1_temperature is not a valid type float
42229 | 2026-03-25 16:06:26.511688: Warn: Validation of apps.yaml found configuration item 'reserve' element number.solax_backup_discharge_min_soc is not a valid type float
42228 | 2026-03-25 16:06:26.511409: Warn: Validation of apps.yaml found configuration item 'battery_power' element sensor.solax_battery_1_power_charge is not a valid type float
42227 | 2026-03-25 16:06:26.511214: Warn: Validation of apps.yaml found configuration item 'pv_today' element sensor.solax_today_s_solar_energy is not a valid type float
42226 | 2026-03-25 16:06:26.511048: Warn: Validation of apps.yaml found configuration item 'export_today' element sensor.solax_today_s_export_energy is not a valid type float
42225 | 2026-03-25 16:06:26.510868: Warn: Validation of apps.yaml found configuration item 'import_today' element sensor.solax_today_s_import_energy is not a valid type float
42187 | 2026-03-25 16:06:20.390476: Error: Validation of apps.yaml found 6 configuration errors
42186 | 2026-03-25 16:06:20.390112: Warn: Validation of apps.yaml found configuration item 'battery_temperature' element sensor.solax_battery_1_temperature is not a valid type float
42185 | 2026-03-25 16:06:20.390054: Warn: Validation of apps.yaml found configuration item 'reserve' element number.solax_backup_discharge_min_soc is not a valid type float
42184 | 2026-03-25 16:06:20.389957: Warn: Validation of apps.yaml found configuration item 'battery_power' element sensor.solax_battery_1_power_charge is not a valid type float
42183 | 2026-03-25 16:06:20.389892: Warn: Validation of apps.yaml found configuration item 'pv_today' element sensor.solax_today_s_solar_energy is not a valid type float
42182 | 2026-03-25 16:06:20.389850: Warn: Validation of apps.yaml found configuration item 'export_today' element sensor.solax_today_s_export_energy is not a valid type float
42181 | 2026-03-25 16:06:20.389796: Warn: Validation of apps.yaml found configuration item 'import_today' element sensor.solax_today_s_import_energy is not a valid type float
42129 | 2026-03-25 16:05:50.762895: Warn: record_status Error: Exception raised
42128 | 2026-03-25 16:05:50.762873: Error: set_state_wrapper - No HA interface available
42127 | 2026-03-25 16:05:50.762813: Error: get_state_wrapper - No HA interface available
42125 | ValueError

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