Closes #729 - Added in Lines of Code Snesor and Tweets

This commit is contained in:
ccostan 2020-05-23 15:10:13 -04:00
parent 1adc15041c
commit 293edad13e
2 changed files with 8 additions and 3 deletions

View File

@ -39,6 +39,10 @@ sensor:
# - forks
- stargazers_count
- platform: command_line
name: Lines of Code
command: "find /config -name '*.yaml' | xargs cat | wc -l"
scan_interval: 20000
- platform: history_stats
name: Doorbell Presses
@ -142,7 +146,6 @@ sensor:
value_template: >
{{ states.camera | list | count }}
group:
tweet_stats:
entities:
@ -152,6 +155,7 @@ group:
- sensor.speech_time
- sensor.tv_time
- sensor.bolt_charging_time
- sensor.lines_of_code
- sensor.sensor_count
- sensor.script_count
- sensor.binary_sensor_count

View File

@ -55,8 +55,9 @@ tweet_engine_setup:
"The #Docker Host has been running for {{ states('sensor.last_boot_templated') }} (https://www.vcloudinfo.com/2018/02/journey-to-docker.html)",
"The #Docker Host for Home Assistant is using {{ states('sensor.disk_use_percent') }}% of the hard drive currently. (https://www.vcloudinfo.com/2018/02/journey-to-docker.html)",
"I am running Home Assistant version {{ states('sensor.ha_installed_version') }} (https://github.com/CCOSTAN/Home-AssistantConfig#logo)",
"Home Assistant has been running for {{ states('sensor.ha_uptime') }}. (https://github.com/CCOSTAN/Home-AssistantConfig#logo)",
"The Github code (https://github.com/CCOSTAN/Home-AssistantConfig#logo) has {{ states.sensor.github_stats.attributes.stargazers_count}} stars and counting. Currently with {{ states.sensor.github_stats.attributes.open_issues }} open #Todo items."
"{{ states.sensor.lines_of_code.state }} lines of Home Assistant configuration code has been running for {{ states('sensor.ha_uptime') }}. (https://github.com/CCOSTAN/Home-AssistantConfig#logo)",
"The Github code (https://github.com/CCOSTAN/Home-AssistantConfig#logo) has {{ states.sensor.github_stats.attributes.stargazers_count}} stars and counting. Currently with {{ states.sensor.github_stats.attributes.open_issues }} open #Todo items.",
"Bear Stone Smart home currently runs on {{ states.sensor.lines_of_code.state }} lines of YAML code. Check it all out at (https://github.com/CCOSTAN/Home-AssistantConfig#logo)",
"My Home Assistant has been tested by Travis-CI and {{states('sensor.ccostanhomeassistantconfig_state')}}. (https://github.com/CCOSTAN/Home-AssistantConfig#logo)",
"{{((states.sensor.sensor_count.state | int) + (states.sensor.binary_sensor_count.state | int))}} sensors feed my Smart Home #data. (https://github.com/CCOSTAN/Home-AssistantConfig#logo)",
"{{states.sensor.automation_count.state}} automations and {{states.sensor.script_count.state}} scripts make my home smart (https://github.com/CCOSTAN/Home-AssistantConfig#logo)",