Hue bulbs and groups

A trick here is assigning Item names according to a predictable convention e.g.

SomeLamp_XX_brightness
SomeLamp_XX_colour

Given one Item name, you can work out its partner(s) with a bit of string manipulation

You’re already doing this?