A method for assigning addresses to a plurality of components sharing a common bus, wherein each component has at least two operating states, said method comprising: (a) establishing all components needing an address assignment as active components; (b) selecting a target component among the plurality of components that is to be assigned an address for communication therewith; (c) setting all active components to a random operating state by transmitting an instruction to the plurality of components to select a random operating state; (d) detecting the current operating state of the target component, wherein the current operating state is established as operating state X; (e) deactivating all of the components that do not match operating state X, wherein deactivated components are removed from evaluation for address assignment; and (f) determining if the target component is the only remaining active component among the plurality of components, wherein (i) if the target component is the only remaining active component, then assigning an address to the target component, deactivating the target component, and repeating steps (a)-(f) for components still needing an address assignment, and (ii) if the target component is not the only remaining active component, then repeating steps (c)-(f), wherein the component is a light module of a lighthead, each light module having a control unit and LEDs, wherein the operating states include one of more lighting parameters of the lighthead, and wherein said lighting parameters include at least one of: ON/OFF, light intensity level, color, color temperature, blinking rate, and pulsing frequency. (a) establishing all components needing an address assignment as active components; (b) selecting a target component among the plurality of components that is to be assigned an address for communication therewith; (c) setting all active components to a random operating state by transmitting an instruction to the plurality of components to select a random operating state; (d) detecting the current operating state of the target component, wherein the current operating state is established as operating state X; (e) deactivating all of the components that do not match operating state X, wherein deactivated components are removed from evaluation for address assignment; and (f) determining if the target component is the only remaining active component among the plurality of components, wherein (i) if the target component is the only remaining active component, then assigning an address to the target component, deactivating the target component, and repeating steps (a)-(f) for components still needing an address assignment, and (ii) if the target component is not the only remaining active component, then repeating steps (c)-(f), wherein the component is a light module of a lighthead, each light module having a control unit and LEDs, wherein the operating states include one of more lighting parameters of the lighthead, and wherein said lighting parameters include at least one of: ON/OFF, light intensity level, color, color temperature, blinking rate, and pulsing frequency. (i) if the target component is the only remaining active component, then assigning an address to the target component, deactivating the target component, and repeating steps (a)-(f) for components still needing an address assignment, and (ii) if the target component is not the only remaining active component, then repeating steps (c)-(f), wherein the component is a light module of a lighthead, each light module having a control unit and LEDs, wherein the operating states include one of more lighting parameters of the lighthead, and wherein said lighting parameters include at least one of: ON/OFF, light intensity level, color, color temperature, blinking rate, and pulsing frequency. <EOS>