Repository navigation
Replies: 1 comment 1 reply
|
I can't answer on the asymmetry and why it is what you have found, but this is quite common that inverters will charge and discharge at dissimilar rates from the nominal rate it is placarded as. You use input_number.predbat_battery_rate_max_scaling and rate_max_scaling_discharge to adjust the charge and discharge rates to match what you get in reality. Mine for example are set to 0.92 and 1.04 |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Uh oh!
There was an error while loading. Please reload this page.
Predbat version: v9.6.4
Setup: Anker SOLIX X1-H5K-S hybrid (5 kW AC), 15 kWh LFP pack,
inverter_hybrid: on.What I see
In the plan the same battery is shown charging and exporting at different rates:
sensor.predbat_inverter_configreportsbattery_rate_max_charge,battery_rate_max_charge_dc,battery_rate_max_dischargeandbattery_rate_max_exportall at 5 kW, so the configured rates are symmetric.Where I think the 4.8 comes from
From the v9.6.4 source:
get_charge_rate_kw()inoutput.pycaps the charge atinverter_limit * inverter_loss(the GH#5394 change), which is 5.0 x 0.96 = 4.80 kW. The prediction does the same: the SoC rises by 0.388 kWh per 5 minutes in every charge window, which is 4.8 kW x 5/60 xbattery_loss0.97. On the AC side,get_total_inverted()divides charge power byinverter_loss, so 5000 W AC into the inverter plans only 4800 W into the battery.The export side behaves differently.
get_total_inverted()counts battery discharge on the DC side with no loss factor, and the export tooltip usesbattery_rate_max_exportdirectly. So export is planned at the full 5.0 kW, while charge is planned at 4.8 kW.What the hardware does (measured from HA)
Charge, 04:42 to 04:55, flat all the way:
Export, 18:42 to 18:55:
So the X1 charges the battery at its full 5000 W, and exports slightly below it. Predbat models it the other way round: it undercharges and overexports. The default loss settings look right for my system. Over a long grid charge I measured about 93 to 95% from grid to stored energy, which is close to
inverter_loss0.04 plusbattery_loss0.03, so I don't want to change those.What I did and what I'd like to check
To make the charge slot plan at 5.00 kW I raised
inverter_limitto 5210 (5210 x 0.96 = 5000). The docs describeinverter_limitas "the maximum AC output power" and say it is "ONLY used by Predbat to improve the quality of the plan".Questions:
inverter_limitabove the nameplate AC rating the intended way to model a battery whose DC charge rate equals the inverter's AC rating? Or is the 4.8 kW intended, because the AC limit is a real ceiling for grid charging and I should leave it?inverter_limitthat I'm missing? I expect it only changes the AC clip applied to PV plus battery, and the charge cap above, and the inverter has delivered up to 5.6 kW briefly for me. Does it also affect discharge or export planning?inverter_limit * inverter_lossbut discharge is compared withinverter_limiton the DC side? Ifinverter_limitis the AC limit, 5 kW out of the battery would be about 4.8 kW at the AC side. If the asymmetry is intended, a one-line note in the docs forinverter_limitwould help people who see 4.80 against 5.00 in the plan.inverter_limit_charge, or loweredinverter_loss? I'd avoid loweringinverter_loss, since it changes the economics, andinverter_limit_chargeseems to cap rather than raise.Thanks. Happy to provide a
predbat_debug.yamlif useful.All reactions