Shock

Electrocution can be a painful, and even fatal result of repairing electrical or electronic devices. The lower a Sim's mechanical skill level is, the more likely electrocution becomes, but it can happen even to Sims whose mechanical skill is high. It can also be triggered when the Sim is standing in a puddle while doing the repairs. Sims can call a Repairman to avoid this possible death, though there is a small chance that the Repairman will also be electrocuted.

The Sims
In The Sims, Sims have a high chance of repairing an electrical object with low mechanical skill. This chance decreases, but never drops to zero, as mechanical skill increases. Sims are also guaranteed to get electrocuted when repairing an electrical object whilst standing on a puddle. When a Sim is electrocuted, they are guaranteed to die and cannot be saved.

The Sims Bustin' Out (on console)
In The Sims Bustin' Out on console, one item in electronics is a bug zapper. An adult Sim has the option to "Touch" a bug zapper, and can be electrocuted, but will not die. It does increase their energy motive and decreases other motives.

The Sims 2
In The Sims 2 SUCKS DICK,

In The Sims 2 (console), Sims with low mechanical skill can also get electrocuted while operating a DJ machine. Usually this will happen while deploying the machine effects (laser, fog, and fireworks). This will also cause the Sim to die.

The Sims 3
In The Sims 3 IS OK

The Sims 4
In The Sims 4 THE BEST,