ESP8266 Wifi Down

How to switch off wifi of my esphome? but not the uP
I want my esphome/esp8266 to (Modem – Sleep) mode

wake RF/Wifi when time = 4am

how to do this ?

You’re looking for WiFi Component — ESPHome - power_save_mode: HIGH
I don’t think that turns Wifi off, though.

esphome/wifi_component_esp8266.cpp at dev · esphome/esphome · GitHub