Light Automations / Adding input_booleans to every light / templating

I’m rebuilding. Previously I created this for lights automations:

It runs on a bunch of manually created input_booleans, and was very time-consuming to create.

Is there some method I’m missing for me to modify the default fields/switches that a light entity has, so that I can easily roll out to all lights?