I have 2-gang touch wall switches that I want to make Wi-Fi-controlled. I'm intending to use Wi-Fi-enabled relays connected to the switches so that the switch outputs are connected to the relay switch inputs.
The problem is that the switches do not use the neutral line and leak current through the load in order to power themselves. This means that I cannot simply connect these two kinds of devices as described above and I somehow need to allow for constant current flow through the switches.
For now, I installed 5W 47kΩ ceramic resistors and everything seems to work as expected, but the resistors waste a lot of power and heat up to 75°C:
2W connection is for 2-way communication between the switches and only one of them actually drives the lights.)
I'm thinking about replacing them with metallized polyester film capacitors, as illustrated below:
I tested a range of resistances and found out that the maximum resistance for the switches to work properly is around 47kΩ. I was thinking about using 100nF capacitors rated for 630V, such as these jb 2J 104K ones, which should provide around 31.8kΩ capacitive impedance at 230V 50Hz.
Am I reasoning correctly and is it safe to use these capacitors in my case? Note that they would be under constant operation. Also, I'm not sure if the phase shift introduced by the capacitors would be an issue here.