The invention relates to a method of and a device for controlling a shed lighting, and a shed (1) provided therewith. To support daylight, lamps (3-6) are switched on, but only in the case when the measured intensity is too low and, moreover, the time in which the daylight intensity could become sufficient is too short to achieve a desired period of time with a minimum light intensity. This saves energy and service life of lamps.