From 2aa8460781d06a22ab670cc7458c131579894b28 Mon Sep 17 00:00:00 2001 From: Correl Roush Date: Thu, 30 Apr 2020 19:05:55 -0400 Subject: [PATCH] Add system monitor --- Makefile | 2 +- packages/systemmonitor.yaml | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 packages/systemmonitor.yaml diff --git a/Makefile b/Makefile index 4c5a203..a3fe60c 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ CONTAINER = home-assistant HOSTNAME = hass.phoenixinquis.is-a-geek.org HA_VERSION = $(shell cat .HA_VERSION) HASS_BIN = python -m homeassistant -VOLUMES = $(PWD):/config /etc/localtime:/etc/localtime:ro +VOLUMES = $(PWD):/config /etc/localtime:/etc/localtime:ro /media:/media ENV_VARS = VIRTUAL_HOST=$(HOSTNAME) VIRTUAL_IP=127.0.0.1 VIRTUAL_PORT=8123 LETSENCRYPT_HOST=$(HOSTNAME) LETSENCRYPT_EMAIL=correl@gmail.com HASS = docker run -it --rm \ $(addprefix -v ,$(VOLUMES)) \ diff --git a/packages/systemmonitor.yaml b/packages/systemmonitor.yaml new file mode 100644 index 0000000..6941052 --- /dev/null +++ b/packages/systemmonitor.yaml @@ -0,0 +1,25 @@ +sensor: + - platform: systemmonitor + resources: + - type: disk_use_percent + arg: /media/Terra + - type: disk_use_percent + arg: /media/Gaia + - type: disk_use_percent + arg: /media/Izanagi + - type: disk_use_percent + arg: /media/Satanael + - type: disk_free + arg: /media/Terra + - type: disk_free + arg: /media/Gaia + - type: disk_free + arg: /media/Izanagi + - type: disk_free + arg: /media/Satanael + - type: load_1m + - type: load_5m + - type: load_15m + - type: processor_use + - type: memory_use_percent + - type: last_boot