Repository navigation
Dual inverters charge/discharge block: config advice please #5787
Replies: 1 comment 4 replies
|
Predbat has no concept of control block for inverter 0 and inverter 1, it only has a single common set of controls to start charge, stop charge, start discharge, etc, and my guess (not verified) is that these will get executed twice, once for each inverter if there are multiple inverters configured in predbat. You could either change the numbers, create composite entities for the two inverters, or configure both inverters as you have, listing their SoC, charge/discharge rates, etc, then when Predbat controls the inverters it'll execute the (eg) start charge service controls and your automation then picks up the predbat.status and reflects that in the non-controlled inverter. For the second (non controlled) inverter, set the inverter definition to as much config items as possible to False to stop predbat trying too hard to use that inverter's data. Just keep to the minimum, SoC. The battery/grid/solar power are nice to have to get the diagram in the web console right but don't affect the plan (well load power can be used if there are load_today gaps). You'll need just a single import energy, export energy, load today (example template in the docs), and PV can either be a custom template or just include both PV energy sensors Bear in mind Predbat doesn't control the inverters to stop cross charging by default. There are ways around that, switch.predbat_set_freeze_export_during_demand is one, see the customisation doc |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
TLDR: What is the correct configuration structure for the charge/discharge/start/stop block when you have two inverters that are different ?
In my case I want inverter 0 to be controlled by predbat using this config block. Inverter 1 is controlled by HA, responding to the value of predbat.status. However, the SOC, energy and power of inverter 1 is tracked by predbat, so as to get the maths right.
So this config block for inverter 1 needs to be , logically speaking, a do-nothing block.
I've been through chatgpt and claude, neither could help me figure this out other than both being certain (basedon them reviewng my logs) that my config is causing predbat to send commands to inverter 0 when its really trying to talk to inverter 1.
the behaviour I am seeing is that the charge/discharge/start/stop block that I have coded to make changes for inverter 0 (and it works, if only inverter 0 is in the system), is also called when predbat wants to make a change to inverter 1. which breaks things, inverter 0 (which is a cloud controlled powerwall, which makes life harder as well) gets confused as its export allowed state flip flops around and ends up wrong.
If I run it without inverter 1 its basically clean behaviour.
inverter 0 is a powerwall, inverter 1 is a victron, although I think that isn't a relevant issue. I am not trying to balance inverters or any of that.
I've set has_service_api: False in inverter 1, but that doesn't appear to make any difference.
help!
`
All reactions