Maybe I missed it, where did you see the $2-4 million? The wiki article says "the total value of the recovered gold was estimated at $100–150 million."
Where could one learn more about the Entity Component system as described in the article? Is it as simple as an object contains an array of components?
But crypto mining puts a floor on prices. If sunny day noon prices were able to go significantly negative, it would make the economics of storage better.
The term you are looking for is called islanding. When the grid goes down you want it to throw an automatic transfer switch and power your house from solar and/or batteries. When the grid returns, you want it to resync the AC wave and draw from the grid as needed. Check out the Victron Multiplus as an example.