Can home batteries really protect you from high energy prices?

Batteries are often sold to help shield your household from soaring energy bills. But how much protection do they really offer, and when do the numbers stack up?