All you need is an ESP32 board and some tinkering with ESPHome.