Recognition and automatic matching with power supply