Added possibility to re-wire in-devices to control the relay (see readme)