mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-02-13 21:38:40 +00:00
Closes #119 - Added HASS Stats (Uptime and Installed Version sensors) - Thanks @torn8o for the code/idea
This commit is contained in:
parent
ba566b87b3
commit
6ee5d7a3dc
@ -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
12
sensor/hass_stats.yaml
Executable 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
|
Loading…
x
Reference in New Issue
Block a user