This commit is contained in:
Carlo Costanzo
2025-07-22 12:00:39 -04:00
committed by GitHub
parent 561b454518
commit f1fc8e8012
28 changed files with 374 additions and 386 deletions

View File

@@ -11,16 +11,23 @@ command_line:
unique_id: lines_of_code
command: "find /config -name '*.yaml' | xargs cat | wc -l"
scan_interval: 20000
value_template: "{{ value | int }}"
unit_of_measurement: "count"
- sensor:
name: 'GitHub Open Issues'
unique_id: github_open_issues
command: 'curl -s https://api.github.com/repos/ccostan/home-assistantconfig'
scan_interval: 20000
value_template: '{{ value_json.open_issues }}'
unit_of_measurement: 'count'
- sensor:
name: 'GitHub Stats'
unique_id: github_stats_command
command: 'curl https://api.github.com/repos/ccostan/home-assistantconfig'
name: 'GitHub Stargazers'
unique_id: github_stargazers
command: 'curl -s https://api.github.com/repos/ccostan/home-assistantconfig'
scan_interval: 20000
value_template: '{{ value_json.name }}'
json_attributes:
- open_issues
- stargazers_count
value_template: '{{ value_json.stargazers_count }}'
unit_of_measurement: 'count'
sensor:
- platform: history_stats
@@ -66,31 +73,42 @@ sensor:
friendly_name: 'Number of Sensors'
value_template: >-
{{ states.sensor | list | count }}
unit_of_measurement: 'count'
icon_template: mdi:counter
automation_count:
friendly_name: 'Number of Automations'
value_template: >-
{{ states.automation| list | count }}
{{ states.automation | list | count }}
unit_of_measurement: 'count'
icon_template: mdi:robot
script_count:
friendly_name: 'Number of Scripts'
value_template: >
value_template: >-
{{ states.script | list | count }}
unit_of_measurement: 'count'
icon_template: mdi:script-text
binary_sensor_count:
friendly_name: 'Number of Binary Sensors'
value_template: >-
{{ states.binary_sensor | list | count }}
unit_of_measurement: 'count'
icon_template: mdi:binary-sensor
tracker_count:
friendly_name: 'Number of Devices'
value_template: >-
{{ states.device_tracker| list | count }}
unit_of_measurement: 'count'
icon_template: mdi:account-group
lights_count:
friendly_name: 'Number of Lights'
value_template: >
{{ states.light | list | count }}
unit_of_measurement: 'count'
icon_template: mdi:lightbulb
lights_on_count:
friendly_name: "Number of lights on"
value_template: >-
@@ -103,7 +121,8 @@ sensor:
{% else %}
{{ qty }} {{ p1 }} on.
{% endif %}
unit_of_measurement: 'count'
icon_template: mdi:binary-sensor
protect_count:
friendly_name: 'Number of Smoke Detectors'
value_template: >
@@ -116,9 +135,12 @@ sensor:
{% else %}
0
{% endif %}
unit_of_measurement: 'count'
icon_template: mdi:smoke-detector
camera_count:
friendly_name: 'Number of online Cameras'
value_template: >
{{ states.camera | list | count }}
unit_of_measurement: 'count'
icon_template: mdi:camera
#############################################################