A heat pump gets more heat from a given amount of electricity than if the electricity is use for resistive heating. So the ideal design is solar cell + sodium battery + heat pump.
Does seem like a lot of added complexity (and likely machinery cost) though.