Thanks to ESP32lights you can turn a load on and off (I used it for my christmas lights)

- manually
- based on daily schedules
- based on the light intensity

ESP32lights connects to your wifi network, can be configured and operated via a web browser and it’s optimized for mobile devices (responsive web interface based on jQuery Mobile).”