Iran plans to ration electricity due to a fuel shortage exacerbated by damage to energy facilities during the Middle East war.