Control multiple MQTT lights

Show us what you did there. I’m guessing you have the wrong include statement…
Here is how I split mine. It’s a bit tricky because it’s a dictionary of lists, or maybe the other way around, but something like that.