except for a far away wall thermostat that is also connected via the R and W wires.
This is the critical component! Is this thermostat isolated all around? No metallic parts which can be touched by hand or fingers?
If both questions are answered with YES, you may use a Shelly 1!