Choosing the correct transformation

Depends on your setup and the count of your lamps. You said you have around 20 lamps, so I guess you want to use one rule only. That’s possible. You’ll find out how to do so in the Design Patterns article series, probably this one: Design Pattern: Working with Groups in Rules
For a similar use case I have indeed just 20 copy-pasted (simple) rules. You need to decide :wink: