ADD in system Monitor stuff to watch hard drives.

This commit is contained in:
CCOSTAN 2017-02-10 16:00:15 +00:00
parent 6d48831190
commit 2502d74e95
2 changed files with 83 additions and 58 deletions

View File

@ -75,3 +75,26 @@
- service: script.Voice_notify
data_template:
value1: "There has been a new device detected on the network. Be sure to appropriately catagorize it within Circle."
##############################################################################
- alias: "Disk Use Alarm"
trigger:
- platform: numeric_state
entity_id: sensor.disk_use_percent
above: 30.4
action:
- service: script.Voice_notify
data_template:
value1: 'Your harddrive has run out of Space! /dev/root:{{ states.sensor.disk_use_.state }}%!'
- service: script.ifttt_notify
data_template:
value1: 'Hard Drive Monitor:'
value2: "Your harddrive has run out of Space! /dev/root:{{ states.sensor.disk_use_.state }}%!"
value3: ' '
- service: persistent_notification.create
data:
title: "Hard Drive Monitor:"
message: "Your harddrive has run out of Space! /dev/root:{{ states.sensor.disk_use_.state }}%!"
notification_id: "Critical Alert"

View File

@ -2,6 +2,8 @@
resources:
# - type: last_boot
- type: since_last_boot
- type: disk_use_percent
arg: /
- platform: template
sensors: