Electronic ballast, EVG, for controlling at least one lamp, such as an LED, fluorescent lamp, gas discharge lamp, or the like, with at least: a mains rectifier which can be connected to a mains voltage supply which provides a mains supply, a resonance converter for generating a start and/or operating voltage from the mains voltage supply rectified by the mains rectifier, characterized in that the EVG further includes: an electronic switching device which has at least one electronic mains switching element, wherein the electronic mains switching element is designed such that it switches off the mains voltage of the mains voltage supply in the event of an emergency light situation when the mains voltage is too low, wherein an emergency voltage as the intermediate circuit voltage can be fed into the EVG via the electronic switching device, an intermediate circuit voltage switch (7, 8, 9, 11, 32), and a working frequency switch (35, 10, 12, 33), wherein different intermediate circuit voltages can be determined by means of the intermediate circuit voltage switch, and different working frequencies of the EVG can be set by means of the working frequency switch, wherein the intermediate circuit voltage switch (7, 8, 9, 11, 32) has resistance combinations switchable by means of an emergency light switching element of the electronic switching device in order to reduce the intermediate circuit voltage in an emergency light situation, and to enable a reduction of the lamp power, and the working frequency switch (10, 12, 33) has resistance combinations switchable by means of a switching element of the electronic switching device in order to increase a frequency of the electronic ballast in an emergency light situation, and to enable a further reduction of the lamp power. a mains rectifier which can be connected to a mains voltage supply which provides a mains supply, a resonance converter for generating a start and/or operating voltage from the mains voltage supply rectified by the mains rectifier, characterized in that the EVG further includes: an electronic switching device which has at least one electronic mains switching element, wherein the electronic mains switching element is designed such that it switches off the mains voltage of the mains voltage supply in the event of an emergency light situation when the mains voltage is too low, wherein an emergency voltage as the intermediate circuit voltage can be fed into the EVG via the electronic switching device, an intermediate circuit voltage switch (7, 8, 9, 11, 32), and a working frequency switch (35, 10, 12, 33), wherein different intermediate circuit voltages can be determined by means of the intermediate circuit voltage switch, and different working frequencies of the EVG can be set by means of the working frequency switch, wherein the intermediate circuit voltage switch (7, 8, 9, 11, 32) has resistance combinations switchable by means of an emergency light switching element of the electronic switching device in order to reduce the intermediate circuit voltage in an emergency light situation, and to enable a reduction of the lamp power, and the working frequency switch (10, 12, 33) has resistance combinations switchable by means of a switching element of the electronic switching device in order to increase a frequency of the electronic ballast in an emergency light situation, and to enable a further reduction of the lamp power. an electronic switching device which has at least one electronic mains switching element, wherein the electronic mains switching element is designed such that it switches off the mains voltage of the mains voltage supply in the event of an emergency light situation when the mains voltage is too low, wherein an emergency voltage as the intermediate circuit voltage can be fed into the EVG via the electronic switching device, an intermediate circuit voltage switch (7, 8, 9, 11, 32), and a working frequency switch (35, 10, 12, 33), wherein different intermediate circuit voltages can be determined by means of the intermediate circuit voltage switch, and different working frequencies of the EVG can be set by means of the working frequency switch, wherein the intermediate circuit voltage switch (7, 8, 9, 11, 32) has resistance combinations switchable by means of an emergency light switching element of the electronic switching device in order to reduce the intermediate circuit voltage in an emergency light situation, and to enable a reduction of the lamp power, and the working frequency switch (10, 12, 33) has resistance combinations switchable by means of a switching element of the electronic switching device in order to increase a frequency of the electronic ballast in an emergency light situation, and to enable a further reduction of the lamp power.