Closes #119 - Added HASS Stats (Uptime and Installed Version sensors) - Thanks @torn8o for the code/idea

This commit is contained in:
CCOSTAN 2017-03-28 15:43:37 +00:00
parent ba566b87b3
commit 6ee5d7a3dc
2 changed files with 14 additions and 0 deletions

View File

@ -1,5 +1,7 @@
Network:
entities:
- sensor.ha_installed_version
- sensor.ha_last_restart
- sensor.since_last_boot_templated
- sensor.disk_use_
- sensor.speedtest_download

12
sensor/hass_stats.yaml Executable file
View File

@ -0,0 +1,12 @@
###################################################
## * Special HASS related sensors - Thanks @torn8o
###################################################
- platform: command_line
name: HA Installed Version
command: "/srv/hass/hass_venv/bin/hass --version"
- platform: template
sensors:
ha_last_restart:
value_template: '{{ as_timestamp(states.automation.startup_notification.attributes.last_triggered) | timestamp_custom("%b %d %X") }}'
friendly_name: HA Last Restart