Add system monitor

This commit is contained in:
Correl Roush 2020-04-30 19:05:55 -04:00
parent 7e8ae5c299
commit 2aa8460781
2 changed files with 26 additions and 1 deletions

View File

@ -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)) \

View File

@ -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