Eric, perhaps you could say who sets such rules? Otherwise it's a bit meaningless.
I think the not leaving electrical equipment is dangerous condition is HSE, I think the uninhabitable is housing act 1957 although that seems a long time ago so likely updated.
I do see your point, there are a lot of Chinese whispers as what is required, and we know the electrical regulations have dropped requirements like distance of socket from sink and earthing metal window frames, so we are often miss informed as to requirements.
In the main the finding of alternative accommodation is for tenants, but as far as I am aware it does not actually say that, however neither does it say who should pay for the alternative accommodation. So it seems one could say there is room in the Kings Head Hotel it will cost you £100 per night and that's your bit as the electrician leaving the power off covered, so it is a little pointless.
So like Part P with the approved documents we have guidance documents which are not actually the regulations. However lighting, heating, cooking, hot and cold water, and means to remove waste is reasonably basic requirements. So switching off sockets OK, switching off lights not OK, clearly a house with solid fuel fires, and a supply of candles may be considered habitable.
But there has to be some common sense, and if you can't complete some work in a house with vulnerable people in it, then you should be phoning social services and telling them the house is unfit, and in other words passing the buck. If not a home with vulnerable people it is reasonable to expect they can make their own arrangements.
I have personally been stuck until 11 pm trying to restore power when things have gone wrong, fitting new field coils into a generator using a large copper soldering iron heated on a gas stove. As competent people we should be looking after the safety of ourself and others, and leaving a house with no lights is not really safe. I ended up stopping the night as was told travelling over the camp at night was not safe, it was in the Falklands, but that does not really matter, you don't walk away leaving something not safe where ever you live.