Add system monitor
This commit is contained in:
parent
7e8ae5c299
commit
2aa8460781
2
Makefile
2
Makefile
|
@ -3,7 +3,7 @@ CONTAINER = home-assistant
|
||||||
HOSTNAME = hass.phoenixinquis.is-a-geek.org
|
HOSTNAME = hass.phoenixinquis.is-a-geek.org
|
||||||
HA_VERSION = $(shell cat .HA_VERSION)
|
HA_VERSION = $(shell cat .HA_VERSION)
|
||||||
HASS_BIN = python -m homeassistant
|
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
|
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 \
|
HASS = docker run -it --rm \
|
||||||
$(addprefix -v ,$(VOLUMES)) \
|
$(addprefix -v ,$(VOLUMES)) \
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue