1950: Lighting was 30% of total electrical demand [1] 1993-1997: 112 TWh, 9% of demand [2] 2020: 81 TWh, 6% of demand [3]
Couldn't find total used in 1950 but the point remains: Lighting used to be a major source of consumption and now it's pretty minor, and at least the trends in the last 30 years have been driven by efficiency gains, particularly following the energy crisis in the 70s.
[1] https://www.researchgate.net/publication/222531686_Exergy_po...
[2] https://eta-publications.lbl.gov/sites/default/files/lbnl-40...
As for gas or oil boilers - oil is uncommon except in rural areas - gas is far more common but not as ubiquitous in the past as you’d think - many folks heated their homes with resistive electric radiators or IR heaters - so a heat pump is a huge efficiency win.