Wanting to power my pool off grid with my 2 AC300

Im looking to disconnect my Pool from the grid. I have a pentair variable speed pump. I have it set to run at 2800RPMs and it takes about 1400wh. My plan is to Disconnect the Sub panel from the grid and run 6g wire from the pool Sub panel to my Shed that houses both my AC300 units. In the shed Im planning on using a L14-30R that both my AC300s (240v) that directly tie into the pool sub panel. The sub panel will still be Bonded to the ground from the main panel. Will this work? I dont see any reason why it wouldn’t. Is there anything else that you guys suggest I do or use with this system? I will also have the AC300s plugged into the grid for those cloudy days. Charging at 15A @1800wH. My main question is, Can I wire directly into the sub panel?

Thanks for your help