WTH Why can't I list/count sensors per platform type in a template?

Imagine I want to list/count only template sensors? Or only rest sensors? Or only statistic sensors? Or only mqtt sensors?

I can easily get all sensors but not sets by platform type.

Just try this in the template editor :wink:

{{ integration_entities("template")}}
2 Likes

Any easy way of determining it by entity type? Sensors, Binary Sensors, Covers, etc.

If that is possible, I guess this can be closed.

Yes, templates offer additional filters. Iā€™m on mobile so writing it out is a PITA

1 Like

No worries, thanks in advance.

{{ integration_entities("template") | select("search", "^sensor") | list }}

Clever way, selecting using a regular expression, thought there might be a simpler way, but WTH, it works.

Thanks @petro