Sorry, the piece of code is correct. I’m guessing it’s something happening elsewhere.
I guess it could be one or more of
The lights don’t have unique IDs
You’re using more than one slot name
If you can put the critical parts in a separate project and give me a download link somewhere, I’ll take a look, but otherwise, I’m afraid, it’s all here…
…the mistake is gone, but it still won’t work. Why could it be, I wonder? (I believe it should be populated by itself, since we added array items in the loop…?)
Sent you the link in a personal message, thank you for your help in advance. Please, let me know here how could I solve my problem, maybe it will be useful for other people with little experience facing it as well.