mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-02-20 16:21:58 +00:00
ADD in system Monitor stuff to watch hard drives.
This commit is contained in:
parent
6d48831190
commit
2502d74e95
@ -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"
|
@ -2,6 +2,8 @@
|
||||
resources:
|
||||
# - type: last_boot
|
||||
- type: since_last_boot
|
||||
- type: disk_use_percent
|
||||
arg: /
|
||||
|
||||
- platform: template
|
||||
sensors:
|
||||
|
Loading…
x
Reference in New Issue
Block a user