I see it has been asked before, and I see there have been help articles written that explain this, but I am just not getting it (I promise, I’m not usually slow to understand things).
What is the difference between these entries (A, B and C – all actual working entries of mine) in configuration.yaml?
That’s the current method for creating template sensors and is how you should create them going forward.
That’s the ‘legacy’ way of making template sensors. As you can see, it still works and I suspect will indefinitely into the future, but you’ll have more features/options using the current method.
Everything you could want to know about template sensors is here: