mirror of
https://github.com/Burningstone91/smart-home-setup.git
synced 2022-05-05 21:16:50 +03:00
Enhanced urgent notifications
This commit is contained in:
@@ -140,7 +140,11 @@ automation:
|
||||
{% else %}
|
||||
Alarm aus
|
||||
{% endif %}
|
||||
|
||||
data:
|
||||
channel: Notfall
|
||||
priority: high
|
||||
ttl: 0
|
||||
|
||||
# Trigger Alarm armed home
|
||||
- id: trigger_alarm_armed_home
|
||||
alias: "Alarm auslösen when jemand zu Hause ist"
|
||||
@@ -216,6 +220,9 @@ alert:
|
||||
- mobile_app_phone_dimitri
|
||||
data:
|
||||
channel: Notfall
|
||||
priority: high
|
||||
ttl: 0
|
||||
color: red
|
||||
actions:
|
||||
- action: arm_alarm
|
||||
title: "Alarm einschalten"
|
||||
@@ -233,6 +240,9 @@ alert:
|
||||
- mobile_app_phone_dimitri
|
||||
data:
|
||||
channel: Notfall
|
||||
priority: high
|
||||
ttl: 0
|
||||
color: red
|
||||
actions:
|
||||
- action: wrong_alarm
|
||||
title: "Fehlalarm"
|
||||
@@ -250,4 +260,7 @@ alert:
|
||||
- mobile_app_phone_dimitri
|
||||
data:
|
||||
channel: Notfall
|
||||
priority: high
|
||||
ttl: 0
|
||||
color: red
|
||||
|
||||
|
||||
@@ -11,10 +11,10 @@ proxmoxve:
|
||||
nodes:
|
||||
- node: pve
|
||||
vms:
|
||||
- 101
|
||||
- 102
|
||||
- 103
|
||||
- 105
|
||||
- 110
|
||||
- 120
|
||||
|
||||
###############################
|
||||
# Monitoring Docker Containers
|
||||
@@ -713,59 +713,6 @@ sensor:
|
||||
{%- set days = (time // 86400) %}
|
||||
{%- set days = '{}d '.format(days) if days > 0 else '' %}
|
||||
{{ 'Less than 1 min' if time < 60 else days + hours + minutes }}
|
||||
## Phone Dimitri Status
|
||||
- platform: rest
|
||||
resource: !secret healthcheck_weekly_backup_phone_dimitri
|
||||
name: Weekly Backup Phone Dimitri
|
||||
headers:
|
||||
X-Api-Key: !secret healthcheck_api_key
|
||||
scan_interval: 1800
|
||||
value_template: "{{ value_json.status }}"
|
||||
## Phone Dimitri Last Backup
|
||||
- platform: rest
|
||||
resource: !secret healthcheck_weekly_backup_phone_dimitri
|
||||
name: Last Backup Phone Dimitri
|
||||
headers:
|
||||
X-Api-Key: !secret healthcheck_api_key
|
||||
scan_interval: 1800
|
||||
value_template: >
|
||||
{%- set last_boot = value_json.last_ping %}
|
||||
{%- set uptime = now().timestamp() - as_timestamp(last_boot) %}
|
||||
{%- set time = uptime | int %}
|
||||
{%- set minutes = ((time % 3600) // 60) %}
|
||||
{%- set minutes = '{}min'.format(minutes) if minutes > 0 else '' %}
|
||||
{%- set hours = ((time % 86400) // 3600) %}
|
||||
{%- set hours = '{}hr '.format(hours) if hours > 0 else '' %}
|
||||
{%- set days = (time // 86400) %}
|
||||
{%- set days = '{}d '.format(days) if days > 0 else '' %}
|
||||
{{ 'Less than 1 min' if time < 60 else days + hours + minutes }}
|
||||
## Phone Sabrina Last Status
|
||||
- platform: rest
|
||||
resource: !secret healthcheck_weekly_backup_phone_sabrina
|
||||
name: Weekly Backup Phone Sabrina
|
||||
headers:
|
||||
X-Api-Key: !secret healthcheck_api_key
|
||||
scan_interval: 1800
|
||||
value_template: "{{ value_json.status }}"
|
||||
## Phone Sabrina Last Backup
|
||||
# - platform: rest
|
||||
# resource: !secret healthcheck_weekly_backup_phone_sabrina
|
||||
# name: Last Backup Phone Sabrina
|
||||
# headers:
|
||||
# X-Api-Key: !secret healthcheck_api_key
|
||||
# scan_interval: 1800
|
||||
# value_template: >
|
||||
# {%- set last_boot = value_json.last_ping %}
|
||||
# {%- set uptime = now().timestamp() - as_timestamp(last_boot) %}
|
||||
# {%- set time = uptime | int %}
|
||||
# {%- set minutes = ((time % 3600) // 60) %}
|
||||
# {%- set minutes = '{}min'.format(minutes) if minutes > 0 else '' %}
|
||||
# {%- set hours = ((time % 86400) // 3600) %}
|
||||
# {%- set hours = '{}hr '.format(hours) if hours > 0 else '' %}
|
||||
# {%- set days = (time // 86400) %}
|
||||
# {%- set days = '{}d '.format(days) if days > 0 else '' %}
|
||||
# {{ 'Less than 1 min' if time < 60 else days + hours + minutes }}
|
||||
|
||||
|
||||
#####################
|
||||
# Logger integration
|
||||
@@ -937,7 +884,7 @@ automation:
|
||||
message: >
|
||||
Die CPU Last für {{ state_attr(trigger.to_state.entity_id, 'friendly_name') }} ist seit 2 Stunden über 60%!
|
||||
data:
|
||||
channel: Notfall
|
||||
channel: System
|
||||
|
||||
# Notify on high Disk usage
|
||||
- id: notify_on_high_disk_usage
|
||||
@@ -956,7 +903,7 @@ automation:
|
||||
message: >
|
||||
Der Speicher für {{ state_attr(trigger.to_state.entity_id, 'friendly_name') }} ist 95% voll!
|
||||
data:
|
||||
channel: Notfall
|
||||
channel: System
|
||||
|
||||
# Notify on high CPU Temp
|
||||
- id: notify_on_high_cpu_temp
|
||||
@@ -985,6 +932,9 @@ automation:
|
||||
Die CPU Temperatur für {{ state_attr(trigger.to_state.entity_id, 'friendly_name') }} ist seit 2 Stunden über 70°!
|
||||
data:
|
||||
channel: Notfall
|
||||
priority: high
|
||||
ttl: 0
|
||||
color: red
|
||||
|
||||
# Notify on undervoltage
|
||||
- id: notify_on_undervoltage
|
||||
@@ -1008,6 +958,9 @@ automation:
|
||||
Unterspannung für {{ state_attr(trigger.to_state.entity_id, 'friendly_name') }} entdeckt!
|
||||
data:
|
||||
channel: Notfall
|
||||
priority: high
|
||||
ttl: 0
|
||||
color: red
|
||||
|
||||
# Notify on Bad login attempt
|
||||
- id: notify_on_bad_login_attempt
|
||||
@@ -1025,6 +978,9 @@ automation:
|
||||
{{ state_attr('persistent_notification.http_login', 'message') }}
|
||||
data:
|
||||
channel: Notfall
|
||||
priority: high
|
||||
ttl: 0
|
||||
color: red
|
||||
|
||||
# Notify on Device Offline
|
||||
- id: notify_on_device_offline
|
||||
@@ -1052,7 +1008,7 @@ automation:
|
||||
#- device_tracker.receiver_office
|
||||
- device_tracker.remote_livingroom
|
||||
#- device_tracker.server_nuc
|
||||
#- device_tracker.investment_vm
|
||||
- device_tracker.investment_vm
|
||||
- device_tracker.nextcloud_vm
|
||||
- device_tracker.switch_livingroom
|
||||
- device_tracker.switch_storageroom
|
||||
@@ -1110,16 +1066,19 @@ automation:
|
||||
{{ state_attr(trigger.to_state.entity_id, 'friendly_name') }} ist seit 5 Minuten offline!
|
||||
data:
|
||||
channel: Notfall
|
||||
priority: high
|
||||
ttl: 0
|
||||
color: red
|
||||
|
||||
# Entity Customization
|
||||
homeassistant:
|
||||
customize:
|
||||
# Lights
|
||||
binary_sensor.pve_hass_dev_running:
|
||||
friendly_name: HA dev VM
|
||||
binary_sensor.pve_hassio_test_running:
|
||||
friendly_name: HA test VM
|
||||
binary_sensor.pve_hass_prod_running:
|
||||
friendly_name: HA Prod VM
|
||||
binary_sensor.pve_cloud_running:
|
||||
friendly_name: Cloud VM
|
||||
binary_sensor.pve_investment_running:
|
||||
friendly_name: Investment VM
|
||||
binary_sensor.pve_master_running:
|
||||
friendly_name: HA prod VM
|
||||
binary_sensor.pve_hass_dev_running:
|
||||
friendly_name: HA Dev VM
|
||||
|
||||
Reference in New Issue
Block a user