An emergency converter comprising an energy storage interface configured to connect an energy storage device to the emergency converter, wherein the energy storage interface is configured to connect to energy storage devices of at least two different types to which different parameters for controlling the emergency converter are assigned; and a control circuit configured to determine the type of an energy storage device connected to the energy storage interface and to set at least one parameter assigned to the determined type, the energy storage interface comprises a sensor connector (7.1) to connect to a sensor circuit of the energy storage device comprising a temperature sensor (R NTC) for generating a temperature signal indicating a temperature of the energy storage device and at least a resistor (R BC) for generating a type signal indicating the type of the energy storage devices; and the control circuit is configured to detect the type signal received by the sensor connector (7.1), to determine the type of energy storage device connected by the energy storage interface based on the detected type signal, to detect the temperature signal received by the sensor connector (7.1), to control charging and/or discharging of the energy storage device based on the detected temperature signal characterized in that the type signal is generated in a first period and the temperature signal is generated in a second period following the first period; the control circuit is further configured to detect the type signal received by the sensor connector (7.1) in the first period, to detect the temperature signal received by the sensor connector in the second period, to determine an error of the temperature signal based on the determined type of the energy storage device, to correct the temperature signal based on the determined error, to control charging and/or discharging of the energy storage device based on the corrected temperature signal and/or to generate a warning signal when a temperature indicated by the temperature signal exceeds an upper threshold value to generate the warning signal when the temperature lies below the lower threshold value. an energy storage interface configured to connect an energy storage device to the emergency converter, wherein the energy storage interface is configured to connect to energy storage devices of at least two different types to which different parameters for controlling the emergency converter are assigned; and a control circuit configured to determine the type of an energy storage device connected to the energy storage interface and to set at least one parameter assigned to the determined type, the energy storage interface comprises a sensor connector (7.1) to connect to a sensor circuit of the energy storage device comprising a temperature sensor (R NTC) for generating a temperature signal indicating a temperature of the energy storage device and at least a resistor (R BC) for generating a type signal indicating the type of the energy storage devices; and the control circuit is configured to detect the type signal received by the sensor connector (7.1), to determine the type of energy storage device connected by the energy storage interface based on the detected type signal, to detect the temperature signal received by the sensor connector (7.1), to control charging and/or discharging of the energy storage device based on the detected temperature signal characterized in that the type signal is generated in a first period and the temperature signal is generated in a second period following the first period; the control circuit is further configured to detect the type signal received by the sensor connector (7.1) in the first period, to detect the temperature signal received by the sensor connector in the second period, to determine an error of the temperature signal based on the determined type of the energy storage device, to correct the temperature signal based on the determined error, to control charging and/or discharging of the energy storage device based on the corrected temperature signal and/or to generate a warning signal when a temperature indicated by the temperature signal exceeds an upper threshold value to generate the warning signal when the temperature lies below the lower threshold value.