Method for controlling a device, comprising: - an electrical energy source for outputting an output voltage U, - at least one functional element having electrically controllable optical properties, - at least two supply lines, by means of which the electrical energy source and the functional element are connected, wherein a thermometer is arranged on the functional element and the thermometer is coupled to the power supply, wherein the output voltage U has a trapezoidal alternating voltage with rounded corners having - a frequency f of 40 Hz to 210 Hz, - a maximum amplitude U max of 24 V to 100 V, - a slope in the range of the output voltage U between -80% U max and 80% U max of 0.05*U max /100 μs to 0.1*U max /100 μs and in the range of the output voltage U between 80% U max and -80% U max of -0.05*U max /100 μs to -0.1*U max /100 μs, wherein the slope in the range between -100% U max to -80% U max as well as between 80% U max to 100% U max is less than 0.05*U max /100 μs and between 100% U max to 80% U max as well as between -80% U max to -100% U max is greater than -0.05*Uma x /100 μs, a) a temperature T is measured at the thermometer, and b) the maximum amplitude U max of the output voltage U is adapted to the temperature, wherein from a certain threshold temperature T S as the temperature T increases at the thermometer, the maximum output voltage U max is lowered and up to a certain threshold temperature T S as the temperature T drops, the maximum output voltage U max is increased. - an electrical energy source for outputting an output voltage U, - at least one functional element having electrically controllable optical properties, - at least two supply lines, by means of which the electrical energy source and the functional element are connected, wherein a thermometer is arranged on the functional element and the thermometer is coupled to the power supply, wherein the output voltage U has a trapezoidal alternating voltage with rounded corners having - a frequency f of 40 Hz to 210 Hz, - a maximum amplitude U max of 24 V to 100 V, - a slope in the range of the output voltage U between -80% U max and 80% U max of 0.05*U max /100 μs to 0.1*U max /100 μs and in the range of the output voltage U between 80% U max and -80% U max of -0.05*U max /100 μs to -0.1*U max /100 μs, wherein the slope in the range between -100% U max to -80% U max as well as between 80% U max to 100% U max is less than 0.05*U max /100 μs and between 100% U max to 80% U max as well as between -80% U max to -100% U max is greater than -0.05*Uma x /100 μs, a) a temperature T is measured at the thermometer, and b) the maximum amplitude U max of the output voltage U is adapted to the temperature, wherein from a certain threshold temperature T S as the temperature T increases at the thermometer, the maximum output voltage U max is lowered and up to a certain threshold temperature T S as the temperature T drops, the maximum output voltage U max is increased. - a frequency f of 40 Hz to 210 Hz, - a maximum amplitude U max of 24 V to 100 V, - a slope in the range of the output voltage U between -80% U max and 80% U max of 0.05*U max /100 μs to 0.1*U max /100 μs and in the range of the output voltage U between 80% U max and -80% U max of -0.05*U max /100 μs to -0.1*U max /100 μs, wherein the slope in the range between -100% U max to -80% U max as well as between 80% U max to 100% U max is less than 0.05*U max /100 μs and between 100% U max to 80% U max as well as between -80% U max to -100% U max is greater than -0.05*Uma x /100 μs, a) a temperature T is measured at the thermometer, and b) the maximum amplitude U max of the output voltage U is adapted to the temperature, wherein from a certain threshold temperature T S as the temperature T increases at the thermometer, the maximum output voltage U max is lowered and up to a certain threshold temperature T S as the temperature T drops, the maximum output voltage U max is increased. a) a temperature T is measured at the thermometer, and b) the maximum amplitude U max of the output voltage U is adapted to the temperature, wherein from a certain threshold temperature T S as the temperature T increases at the thermometer, the maximum output voltage U max is lowered and up to a certain threshold temperature T S as the temperature T drops, the maximum output voltage U max is increased.