Modbus: Best way to control 24 dimmable ceiling lights?

Hi, I have 24 ceiling lights that are each controlled by seperate Arduino slave boards. Allows ON/OFF and PWM to control a 0-10V dimming. I plan on adding 30-40 more light entity’s
Problem:
Home assistant modbus lights entity attributes does now allow dimming/brightness. I have a template that will allow brightness slider control per entity.
Question:
Do I need to make a template for every light entity? looking at 60 + templates.
Is possible to enable the brightness control attribute?

Appreciate any suggestion. Thanks

Hi, do you ming sharing this template?