PLC Selection

yes ESP-32 devices are the best. You can easily program them to do what you want and they integrate easily into homeassistant.

Check out this little screen. It has user defined button, 3 relays to control lights and costs less then $30.