If the issue here is no power to the electronics when the switch is off, would it not be possible to insert a small rechargable battery that was charged when the circuit was on and then use that to power something like a low power zwave or zigbee circuit to connect to a hub when the main circuit is off? I have 4cm zigbee buttons that run off watch batteries so surely it would be possible to shrink this to a size that would fit in a standard pattress space?