If anyone is wondering why your ESP32 in your wall as your ESPHome controller randomly flickers and dies...

Especially when you turn on large inductive loads such as a ceiling fan...

May I remind you of the fact that the inductive loads have a massive inrush current...

Which means a massive magnetic field...

Which, to unprotected devkits in your switchboards with coiled up Dupont wire right next to these AC lines means...

Massive spikes in voltage... What do they do to poor tiny ESP32s and the input pins on relays?

They kill them. Straight up murder, let me tell you! Guess who learnt it the hard way?

Expensive mistakes :(

The fact that my ESP32s survived almost 4 years is a massive achievement, but yeah they're slowly starting to die. I guess I'll have to shield them.

Or just get a ZBMINI from Sonoff and get those ESP32s off the damn Wi-Fi network. Frankly, I might just do that.

Thanks for reading...