You might need a transistor or relay between the esp32 and lamp, assuming the lamp draws more current than the esp32 can sink.
Easiest solution is probably a Zigbee or wifi switch for the wallwart, but that's not as elegant and a bit overkill :P
You might need a transistor or relay between the esp32 and lamp, assuming the lamp draws more current than the esp32 can sink.
Easiest solution is probably a Zigbee or wifi switch for the wallwart, but that's not as elegant and a bit overkill :P