Smart Relay with an integrated current sensor