Inverter / charger highly depending if it is combined unit, or 2 different.
Chargery and DIYBMS both use simple NO / NC relays to trigger something. (Normally Open / Normally Closed)
Those relays are not to be used to switch high current, but to switch something on or off.
If you have separate inverter who have a power switch, you simply can trigger that power switch.
(power switch is connection with 2 wires, usually the negative lead cut and place switch in between)
Same goes for the charger
If you can't turn them on / off, you need to cut the line towards the battery array for charging and from the array for discharge.
Usually the charge is lower current.
If it charges from AC, you can use AC contactor.
Discharge highest current
The same relay that is used to turn inverter on or off, is the same that turns contactor on or off, close the electric circuit, and the magnet that makes the +300A contact receive power (24v)
You get the 24v from the cells, it's usually between 18 and 36 volt margin.
No worries there for exact voltage.
And it's just that, electromagnet that push a core to make contact.
Plus.. why it's expensive, it have arc catcher.
With 300A 24v you can pull a nice arc, melting just about anything
The special setup prevent this.
There is difference between DC and DC breakers.
The cheap ones..
5 bucks from China..
Really nice for lights in your car or 12/24 v setup.
Don't switch 300A with them..
You be sorry.
I have used a while.. and all seems fine.. untill it doesn't.
No arc catcher..
And after a few switches there is constant arc, making the housing all crispy and smoking..
I didn't wait if it catch fire, just pulled the cables strong, and the melted housing released the contact...
Scarry moment
Huge difference between real breakers who have arc catcher and cheap ones who just connect or disconnect DC..
Side step
I will advise to use breakers, if only for safety reasons during maintenance. No sparks!