What is the reason not to use a relays for making connection between two wires of which you do not know what the dynamics are? In the original setup, they require a galvanic connection and I would stick with it.
The question is also: is the original switch a momentary or and on-off switch? No matter what, you have power dependency...
If it is a normal on-off switch:
Case one: with a normal relays a power fail disconnects and you need a manual override (parallel on-off switch)
Case two: with a bistable relays, a power fail leaves you stuck with the last state and you need a manual override (in series with one of the on of a on-off-on switch, where the other on make the direct connection).
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
What is the reason not to use a relays for making connection between two wires of which you do not know what the dynamics are? In the original setup, they require a galvanic connection and I would stick with it.
The question is also: is the original switch a momentary or and on-off switch? No matter what, you have power dependency...
If it is a normal on-off switch:
Case one: with a normal relays a power fail disconnects and you need a manual override (parallel on-off switch)
Case two: with a bistable relays, a power fail leaves you stuck with the last state and you need a manual override (in series with one of the on of a on-off-on switch, where the other on make the direct connection).