Confused about the 'required' label in template description

When I look at the description of templates, Template integration I see the label ‘required’ for sensor, binary_sensor, number, …

Does that mean that I cannot have a template in my configuration.yaml without a number map? Or is the system adding an empty number map when it is missing?

Or is the ‘required’ indication misleading and should it be something 'at least one of … ’
Thanks, Stefan

Each one is only required if you are defining that particular type of template entity.

e.g. if you are creating a template sensor, then the sensor label is required, the others are not. If you are defining a template number, then the number label is required, the others are not.

That would be a good suggestion. There are links at the bottom of the page for this.

Thank you Tom.
I wanted to be sure before i did the latter.
I have added a suggestion to remove the label ‘required’

1 Like