Remote-control device for controlling one or more user devices (25-1, 25-2, 25-3), comprising input means for receiving input from a user, a transmitter for transmitting control commands to said one or more user devices for control thereof, a directional optical sensor for receiving one or more optical signals from the user devices, and a processor , for identification of at least one of said user devices, arranged to - analyze at least one of said received signals for associating thereof with at least one of said user devices, the one or more optical signals having high and low signal states constituting signal parts to be sampled at a predetermined receiver clock, and each optical signal comprising a signal pattern of signal parts, the signal pattern uniquely identifying one of said user devices; each signal part comprising at least one low signal state during a low period and at least one high signal state during a high period, the low and high periods having granulated lengths, different granulated lengths determining different signal part types; each granulated length being an integer number of clock periods of a transmitter clock, the transmitter clock having a clock ratio to the predetermined receiver clock, the clock ratio being a number larger than one, and at least one granulated length being longer than an integer number of clock periods of the predetermined receiver clock by a fraction of the clock period of the predetermined receiver clock; the processor being further arranged, for said associating, to decode the signal parts based on detecting the granulated lengths and associating each signal part with its signal part type for obtaining therefrom the signal pattern. - analyze at least one of said received signals for associating thereof with at least one of said user devices, the one or more optical signals having high and low signal states constituting signal parts to be sampled at a predetermined receiver clock, and each optical signal comprising a signal pattern of signal parts, the signal pattern uniquely identifying one of said user devices; each signal part comprising at least one low signal state during a low period and at least one high signal state during a high period, the low and high periods having granulated lengths, different granulated lengths determining different signal part types; each granulated length being an integer number of clock periods of a transmitter clock, the transmitter clock having a clock ratio to the predetermined receiver clock, the clock ratio being a number larger than one, and at least one granulated length being longer than an integer number of clock periods of the predetermined receiver clock by a fraction of the clock period of the predetermined receiver clock; the processor being further arranged, for said associating, the one or more optical signals having high and low signal states constituting signal parts to be sampled at a predetermined receiver clock, and each optical signal comprising a signal pattern of signal parts, the signal pattern uniquely identifying one of said user devices; each signal part comprising at least one low signal state during a low period and at least one high signal state during a high period, the low and high periods having granulated lengths, different granulated lengths determining different signal part types; each granulated length being an integer number of clock periods of a transmitter clock, the transmitter clock having a clock ratio to the predetermined receiver clock, the clock ratio being a number larger than one, and at least one granulated length being longer than an integer number of clock periods of the predetermined receiver clock by a fraction of the clock period of the predetermined receiver clock; the processor being further arranged, for said associating, <EOS>