I use sonoff S31 smart plugs and flash them with esphome.
Homeassistant automation or node red can do this.
I use sonoff S31 smart plugs and flash them with esphome.