Update system monitoring pages

This commit is contained in:
Burningstone91
2020-12-26 20:08:12 +01:00
parent ff8cd19fe6
commit 0dc7412a83
17 changed files with 674 additions and 1583 deletions

View File

@@ -4,4 +4,5 @@ views:
- !include ./views/network.yaml
- !include ./views/unifi-device-trackers.yaml
- !include ./views/system-monitoring.yaml
- !include ./views/automations.yaml
- !include ./views/debug.yaml

View File

@@ -0,0 +1,146 @@
####################################################
# #
# Automations #
# #
####################################################
title: automations
path: automations
panel: true
icon: mdi:robot
badges: []
cards:
- type: vertical-stack
cards:
- type: entities
# style: |
# ha-card {
# color: teal;
# width: 200px;
# margin-left: 105px;
# }
entities:
- type: custom:fold-entity-row
head:
type: section
label: Präsenz
entities:
- entity: automation.detaillierten_prasenzstatus_bestimmen
- entity: automation.device_tracker_fur_fitbit_aktualisieren
- entity: automation.device_tracker_fur_schlussel_aktualisieren
- entity: automation.haus_prasenzstatus_bestimmen
- entity: input_select.presence_state_house
- entity: automation.alles_ausschalten_wenn_alle_gegangen_sind
- type: entities
# style: |
# ha-card {
# color: teal;
# width: 200px;
# margin-left: 105px;
# }
entities:
- type: custom:fold-entity-row
head:
type: section
label: Schlaf
entities:
- entity: automation.bestimme_schlafstatus_personen
- entity: automation.schlafmodus_einschalten_wenn_alle_im_bett_und_ausschalten_wenn_alle_wach_sind
- entity: input_select.sleep_state_dimitri
- entity: input_select.sleep_state_dimitri
- entity: input_boolean.sleep_mode
- type: entities
# style: |
# ha-card {
# color: teal;
# width: 200px;
# margin-left: 105px;
# }
entities:
- type: custom:fold-entity-row
head:
type: section
label: Alarmanlage
entities:
- entity: automation.alarm_ausschalten_wenn_der_schlafmodus_deaktiviert_wird
- entity: automation.alarm_scharf_stellen_wenn_der_schlafmodus_aktiviert_wird
- entity: automation.alarm_ausschalten_wenn_jemand_ankommt
- entity: automation.alarm_scharf_stellen_wenn_alle_geganen_sind
- entity: automation.benachrichtigung_bei_anderung_des_alarm_status
- entity: automation.alarm_auslosen_when_jemand_zu_hause_ist
- entity: automation.alarm_auslosen_when_niemand_zu_hause_ist
- entity: automation.alarm_abschalten_aus_handy_benachrichtigungsbestatigung
- entity: automation.alarm_einschalten_aus_handy_benachrichtigungsbestatigung
- type: entities
# style: |
# ha-card {
# color: teal;
# width: 200px;
# margin-left: 105px;
# }
entities:
- type: custom:fold-entity-row
head:
type: section
label: Licht
entities:
- entity: automation.licht_an_bei_bewegung_buro
- entity: automation.licht_aus_buro_nicht_besetzt
- entity: automation.licht_an_bei_bewegung_wohnzimmer
- entity: automation.licht_aus_wohnzimmer_nicht_besetzt
- entity: automation.licht_an_bei_bewegung_schlafzimmer
- entity: automation.licht_aus_schlafzimmer_nicht_besetzt
- entity: automation.schlafmodus_fur_adaptive_beleuchtung_schlafzimmer
- entity: automation.licht_an_bei_bewegung_ankleidezimmer
- entity: automation.licht_aus_ankleidezimmer_nicht_besetzt
- type: entities
# style: |
# ha-card {
# color: teal;
# width: 200px;
# margin-left: 105px;
# }
entities:
- type: custom:fold-entity-row
head:
type: section
label: Systeme
entities:
- entity: automation.benachrichtigung_bei_unterspannung
- entity: automation.benachrichtigung_wenn_batterien_bald_leer_sind_2
- entity: automation.benachrichtigung_wenn_cpu_load_hoch_ist
- entity: automation.benachrichtigung_wenn_cpu_temperatur_hoch_ist
- entity: automation.benachrichtigung_wenn_ein_update_verfugbar_ist
- entity: automation.benachrichtigung_wenn_speicher_fast_voll_ist
- entity: automation.benachrichtigung_bei_gerat_offline
- entity: automation.benachrichtigung_bei_falschem_loginversuch
- type: entities
# style: |
# ha-card {
# color: teal;
# width: 200px;
# margin-left: 105px;
# }
entities:
- type: custom:fold-entity-row
head:
type: section
label: Klima
entities:
- entity: automation.benachrichtigung_wenn_ein_fenster_oder_eine_ture_zu_lange_offen_ist
- entity: automation.benachrichtigung_wenn_ein_fenster_oder_eine_ture_offen_ist_bei_regen
- entity: automation.entfeucher_aus_einschalten_wenn_das_fenster_geoffnet_geschlossen_wird
- type: entities
# style: |
# ha-card {
# color: teal;
# width: 200px;
# margin-left: 105px;
# }
entities:
- type: custom:fold-entity-row
head:
type: section
label: Haushaltsaufgaben
entities:
- entity: automation.benachrichtigung_wenn_eine_haushaltsaufgabe_bald_fallig_ist
- entity: automation.markiere_aufgabe_als_erledigt_und_bedanke_bei_benutzer

