The final version of my emergency light circuits. It has the least amount of components, but is still reliable.
All of the components within the inductors are replacing an optocoupler.
Important: Do not plug it in too often, else the optocoupler might break. It is best to just leave it plugged in.