The entire circuit is switched off by a switch in the 230v AC voltage line that powers the power supply.
Basically my circuit works fine but I got one remaining problem:
When it was off for a longer time (so all capacitors in the power supply are discharged) and I switch power on the ESP wont start up.
So I have then to switch off and on again THEN it will start up fine.
By now the 3.3V from the buck converter is connected to the 3.3V pin of the ESP.
Earlier I had the buck converter set to 5V and connected to the VIN pin of the ESP having the same result. Also pushing the voltage highter to 7V didn't change anything.
I also tried to attach a 4.7uF capacitor from 3.3V to ground at the buck converter which also didn't help at all.
Therefore.....
What might be the reason I need to switch power on twice to make the ESP start correctly?
Alternatively, try a different step-down converter.
My reasoning is that the slow-rising soft-start feature of the converter causes problems with the controller coming out of Reset while Vcc is still insufficient for reliable operation. It's likely that the buck converter you use, uses the recommended 100nF soft start cap for a slow voltage ramp-up of 15ms during switch-on. If you remove it, or replace it with something much smaller (e.g. 10nF), power on will be quicker or virtually instantaneous and you may prevent this startup problem.
About the 5V VIn as I said that's what was my idea at first as well but it had rhe same Problem and my LEDs would have had too much voltage at the ESP Pins which work at 3.3V so I changed it.