Instant switch between battery and grid power because of 1N5822 Schottky diode. Circuit is very simple. Main 15v dc (positive) with 1n5822 connected directly to output switch. 15v dc connected to xl4015 board red one. Xl4015 connected to bms input output points. BMS’s extra input output connected to XL6019 boost converter. Xl6019 output with 1N5822 diode connected with switch n output.
I recommend adding a extra switch between XL4015 output with bms connection .
Instant switch between battery and grid power because of 1N5822 Schottky diode. Circuit is very simple. Main 15v dc (positive) with 1n5822 connected directly to output switch. 15v dc connected to xl4015 board red one. Xl4015 connected to bms input output points. BMS’s extra input output connected to XL6019 boost converter. Xl6019 output with 1N5822 diode connected with switch n output. I recommend adding a extra switch between XL4015 output with bms connection .