A method of controlling a plurality of lighting units (112, 114) of a lighting system, wherein a first lighting unit of the plurality of lighting units (112, 114) has a first function to provide ambient lighting and a second lighting unit has a second function to provide functional lighting, the method comprising: - receiving, by a communication module, a first input indicative of that a light scene of a first type has been activated, - receiving, by the communication module, a second input indicative of a dimming command for the plurality of lighting units (112, 114), and - obtaining, by a processor, data from a memory, indicative of functions of the plurality of lighting units (112, 114), characterized in that the method further comprises: - determining, by the processor, if the light scene of the first type is still active or if a different light scene of a second type is active, and, if the light scene of the first type is still active: - controlling, by the processor, the first lighting unit based on the dimming command according to a first dimming profile, wherein the first dimming profile for the first lighting unit is based on the first function, and simultaneously - controlling, by the processor, the second lighting unit based on the dimming command according to a second dimming profile different from the first profile, wherein the second dimming profile for the second lighting unit is based on the second function, if the different light scene of the second type is active: - controlling, by the processor, the first and second lighting units (112, 114) simultaneously based on the dimming command according to a third dimming profile. - receiving, by a communication module, a first input indicative of that a light scene of a first type has been activated, - receiving, by the communication module, a second input indicative of a dimming command for the plurality of lighting units (112, 114), and - obtaining, by a processor, data from a memory, indicative of functions of the plurality of lighting units (112, 114), - determining, by the processor, if the light scene of the first type is still active or if a different light scene of a second type is active, and, if the light scene of the first type is still active: - controlling, by the processor, the first lighting unit based on the dimming command according to a first dimming profile, wherein the first dimming profile for the first lighting unit is based on the first function, and simultaneously - controlling, by the processor, the second lighting unit based on the dimming command according to a second dimming profile different from the first profile, wherein the second dimming profile for the second lighting unit is based on the second function, if the different light scene of the second type is active: - controlling, by the processor, the first and second lighting units (112, 114) simultaneously based on the dimming command according to a third dimming profile. if the light scene of the first type is still active: - controlling, by the processor, the first lighting unit based on the dimming command according to a first dimming profile, wherein the first dimming profile for the first lighting unit is based on the first function, and simultaneously - controlling, by the processor, the second lighting unit based on the dimming command according to a second dimming profile different from the first profile, wherein the second dimming profile for the second lighting unit is based on the second function, - controlling, by the processor, the first lighting unit based on the dimming command according to a first dimming profile, wherein the first dimming profile for the first lighting unit is based on the first function, and simultaneously - controlling, by the processor, the second lighting unit based on the dimming command according to a second dimming profile different from the first profile, wherein the second dimming profile for the second lighting unit is based on the second function, if the different light scene of the second type is active: - controlling, by the processor, the first and second lighting units (112, 114) simultaneously based on the dimming command according to a third dimming profile. - controlling, by the processor, the first and second lighting units (112, 114) simultaneously based on the dimming command according to a third dimming profile.