Compare commits

...

2 Commits

Author SHA1 Message Date
github-actions[bot]
184a084f9f Update HA version badge to 2025.2.1 2025-02-12 19:27:52 +00:00
CCOSTAN
6d2830f9af Closes out #1498 with some alerting automations 2025-02-12 19:27:31 +00:00
2 changed files with 39 additions and 4 deletions

35
config/packages/backups.yaml Executable file
View File

@@ -0,0 +1,35 @@
#-------------------------------------------
# @CCOSTAN
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
#-------------------------------------------
# Added Duplicati to HA - https://github.com/CCOSTAN/Home-AssistantConfig/issues/1498
#-------------------------------------------
automation:
- alias: 'Backup Job Failed Notification'
id: 5b3a4c89-1234-4567-8901-23456789abcf
trigger:
- platform: state
entity_id: sensor.dockerconfigs_backup_error_message
from: '-'
action:
- service: script.notify_engine
data:
who: 'carlo'
value1: 'Backup Job Error!'
value2: "Error: {{ states('sensor.dockerconfigs_backup_error_message') }}"
- alias: 'Backup Size Change Alert'
id: 5b3a4c89-1234-4567-8901-23456789abd0
trigger:
- platform: numeric_state
entity_id: sensor.dockerconfigs_backup_target_size
above: 10000000000 # Alert if backup size is over 10GB
action:
- service: script.notify_engine
data:
who: 'carlo'
value1: 'Backup Size Warning'
value2: >
Backup target size has grown to {{ states('sensor.dockerconfigs_backup_target_size') | float / 1000000000 }} GB.
Please verify backup contents and available storage.

View File

@@ -1,13 +1,13 @@
<svg width="61.5" height="20" viewBox="0 0 615 200" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="2025.2.1">
<title>2025.2.1</title>
<linearGradient id="OvyGQ" x2="0" y2="100%">
<linearGradient id="pUlyw" x2="0" y2="100%">
<stop offset="0" stop-opacity=".1" stop-color="#EEE"/>
<stop offset="1" stop-opacity=".1"/>
</linearGradient>
<mask id="kNvlO"><rect width="615" height="200" rx="30" fill="#FFF"/></mask>
<g mask="url(#kNvlO)">
<mask id="haOuP"><rect width="615" height="200" rx="30" fill="#FFF"/></mask>
<g mask="url(#haOuP)">
<rect width="615" height="200" fill="#08C" x="0"/>
<rect width="615" height="200" fill="url(#OvyGQ)"/>
<rect width="615" height="200" fill="url(#pUlyw)"/>
</g>
<g aria-hidden="true" fill="#fff" text-anchor="start" font-family="Verdana,DejaVu Sans,sans-serif" font-size="110">
<text x="65" y="148" textLength="500" fill="#000" opacity="0.25">2025.2.1</text>

Before

Width:  |  Height:  |  Size: 811 B

After

Width:  |  Height:  |  Size: 811 B