Created
January 12, 2022 17:58
-
-
Save alphasixtyfive/70114a3f1d2e7a453bb2ccc166814219 to your computer and use it in GitHub Desktop.
Homeassistant insights
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template: | |
- sensor: | |
- name: Total entities | |
icon: mdi:shape | |
state: "{{ states | count }}" | |
- name: Total automations | |
icon: mdi:robot | |
state: "{{ states.automation | count }}" | |
- name: Total lights | |
icon: mdi:lightbulb-multiple-outline | |
state: "{{ states.light | count }}" | |
- name: Total switches | |
icon: mdi:light-switch | |
state: "{{ states.switch | count }}" | |
- name: Total cameras | |
icon: mdi:cctv | |
state: "{{ states.camera | rejectattr('object_id', 'search', 'frigate_') | list | count }}" | |
- name: Total media players | |
icon: mdi:audio-video | |
state: "{{ states.media_player | count }}" | |
- name: Total sensors | |
icon: mdi:signal-variant | |
state: "{{ states.sensor | count + states.binary_sensor | count }}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment