Generel template assigned to fx. all sensors?

I have learned how to create a template sensor, but as I understand you have to create one for each device.

I currently have 12 Xiaomi motion sensors and 6 door sensors.

Does this mean that I “manually” (in code) has to create 18 tempalted sensors ?

I just thought it “assigned itself” to fx all my motion sensors, but how do I specify that this template has to be added to all my sensors of that kind ?

Lets say I want to add a new icon to all my motion sensors, using a template - how can this be done the easiest way ?