The spray on type solar technology is different than current solar cells. I understand the standard technology better than the newer quantum stuff.
Battery technology is changing and the potential of reasonably priced roomy storage is on the horizon. There are at least 6 different companies with varying levels of credibility that claim they will be delivering superior battery technology in the next 5 years. If claims are to be believed, it should be posible to store enough power to actually make a viable whole house UPS.
I think that cheap oil has actually suppressed some areas of technology for the last 50 years.
The priority of the transfer switch could be programmed by the homeowner. Choice would depend on cheapness and availability of source at the time. Could even sell back excess power to the grid.