I’ve got a cheap salt lamp with a LED inside and it runs on a 5V wall wart. I think it originally had a USB plug but I cut that off and connected it to an old 5V power supply.
I’ve never used esp32, but I’ve been doing some reading and it seems like an esp32-c6 will allow me to do this with ZigBee.
Does this sound reasonable? Are there other options I should consider?


Look into the Shelly relays. You can put them inline I’m pretty sure if you don’t want them in the socket.
I’m aware of Shelly and similar products. they are way overkill for this lamp - it’s literally 1 LED and was powered from USB before I modified it to run from a 5V wall wart. I’ve ordered a few ESP32 boards to play with. I’m pretty confident I can power my lamp from one because one of the tutorials I found for new users was literally making a light switch. The tutorial used a LED for proof of concept and said to replace the LED with a relay to switch a real light.