I built my system using ESP8266 + ESP-01 with ESPHome.
Only code for defining a switch was added in yaml, but ESP8266 devices frequently became unavailable.
Sometimes the device was even frozen.
No response at all
I believe that it is a hardware problem.
Is there any WiFi relay (with NC/NO) that is reliable?
The maximum load is less than 3W (20VAC).