ESPHome automation causing rebooting of ESP32

I don’t understand the lower level stuff but I believe you have to be careful using delays in lambdas too.

So worth trying zoogara’s approach.