This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
################################################################### | |
# | |
# Run short SMART self-test on all drives and email the result. | |
# Populate DISKLIST with your drive devices (w/o the '/dev/' part) | |
# and MailTo, MailFrom, MailSubject with your email header info. | |
# | |
# Your system needs a mailer set up for this to work as-is. | |
# Home Assistant parts require a suitable MQTT sensor definition. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blueprint: | |
name: Low battery level detection & notification for all battery sensors | |
description: Regularly test all sensors with 'battery' device-class for crossing | |
a battery level threshold and execute an action with a list of low battery reports. | |
domain: automation | |
input: | |
threshold: | |
name: Battery warning level threshold | |
description: Battery sensors below threshold are assumed to be low-battery (as | |
well as binary battery sensors with value 'on'). |