How to get 5V from a NO NEUTRAL SWITCH - Feasible?

Can someone clarify how to tap a stable 5V from a no-neutral AC switch to power up a ESP32 without turning on the switch? Is this possible? Would the current be enough?

Context: In the same way these no-neutral Zigbee switches tap its energy from the no neutral wiring, how this can be done to power up a D1MINI or ESP32?

2023-10-09 21_38_41-AVATTO 1_2_3 Gang Tuya Zigbee Light Switch Module No Neutral Wire, 2 Way Control

I think the only way to do this would be to crack open the box to try and locate the 5V and GND pins that the above module’s processor uses internally, then solder some wires and run these out of the module to power your ESP32.

WARNING: Be very careful though, there’s mains voltages in there and you need to maintain segregation between the high voltage and low voltage circuitry. I would advise only doing this is you know what you are doing.

I’m assuming that you don’t have space for a 5V PSU.

1 Like

Thanks for the reply. I have mentioned the Zigbee switch as a concept and not to use its converted power to power up the ESP32. I think there wouldnt be enough current in this case.

I dont have enough space for a 5V power source as well. Cheers