That is the level of complexity I think I would be comfortable with going to.
Selling back to the grid/energy supplier has only one winner, even though you will get a few crumbs thrown back with the SEG payments. They buy at a lower price than they sell back, would be a strange business model if they didn't. You are better off using as much of the energy you generate for your own needs as possible and selling nothing back to the grid.
Raising the complexity further there is the laudable sounding concept of a virtual power plant (VPP). The best known of these is here and in the UK and known as the Tesla Virtual Power Plant.
Basic requirements, a Solar installation and a Testa Powerwall 2, and part of the package a key bit of casino software, using Tesla's real-time trading and control platform, known as Autobidder. With Autobidder, Tesla provides independent power producers including domestic solar (just started), utilities, and its capital partners with the ability to autonomously monetize battery assets. The domestic customer operates on a fixed symmetrical tariff for import and export, and doesn't play in the casino themselves, but TESLA uses their autobidder software and your Powerwall2 to buy and sell energy and storage...automatically and not just your excess solar.
This phrase loses me...
You dont even have to have a Tesla to join the Tesla VPP just a solar installation, and a Powerwall 2. They have teamed up with Octopus Energy in the UK to launch the Tesla Energy Plan.The Tesla Virtual Power Plant (VPP) is a modern example of a cloud-native architecture that leverages edge computing.
https://www.tesla.com/en_gb/tesla-energy-plan
REgards Neil