Your best option is using a microcontroller, that is, an Arduino or better yet an ESP32 or NodeMCU like Yannik_Sc said, because it has a wifi interface.
With this microcontroller and a relay to toggle the lights you can then create network endpoints which are activated via wifi with a standard http request. You could then set-up a raspberry pi as the main gateway to your home automation network with a web frontend made in NodeJS.
Your best option is using a microcontroller, that is, an Arduino or better yet an ESP32 or NodeMCU like Yannik_Sc said, because it has a wifi interface.
With this microcontroller and a relay to toggle the lights you can then create network endpoints which are activated via wifi with a standard http request. You could then set-up a raspberry pi as the main gateway to your home automation network with a web frontend made in NodeJS.
Thank you Damian, You actually cleared my doubt on creating a network and handle it. :)
I second the ESP32. I've been programming them using MicroPython to build various IOT / robotics projects. The dev board that I've been using costs $10 USD, with the standalone module costing ~$4 USD.