Best practice to avoid massive dashboard configuration file?

I have many lights connected via HA and I’ve created a massive Lovelace (Mushroom) customization for each light. I use the same configuration for each light and the only difference is the entity ID. The ideal scenario would be to be able to call the configuration like a function and pass a variable (entity ID or IDs) to it. It would massively reduce the code base. Is there a way to do this?

:slight_smile:

1 Like