I am still learning and have spent some time reading the original Home Assitant documentation, which proved the best way to learn so far for me.
Still I have a rather simple (?) question that I cannot answer:
I realized I can achieve a templated sensor in two ways (both work, and are equally listed in the states under development tools):
Way one, starting with “sensor:” and then “-platform: template”.
Yes, tried them all out, as this seemed not so well documented.
Do you know why the “new” way was chosen ? I guess the advice is, better use way two then ?
I have more and more question marks on this… if the second way is the “new” way, when should I use it instead of the first way for templates, and why?
There are still entities described the “old” way in the documentation Template Fan - Home Assistant (home-assistant.io)
and I don’t see a straightforward way when this is applied, and when not. E.g., for min_max it seems not allowed as template.
Any insights from someone closer to the Home Assistant logic appreciated, I want to understand the concept and not just copy/paste examples that I modify.
That has nothing to do with template sensors. It’s a completely different integration. This only applies to template binary sensors and template sensors.