Researchers in Spain has found that combining PV power generation with fuel cells and battery storage may help homes considerably reduce their levelized cost of energy. Their simulation reportedly demonstrated homes may also become completely self-sufficient.
A hydrogen-base system would get much cheaper per kWh as it scales up. Most of the cost is probably the fuel cell, electrolyzer, batteries, etc. The tanks probably cost very little.