Liquid-metal batteries are used for industrial power backup, special electric vehicles and for grid energy storage, to balance out intermittent renewable power sources such as solar panels and wind turbines. The electrode and electrolyte layers are heated until they are liquid and self-segregate due to density and immiscibility.