... electricians ... are not going anywhere.

I wouldn't be so sure about that.

Power systems have a long way to go in terms of integration with data. One can envisage an inherently safe system whereby a data signal is superimposed on the wire (related to data-over-power) and every power source continually interrogates its loads and conditions on the wire are being continually monitored. Any unsafe situation will result in a shutdown of supply.

I'm describing a system that goes well beyond existing breakers and earth leakage: one that is able to fully map the connections between components, know the topology of the system and compare actual and expected behaviour. The idea is that any dummy could do electrical wiring, as the system itself would make it impossible to create an unsafe situation.

Cost would be higher to start with, but with economies of scale reducing the difference, my guess is that the higher cost of components could be offset by lower installation cost and the increased safety.

Yeah, that's not going to be retrofitted into a double digit percentage of homes by 2040.

Electricians are not going anywhere, this decade or next. I stand by what I said.