batpred icon indicating copy to clipboard operation
batpred copied to clipboard

Is this normal?

Open mwoodage opened this issue 8 months ago • 7 comments

I put this on the Facebook page a few days ago but didn't receive a comment, so thought I'd try here,

I've checked my GIVTCP log yesterday after my inverter stopped working and discovered huge amounts of writes to it. It looks like inverter two gave up in the end at 06.29am. Is this normal?

Inverter One, 5Kw Gen 1 with two battery's 9.5Kw and a 5.2Kw Inverter Two, 3.6Kw Gen 1 with one battery 2.6Kw Both are on the latest firmware Using Predbat 8.34.11 and GIVTCP 3.5

GIVTCP.log

mwoodage avatar Mar 29 '26 17:03 mwoodage

Do you have inverter balancing turned on in Predbat?

It can create a lot of inverter writes to try to keep the two inverters in balance with each other.

Can turn real time registers on to reduce the impact of large numbers of writes on the inverter. I have two inverters and personally I don't use inverter balancing due to the number of writes.

If not got inverter balancing on, then would need to see your predbat configuration and logfile to give any further advice as to what is going on.

gcoan avatar Mar 29 '26 17:03 gcoan

Thanks groan for your advice, I've checked and I don't have balancing turned on. I've attached my apps.yaml - however I'll need to turn Predbat back on to get some log info. I switched it to 'monitor only' since it started doing this.

I'd be really keen to learn about your setup with two inverters as I'm really struggling to get it working.

Thanks

apps.yaml

mwoodage avatar Mar 29 '26 18:03 mwoodage

Thanks for the apps.yaml, your approach to configuring the two inverters looks fine, very similar to mine. You can use REST as an alternative to the inverter entities, but either works.

A few things though:

  • your load energy today will almost certainly be wrong if you have two givenergy inverters that share the load between them as each inverter is unaware of the second. You'll need to create a custom load_today and load_power sensor - examples of how I did this are in the documentation https://springfall2008.github.io/batpred/apps-yaml/#historical-data
  • you DO NOT want to have both inverters defined in import energy today. Assuming you are single phase, the two inverters have the same or near-same import energy so you are doubling your import energy to predbat
  • not sure about your export energy, I just use one of the two inverter export energy sensors
  • are you using ge cloud to control your inverters or the apps.yaml config? I use apps.yaml config and the ge_cloud can be commented out
  • your days_previous is set to days 2 through 8 which I like, so averaging over a week, but your days_previous_weight has just 3 entries, and for those days_previous that are not given a weight will assume a weighting of 1. Probably not what you wanted
  • can comment the export_triggers out if you are not using them

gcoan avatar Mar 29 '26 19:03 gcoan

Fantastic, I'll make some changes and report back - probably be tomorrow now, but really appreciate the support,

M

mwoodage avatar Mar 29 '26 20:03 mwoodage

No problem, I am away in France from tomorrow so replies might be delayed

gcoan avatar Mar 29 '26 22:03 gcoan

Hope you have a nice time away in France, no rush for a reply...

I've added the following to /homeassistant/configuration.yaml and changed all the xxx and yyy's to my inverter details, is that correct? Now I'm assuming that I need to make this into a house_load_today sensor, but not sure how I do that, are you able to advise.

I've made all of the other changes suggested,

Home consumption energy sensor, updated every 5 minutes instead of the default of every sensor state change template:

  • trigger:
    • platform: time_pattern minutes: "/5" sensor:
    • name: "House Load Today" unique_id: "house_load_today" unit_of_measurement: kWh state_class: total device_class: energy state: > {% set pv_xxx = states('sensor.givtcp_xxx_pv_energy_today_kwh') %} {% set pv_yyy = states('sensor.givtcp2_yyy_pv_energy_today_kwh') %} {% set dis_xxx = states('sensor.givtcp_xxx_battery_discharge_energy_today_kwh') %} {% set dis_yyy = states('sensor.givtcp2_yyy_battery_discharge_energy_today_kwh') %} {% set chg_xxx = states('sensor.givtcp_xxx_battery_charge_energy_today_kwh') %} {% set chg_yyy = states('sensor.givtcp2_yyy_battery_charge_energy_today_kwh') %} {% set import = states('sensor.givtcp_xxx_import_energy_today_kwh') %} {% set export = states('sensor.givtcp_xxx_export_energy_today_kwh') %} {% if pv_xxx in ['unknown','unavailable'] or pv_yyy in ['unknown','unavailable'] or dis_xxx in ['unknown','unavailable'] or dis_yyy in ['unknown','unavailable'] or chg_xxx in ['unknown','unavailable'] or chg_yyy in ['unknown','unavailable'] or import in ['unknown','unavailable'] or export in ['unknown','unavailable'] %} {{ this.state }} {% else %} {% if now().hour == 0 and now().minute < 1 %} 0.0 {% else %} {% set load = (import | float(0) + pv_xxx | float(0) + pv_yyy | float(0) + dis_xxx | float(0) + dis_yyy | float(0) - export | float(0) - chg_xxx | float(0) - chg_yyy | float(0)) | round(2) %} {% set previous = this.state | float(0) %} {{ [load, previous] | max }} {% endif %} {% endif %}

Also, another question, I've noticed today that my main batteries on inverter one charge up to 100% and then it seams the smaller battery on inverter two starts to charge - is there anyway to balance this so they both charge at the same time / rate?

Thanks M

mwoodage avatar Mar 30 '26 08:03 mwoodage

All issues resolved, Predbat working well - closing this issue

mwoodage avatar Apr 04 '26 09:04 mwoodage

Posted by Claude on behalf of @chalfontchubby.

Closing, since the reporter confirmed on 4 April that all issues were resolved.

chalfontchubby avatar Oct 18 '26 21:10 chalfontchubby