How to show how many devices and sensors on your system

Came here to say the same thing (Template Sensors) … but using shorter templates:

{{ states.light | count}}
{{ states.switch | count }}
{{ states.binary_sensor | count }}
{{ states.sensor | count }}
etc
5 Likes