If you own an Tuya TS0011 zigbee switch, without Neutral. It might fail. If it has failed, it is likely due to bad capacitors.

The power supply in the switch holds 3 capacitors.

1 x 50V 4.7uF and 2 x 10V 330uF. The 330uF have failed in my switch. I think the reason for that is that the voltage of 10V is too low. I did not measure them, but I replaced these with a higher voltage of 16V.

The 330uF capacitors where leaking and bulging.

Replacing them is straight forward.

DISCONNECT MAINS! DISCONNECT MAINS! DISCONNECT MAINS!

1: Did I mention, DISCONNECT MAINS!

2: Wait a while for the capacitors to drain power

3: Open the case, it is clipped together

4: The PSU is screwed down, in my case with 1 screw, remove it.

5: Remove the PSU and replace the capacitors