Skip to content

Instantly share code, notes, and snippets.

@alphasixtyfive
Created January 12, 2022 17:58
Show Gist options
  • Save alphasixtyfive/70114a3f1d2e7a453bb2ccc166814219 to your computer and use it in GitHub Desktop.
Save alphasixtyfive/70114a3f1d2e7a453bb2ccc166814219 to your computer and use it in GitHub Desktop.
Homeassistant insights
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