Most entity/sensor/etc definitions use “name” to reference the name displayed to users BUT then a FEW things, like sensor templates, use “friendly_name”.
It is always confusing to remember when to use one vs the other…invariable I type in “name” instead of the rarer form of “friendly_name”.
Example:
binary_sensor:
- platform: template
sensors:
sun_up:
friendly_name: "Sun is up"
value_template: {{ state_attr('sun.sun', 'elevation') > 0 }}
Why is the above not just “name”!?