Creating a smart light switch with AT Tiny or AT Mega328

Hi there,

Looking for some advice creating a small project. I've recently begun installing some smart devices to my home, mainly ceiling lights and plugs to trigger LED strips, lamps and heaters. My biggest problem is that everything is controlled by my google assistant. This is irritating as to toggle anything I either need to talk to my google home, which is a novelty but a little irritating, or trigger it via an app in my phone. Additionally, my housemates and I are in the habit of turning off light switches on our way out of a room, which renders the smart bulb useless.

My solution is to make a simple project with a wifi module such as an esp8266, some buttons and a couple of AA batteries to power it (putting the microcontroller in sleep mode after a period of inactivity to get a few months out of the batteries). With this nicely presented in an aesthetic housing so it can be stuck to any surface in my rental (double-sided tape so as to not damage walls), and control lights by sending IFTTT commands.

I'm confident I could do this and have found several videos outlining all the steps, however, I don't want to sacrifice a whole Uno or Nano to this project, particularly if I make several.

So my question is, could I create this project with an AT tiny or AT Mega328. Or are neither of these powerful enough?

Is using the ESP8266 (programmed with the Arduino core) not powerful enough?

Once you have the ESP8266, the ATmega is superfluous. :cold_sweat:

Packaging is often the problem - I believe the Sonos light switches use the 8266 and are reprogrammable - well worth a google