View File

@@ -505,7 +505,7 @@ cards:
</center>
style: |
ha-card {
margin-top: 80px;
margin-top: 160px;
margin-left: 2.5px;
}
# Version
@@ -551,7 +551,9 @@ cards:
- type: markdown
content: >
<center>
<h5>Current:
<h5>Uptime:
{{ states('sensor.docker_hass_status') }}<br>
Current:
{{ states('sensor.current_version_homeassistant') }}<br>
Latest:
{{ states('sensor.latest_version_homeassistant') }}</h5>
@@ -679,8 +681,10 @@ cards:
- type: markdown
content: >
<center>
<h5>Software:
{{ states('sensor.update_mosquitto') }}<br><br></h5>
<h5>Uptime:
{{ states('sensor.docker_mqtt_status') }}<br>
Software:
{{ states('sensor.update_mosquitto') }}<br></h5>
</center>
style: |
ha-card {
@@ -777,7 +781,135 @@ cards:
margin-right: 30px;
padding-left: 5px;
}
####################################################
# SWAG #
####################################################
# Title
- type: markdown
content: >
<center>
<h3>SWAG</h3>
</center>
style: |
ha-card {
color: teal;
margin-top: -75px;
}
# Image
- type: markdown
content: >
<center>
<img width="150" src="/local/system_monitoring/nginx.png">
</center>
style: |
ha-card {
margin-top: -40px;
}
# Updates
- type: markdown
content: >
<center>
<h5>Uptime:
{{ states('sensor.docker_swag_status') }}<br>
Software:
{{ states('sensor.update_swag') }}<br>
</h5>
</center>
style: |
ha-card {
color: teal;
margin-top: -44px;
}
# CPU
- type: custom:bar-card
positions:
name: outside
value: outside
indicator: 'off'
icon: 'off'
height: 15px
width: 80%
entities:
- entity: sensor.docker_swag_cpu
name: CPU
severity:
- color: rgb(26,204,147,0.33)
from: 0
to: 10
- color: rgb(206,133,0,0.60)
from: 11
to: 25
- color: rgb(163,0,0,0.60)
from: 26
to: 150
style: |
ha-card {
--paper-item-icon-color: rgb(47,186,229);
border-radius: 2.5px;
height: 40px;
}
bar-card-name {
margin-top: -97.5px;
margin-left: 40px;
}
bar-card-backgroundbar {
margin-top: -50px;
border-radius: 2.5px;
}
bar-card-currentbar {
margin-top: -50px;
border-radius: 2.5px;
}
bar-card-value {
margin-top: -97.5px;
margin-right: 30px;
padding-left: 5px;
}
# RAM
- type: custom:bar-card
positions:
name: outside
value: outside
indicator: 'off'
icon: 'off'
height: 15px
width: 80%
entities:
- entity: sensor.docker_swag_memory_percent
name: RAM
severity:
- color: rgb(26,204,147,0.33)
from: 0
to: 69.9
- color: rgb(206,133,0,0.60)
from: 70
to: 85
- color: rgb(163,0,0,0.60)
from: 85
to: 150
style: |
ha-card {
--paper-item-icon-color: rgb(47,186,229);
border-radius: 2.5px;
height: 40px;
}
bar-card-name {
margin-top: -130px;
margin-left: 40px;
}
bar-card-backgroundbar {
margin-top: -67.5px;
border-radius: 2.5px;
}
bar-card-currentbar {
margin-top: -67.5px;
border-radius: 2.5px;
}
bar-card-value {
margin-top: -130px;
margin-right: 30px;
padding-left: 5px;
}
- type: vertical-stack
cards:
####################################################
@@ -808,7 +940,9 @@ cards:
- type: markdown
content: >
<center>
<h5>Software:
<h5>Uptime:
{{ states('sensor.docker_influxdb_status') }}<br>
Software:
{{ states('sensor.update_influxdb') }}<br><br></h5>
</center>
style: |
@@ -934,8 +1068,10 @@ cards:
- type: markdown
content: >
<center>
<h5>Software:
{{ states('sensor.update_grafana') }}<br><br></h5>
<h5>Uptime:
{{ states('sensor.docker_grafana_status') }}<br>
Software:
{{ states('sensor.update_grafana') }}<br></h5>
</center>
style: |
ha-card {
@@ -1032,7 +1168,135 @@ cards:
margin-right: 30px;
padding-left: 5px;
}
####################################################
# Nextcloud #
####################################################
# Title
- type: markdown
content: >
<center>
<h3>Nextcloud</h3>
</center>
style: |
ha-card {
color: teal;
margin-top: -75px;
}
# Image
- type: markdown
content: >
<center>
<img width="70" src="/local/system_monitoring/nextcloud.png">
</center>
style: |
ha-card {
margin-top: -50px;
}
# Updates
- type: markdown
content: >
<center>
<h5>Uptime:
{{ states('sensor.docker_nextcloud_status') }}<br>
Software:
{{ states('sensor.update_nextcloud') }}<br>
</h5>
</center>
style: |
ha-card {
color: teal;
margin-top: -56px;
}
# CPU
- type: custom:bar-card
positions:
name: outside
value: outside
indicator: 'off'
icon: 'off'
height: 15px
width: 80%
entities:
- entity: sensor.docker_nextcloud_cpu
name: CPU
severity:
- color: rgb(26,204,147,0.33)
from: 0
to: 10
- color: rgb(206,133,0,0.60)
from: 11
to: 25
- color: rgb(163,0,0,0.60)
from: 26
to: 150
style: |
ha-card {
--paper-item-icon-color: rgb(47,186,229);
border-radius: 2.5px;
height: 40px;
}
bar-card-name {
margin-top: -97.5px;
margin-left: 40px;
}
bar-card-backgroundbar {
margin-top: -50px;
border-radius: 2.5px;
}
bar-card-currentbar {
margin-top: -50px;
border-radius: 2.5px;
}
bar-card-value {
margin-top: -97.5px;
margin-right: 30px;
padding-left: 5px;
}
# RAM
- type: custom:bar-card
positions:
name: outside
value: outside
indicator: 'off'
icon: 'off'
height: 15px
width: 80%
entities:
- entity: sensor.docker_nextcloud_memory_percent
name: RAM
severity:
- color: rgb(26,204,147,0.33)
from: 0
to: 69.9
- color: rgb(206,133,0,0.60)
from: 70
to: 85
- color: rgb(163,0,0,0.60)
from: 85
to: 150
style: |
ha-card {
--paper-item-icon-color: rgb(47,186,229);
border-radius: 2.5px;
height: 40px;
}
bar-card-name {
margin-top: -130px;
margin-left: 40px;
}
bar-card-backgroundbar {
margin-top: -67.5px;
border-radius: 2.5px;
}
bar-card-currentbar {
margin-top: -67.5px;
border-radius: 2.5px;
}
bar-card-value {
margin-top: -130px;
margin-right: 30px;
padding-left: 5px;
}
- type: vertical-stack
cards:
####################################################
@@ -1063,7 +1327,9 @@ cards:
- type: markdown
content: >
<center>
<h5>Current:
<h5>Uptime:
{{ states('sensor.docker_appdaemon_status') }}<br>
Current:
{{ states('sensor.docker_appdaemon_image').split(':')[1] }}<br>
Latest:
{{ states('sensor.latest_version_appdaemon') }}</h5>
@@ -1191,8 +1457,10 @@ cards:
- type: markdown
content: >
<center>
<h5>Software:
{{ states('sensor.update_esphome') }}<br><br></h5>
<h5>Uptime:
{{ states('sensor.docker_esphome_dashboard_status') }}<br>
Software:
{{ states('sensor.update_esphome') }}<br></h5>
</center>
style: |
ha-card {
@@ -1289,17 +1557,144 @@ cards:
margin-right: 30px;
padding-left: 5px;
}
- type: vertical-stack
cards:
####################################################
# Postgres #
# Nextcloud DB #
####################################################
# Title
- type: markdown
content: >
<center>
<h3>Postgres</h3>
<h3>Nextcloud DB</h3>
</center>
style: |
ha-card {
color: teal;
margin-top: -75px;
}
# Image
- type: markdown
content: >
<center>
<img width="50" src="https://upload.wikimedia.org/wikipedia/de/thumb/4/4b/Postgresql.svg/1200px-Postgresql.svg.png">
</center>
style: |
ha-card {
margin-top: -45.5px;
}
# DB Size
- type: markdown
content: >
<center>
<h5>Uptime:
{{ states('sensor.docker_nextcloud_db_status') }}<br>
Database Size:
{{ states('sensor.db_size_nextcloud') }} MB<br></h5>
</center>
style: |
ha-card {
color: teal;
margin-top: -54px;
}
# CPU
- type: custom:bar-card
positions:
name: outside
value: outside
indicator: 'off'
icon: 'off'
height: 15px
width: 80%
entities:
- entity: sensor.docker_nextcloud_db_cpu
name: CPU
severity:
- color: rgb(26,204,147,0.33)
from: 0
to: 10
- color: rgb(206,133,0,0.60)
from: 11
to: 25
- color: rgb(163,0,0,0.60)
from: 26
to: 150
style: |
ha-card {
--paper-item-icon-color: rgb(47,186,229);
border-radius: 2.5px;
height: 40px;
}
bar-card-name {
margin-top: -97.5px;
margin-left: 40px;
}
bar-card-backgroundbar {
margin-top: -50px;
border-radius: 2.5px;
}
bar-card-currentbar {
margin-top: -50px;
border-radius: 2.5px;
}
bar-card-value {
margin-top: -97.5px;
margin-right: 30px;
padding-left: 5px;
}
# RAM
- type: custom:bar-card
positions:
name: outside
value: outside
indicator: 'off'
icon: 'off'
height: 15px
width: 80%
entities:
- entity: sensor.docker_nextcloud_db_memory_percent
name: RAM
severity:
- color: rgb(26,204,147,0.33)
from: 0
to: 69.9
- color: rgb(206,133,0,0.60)
from: 70
to: 85
- color: rgb(163,0,0,0.60)
from: 85
to: 150
style: |
ha-card {
--paper-item-icon-color: rgb(47,186,229);
border-radius: 2.5px;
height: 40px;
}
bar-card-name {
margin-top: -130px;
margin-left: 40px;
}
bar-card-backgroundbar {
margin-top: -67.5px;
border-radius: 2.5px;
}
bar-card-currentbar {
margin-top: -67.5px;
border-radius: 2.5px;
}
bar-card-value {
margin-top: -130px;
margin-right: 30px;
padding-left: 5px;
}
- type: vertical-stack
cards:
####################################################
# Home Assistant DB #
####################################################
# Title
- type: markdown
content: >
<center>
<h3>Home Assistant DB</h3>
</center>
style: |
ha-card {
@@ -1320,7 +1715,9 @@ cards:
- type: markdown
content: >
<center>
<h5>Database Size:
<h5>Uptime:
{{ states('sensor.docker_hass_db_status') }}<br>
Database Size:
{{ states('sensor.db_size_hass') }} MB<br><br></h5>
</center>
style: |
@@ -1446,8 +1843,10 @@ cards:
- type: markdown
content: >
<center>
<h5>Software:
{{ states('sensor.update_portainer') }}<br><br></h5>
<h5>Uptime:
{{ states('sensor.docker_portainer_status') }}<br>
Software:
{{ states('sensor.update_portainer') }}<br></h5>
</center>
style: |
ha-card {

View File

@@ -123,8 +123,12 @@ cards:
- type: markdown
content: >
<center>
<img width="180" src="/local/system_monitoring/unifi_logo.png">
<img width="100" src="/local/system_monitoring/private_devices.png">
</center>
style: |
ha-card {
margin-top: -15px;
}
- type: markdown
content: >
<center>
@@ -135,7 +139,7 @@ cards:
style: |
ha-card {
color: teal;
margin-top: -30px;
margin-top: -50px;
}
####################################################
# Devices #
@@ -189,8 +193,12 @@ cards:
- type: markdown
content: >
<center>
<img width="180" src="/local/system_monitoring/unifi_logo.png">
<img width="100" src="/local/system_monitoring/private_devices.png">
</center>
style: |
ha-card {
margin-top: -15px;
}
- type: markdown
content: >
<center>
@@ -201,7 +209,7 @@ cards:
style: |
ha-card {
color: teal;
margin-top: -30px;
margin-top: -50px;
}
####################################################
# Devices #
@@ -290,7 +298,7 @@ cards:
- type: markdown
content: >
<center>
<img width="180" src="/local/system_monitoring/unifi_logo.png">
<img width="50" src="/local/system_monitoring/nas_logo.png">
</center>
- type: markdown
content: >
@@ -349,7 +357,7 @@ cards:
- type: markdown
content: >
<center>
<img width="180" src="/local/system_monitoring/unifi_logo.png">
<img width="90" src="/local/system_monitoring/iot.png">
</center>
- type: markdown
content: >
@@ -419,11 +427,12 @@ cards:
- type: markdown
content: >
<center>
<img width="180" src="/local/system_monitoring/unifi_logo.png">
<img width="60" src="/local/system_monitoring/non_iot.png">
</center>
style: |
ha-card {
margin-top: 40px;
margin-top: 20px;
margin-bottom: 10px;
}
- type: markdown
content: >
@@ -539,8 +548,12 @@ cards:
- type: markdown
content: >
<center>
<img width="180" src="/local/system_monitoring/unifi_logo.png">
<img width="100" src="/local/system_monitoring/multimedia_logo.png">
</center>
style: |
ha-card {
margin-top: 10px;
}
- type: markdown
content: >
<center>
@@ -551,7 +564,7 @@ cards:
style: |
ha-card {
color: teal;
margin-top: -10px;
margin-top: -30px;
}
####################################################
# Devices #
@@ -622,8 +635,12 @@ cards:
- type: markdown
content: >
<center>
<img width="180" src="/local/system_monitoring/unifi_logo.png">
<img width="100" src="/local/system_monitoring/multimedia_logo.png">
</center>
style: |
ha-card {
margin-top: 10px;
}
- type: markdown
content: >
<center>
@@ -634,7 +651,7 @@ cards:
style: |
ha-card {
color: teal;
margin-top: -10px;
margin-top: -30px;
}
####################################################
# Devices #

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB