A lamp system comprising: a lamp comprising: a housing; a light source; and a control circuitry coupled to the light source, the control circuitry comprising: an input configured to receive a single power from a power supply system; an output connected to the light source for supplying an electrical current to the light source; a determining block connected to the input and configured to determine, when the lamp is in use, whether the single power received at the input is from a main power supply or a secondary power supply and to generate a corresponding determined signal; a control block coupled to the determining block and configured to receive the determined signal and to generate a control signal based on the determined signal; and a conversion block coupled between the input and the output and configured to receive the control signal and to convert the single power from the main power supply or the secondary power supply to the electrical current, wherein the intensity of the electrical current is controlled by the control signal; wherein the light source and the control circuitry are arranged within the housing; and the power supply system coupled to the lamp and arranged outside the housing of the lamp, wherein the power supply system is configured to provide the single power supplied from the main power supply and, alternatively, from the secondary power supply to the input of the control circuitry. a lamp comprising: a housing; a light source; and a control circuitry coupled to the light source, the control circuitry comprising: an input configured to receive a single power from a power supply system; an output connected to the light source for supplying an electrical current to the light source; a determining block connected to the input and configured to determine, when the lamp is in use, whether the single power received at the input is from a main power supply or a secondary power supply and to generate a corresponding determined signal; a control block coupled to the determining block and configured to receive the determined signal and to generate a control signal based on the determined signal; and a conversion block coupled between the input and the output and configured to receive the control signal and to convert the single power from the main power supply or the secondary power supply to the electrical current, wherein the intensity of the electrical current is controlled by the control signal; wherein the light source and the control circuitry are arranged within the housing; and a housing; a light source; and a control circuitry coupled to the light source, the control circuitry comprising: an input configured to receive a single power from a power supply system; an output connected to the light source for supplying an electrical current to the light source; a determining block connected to the input and configured to determine, when the lamp is in use, whether the single power received at the input is from a main power supply or a secondary power supply and to generate a corresponding determined signal; a control block coupled to the determining block and configured to receive the determined signal and to generate a control signal based on the determined signal; and a conversion block coupled between the input and the output and configured to receive the control signal and to convert the single power from the main power supply or the secondary power supply to the electrical current, wherein the intensity of the electrical current is controlled by the control signal; an input configured to receive a single power from a power supply system; an output connected to the light source for supplying an electrical current to the light source; a determining block connected to the input and configured to determine, when the lamp is in use, whether the single power received at the input is from a main power supply or a secondary power supply and to generate a corresponding determined signal; a control block coupled to the determining block and configured to receive the determined signal and to generate a control signal based on the determined signal; and a conversion block coupled between the input and the output and configured to receive the control signal and to convert the single power from the main power supply or the secondary power supply to the electrical current, wherein the intensity of the electrical current is controlled by the control signal; wherein the light source and the control circuitry are arranged within the housing; and the power supply system coupled to the lamp and arranged outside the housing of the lamp, wherein the power supply system is configured to provide the single power supplied from the main power supply and, alternatively, from the secondary power supply to the input of the control circuitry.