mirror of
https://github.com/Burningstone91/smart-home-setup.git
synced 2022-05-05 21:16:50 +03:00
Moved Backup stuff to separate view, updated device tracker/automations and network view
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
views:
|
||||
- !include ./views/server.yaml
|
||||
- !include ./views/network.yaml
|
||||
- !include ./views/backups.yaml
|
||||
- !include ./views/unifi-device-trackers.yaml
|
||||
- !include ./views/system-monitoring.yaml
|
||||
- !include ./views/automations.yaml
|
||||
|
||||
@@ -97,7 +97,7 @@ cards:
|
||||
- entity: automation.schlafmodus_fur_adaptive_beleuchtung_schlafzimmer
|
||||
- entity: automation.licht_an_bei_bewegung_ankleidezimmer
|
||||
- entity: automation.licht_aus_ankleidezimmer_nicht_besetzt
|
||||
- entity: automation.licht_schalter_ankleidzimmer
|
||||
- entity: automation.licht_schalter_ankleidezimmer
|
||||
- entity: automation.fernbedienung_dimitri
|
||||
- entity: automation.fernbedienung_sabrina
|
||||
- type: entities
|
||||
@@ -114,13 +114,19 @@ cards:
|
||||
label: Systeme
|
||||
entities:
|
||||
- entity: automation.benachrichtigung_bei_unterspannung
|
||||
- entity: automation.benachrichtigung_wenn_batterien_bald_leer_sind_2
|
||||
- entity: automation.benachrichtigung_wenn_batterien_bald_leer_sind
|
||||
- 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
|
||||
- entity: automation.workstation_backup_erinnerung
|
||||
- entity: automation.nas_usb_backup_erinnerung
|
||||
- entity: automation.benachrichtigung_bei_backup_fehler
|
||||
- entity: automation.benachrichtigung_bei_unsicherem_nas
|
||||
- entity: automation.benachrichtigung_wenn_festplatten_temperatur_hoch_ist
|
||||
- entity: automation.benachrichtigung_bei_nas_festplatten_crash
|
||||
- type: entities
|
||||
# style: |
|
||||
# ha-card {
|
||||
@@ -168,6 +174,7 @@ cards:
|
||||
- entity: automation.licht_hell_dunkel_bei_pause_play
|
||||
- entity: automation.pause_play_bei_anruf
|
||||
- entity: automation.licht_szenen_heimkino
|
||||
- entity: script.set_home_cinema_lights
|
||||
- type: entities
|
||||
# style: |
|
||||
# ha-card {
|
||||
@@ -182,3 +189,17 @@ cards:
|
||||
label: Multiroom Audio
|
||||
entities:
|
||||
- entity: automation.verstarker_wohnzimmer_fur_musik
|
||||
- type: entities
|
||||
# style: |
|
||||
# ha-card {
|
||||
# color: teal;
|
||||
# width: 200px;
|
||||
# margin-left: 105px;
|
||||
# }
|
||||
entities:
|
||||
- type: custom:fold-entity-row
|
||||
head:
|
||||
type: section
|
||||
label: Geschirrspüler
|
||||
entities:
|
||||
- entity: automation.status_geschirrspuler
|
||||
|
||||
1001
home-assistant/lovelace/dashboards/computer-view/views/backups.yaml
Executable file
1001
home-assistant/lovelace/dashboards/computer-view/views/backups.yaml
Executable file
File diff suppressed because it is too large
Load Diff
@@ -640,429 +640,3 @@ cards:
|
||||
margin-right: 20px;
|
||||
margin-left: 20px;
|
||||
}
|
||||
####################################################
|
||||
# #
|
||||
# Backup NAS #
|
||||
# #
|
||||
####################################################
|
||||
- type: custom:stack-in-card
|
||||
cards:
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
####################################################
|
||||
# Synology NAS #
|
||||
####################################################
|
||||
- type: vertical-stack
|
||||
cards:
|
||||
# Image
|
||||
- type: markdown
|
||||
content: >
|
||||
<center>
|
||||
<img width="140" src="/local/system_monitoring/nas.png">
|
||||
</center>
|
||||
style: |
|
||||
ha-card {
|
||||
margin-top: 100px;
|
||||
margin-left: 2.5px;
|
||||
}
|
||||
####################################################
|
||||
# Column 1 #
|
||||
####################################################
|
||||
- type: vertical-stack
|
||||
cards:
|
||||
# Title, Model, Firmware, Updates, Uptime
|
||||
- type: markdown
|
||||
content: >
|
||||
**NAS**<br>
|
||||
**Model:**
|
||||
Synology {{ states('sensor.model__backup_nas') }}<br>
|
||||
**IP:**
|
||||
{{ state_attr('device_tracker.nas', 'ip') }}<br>
|
||||
**Firmware:**
|
||||
{{ states('sensor.firmware_backup_nas') }}<br>
|
||||
**Updates:**
|
||||
{{ 'Update available' if states('binary_sensor.nas_update_available') == 'on' else 'Up-to-date' }}<br>
|
||||
**Uptime:**
|
||||
{{ states('sensor.uptime_backup_nas') }}
|
||||
style: |
|
||||
ha-card {
|
||||
color: teal;
|
||||
padding-top: 20px;
|
||||
margin-left: 30px;
|
||||
}
|
||||
# Drive 1 Title
|
||||
- type: markdown
|
||||
content: >
|
||||
<center>
|
||||
<h3>Drive 1</h3>
|
||||
</center>
|
||||
style: |
|
||||
ha-card {
|
||||
color: teal;
|
||||
margin-top: 0px;
|
||||
}
|
||||
# Image
|
||||
- type: markdown
|
||||
content: >
|
||||
<center>
|
||||
<img width="80" src="/local/system_monitoring/hdd_nas.png">
|
||||
</center>
|
||||
style: |
|
||||
ha-card {
|
||||
margin-top: -30px;
|
||||
margin-bottom: -15px;
|
||||
}
|
||||
# Disk 1 Stats
|
||||
- type: entities
|
||||
style: |
|
||||
ha-card {
|
||||
color: teal;
|
||||
width: 200px;
|
||||
margin-left: 105px;
|
||||
}
|
||||
entities:
|
||||
- type: custom:fold-entity-row
|
||||
head:
|
||||
type: section
|
||||
label: Status
|
||||
entities:
|
||||
- entity: sensor.status_backup_nas_drive_1
|
||||
name: Status
|
||||
- entity: binary_sensor.exceeded_max_bad_sectors_backup_nas_drive_1
|
||||
name: Sektoren
|
||||
- entity: binary_sensor.below_min_remaining_life_backup_nas_drive_1
|
||||
name: Alter
|
||||
####################################################
|
||||
# Column 2 #
|
||||
####################################################
|
||||
- type: vertical-stack
|
||||
cards:
|
||||
# CPU Load
|
||||
- type: custom:bar-card
|
||||
positions:
|
||||
name: outside
|
||||
value: outside
|
||||
indicator: 'off'
|
||||
height: 15px
|
||||
width: 80%
|
||||
icon: mdi:speedometer
|
||||
entities:
|
||||
- entity: sensor.cpu_load_backup_nas
|
||||
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;
|
||||
margin-top: 20px;
|
||||
margin-left: -60px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
ha-icon {
|
||||
--mdc-icon-size: 20px;
|
||||
}
|
||||
bar-card-name {
|
||||
margin-left: 40px;
|
||||
}
|
||||
bar-card-backgroundbar {
|
||||
border-radius: 2.5px;
|
||||
margin-left: -2px;
|
||||
}
|
||||
bar-card-currentbar {
|
||||
border-radius: 2.5px;
|
||||
margin-left: -2px;
|
||||
}
|
||||
bar-card-value {
|
||||
margin-right: 30px;
|
||||
padding-left: 5px;
|
||||
}
|
||||
# Temperature
|
||||
- type: custom:bar-card
|
||||
positions:
|
||||
name: outside
|
||||
value: outside
|
||||
indicator: 'off'
|
||||
height: 15px
|
||||
width: 80%
|
||||
icon: mdi:thermometer
|
||||
entities:
|
||||
- entity: sensor.temperature_backup_nas_average
|
||||
name: Temp
|
||||
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;
|
||||
margin-top: -15px;
|
||||
margin-left: -60px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
ha-icon {
|
||||
--mdc-icon-size: 20px;
|
||||
}
|
||||
bar-card-name {
|
||||
margin-left: 40px;
|
||||
}
|
||||
bar-card-backgroundbar {
|
||||
border-radius: 2.5px;
|
||||
margin-left: 4px;
|
||||
}
|
||||
bar-card-currentbar {
|
||||
border-radius: 2.5px;
|
||||
margin-left: 4px;
|
||||
}
|
||||
bar-card-value {
|
||||
margin-right: 30px;
|
||||
padding-left: 5px;
|
||||
}
|
||||
# RAM
|
||||
- type: custom:bar-card
|
||||
positions:
|
||||
name: outside
|
||||
value: outside
|
||||
indicator: 'off'
|
||||
height: 15px
|
||||
width: 80%
|
||||
entities:
|
||||
- entity: sensor.ram_use_pct_backup_nas
|
||||
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;
|
||||
margin-top: -15px;
|
||||
margin-left: -60px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
ha-icon {
|
||||
--mdc-icon-size: 20px;
|
||||
}
|
||||
bar-card-name {
|
||||
margin-left: 40px;
|
||||
}
|
||||
bar-card-backgroundbar {
|
||||
border-radius: 2.5px;
|
||||
}
|
||||
bar-card-currentbar {
|
||||
border-radius: 2.5px;
|
||||
}
|
||||
bar-card-value {
|
||||
margin-right: 30px;
|
||||
padding-left: 5px;
|
||||
}
|
||||
# Disk
|
||||
- type: custom:bar-card
|
||||
positions:
|
||||
name: outside
|
||||
value: outside
|
||||
indicator: 'off'
|
||||
height: 15px
|
||||
width: 80%
|
||||
entities:
|
||||
- entity: sensor.disk_use_pct_backup_nas
|
||||
name: Disk
|
||||
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;
|
||||
margin-top: -15px;
|
||||
margin-left: -60px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
ha-icon {
|
||||
--mdc-icon-size: 20px;
|
||||
}
|
||||
bar-card-name {
|
||||
margin-left: 40px;
|
||||
}
|
||||
bar-card-backgroundbar {
|
||||
border-radius: 2.5px;
|
||||
margin-left: 2px;
|
||||
}
|
||||
bar-card-currentbar {
|
||||
border-radius: 2.5px;
|
||||
margin-left: 2px;
|
||||
}
|
||||
bar-card-value {
|
||||
margin-right: 30px;
|
||||
padding-left: 5px;
|
||||
}
|
||||
# Disk 1 Temp
|
||||
- type: vertical-stack
|
||||
cards:
|
||||
- type: custom:mini-graph-card
|
||||
name: Temperatur - Disk 1
|
||||
icon: mdi:thermometer
|
||||
entities:
|
||||
- sensor.temperature_backup_nas_drive_1
|
||||
height: 60
|
||||
line_width: 2
|
||||
font_size: 70
|
||||
hours_to_show: 168
|
||||
points_per_hour: 1
|
||||
show:
|
||||
extrema: true
|
||||
fill: true
|
||||
state: false
|
||||
legend: false
|
||||
style: |
|
||||
ha-card {
|
||||
--paper-item-icon-color: rgb(47,186,229);
|
||||
margin-right: -65px;
|
||||
margin-left: -40px;
|
||||
margin-top: 50px;
|
||||
margin-bottom: 25px;
|
||||
width: 250px;
|
||||
}
|
||||
####################################################
|
||||
# Column 3 #
|
||||
####################################################
|
||||
- type: vertical-stack
|
||||
cards:
|
||||
# Network Throughput
|
||||
- type: custom:mini-graph-card
|
||||
name: Network Throughput
|
||||
icon: mdi:network
|
||||
entities:
|
||||
- entity: sensor.network_down_backup_nas
|
||||
name: Down
|
||||
- entity: sensor.network_up_backup_nas
|
||||
name: Up
|
||||
height: 30
|
||||
line_width: 2
|
||||
font_size: 70
|
||||
hours_to_show: 168
|
||||
points_per_hour: 1
|
||||
show:
|
||||
extrema: true
|
||||
fill: true
|
||||
state: false
|
||||
legend: false
|
||||
style: |
|
||||
ha-card {
|
||||
--paper-item-icon-color: rgb(47,186,229);
|
||||
margin-right: -65px;
|
||||
margin-left: 80px;
|
||||
margin-top: 5px;
|
||||
margin-bottom: 5px;
|
||||
width: 500px;
|
||||
}
|
||||
# Drive 2 Title
|
||||
- type: markdown
|
||||
content: >
|
||||
<center>
|
||||
<h3>Drive 2</h3>
|
||||
</center>
|
||||
style: |
|
||||
ha-card {
|
||||
color: teal;
|
||||
margin-left: -250px;
|
||||
}
|
||||
# Image
|
||||
- type: markdown
|
||||
content: >
|
||||
<center>
|
||||
<img width="80" src="/local/system_monitoring/hdd_nas.png">
|
||||
</center>
|
||||
style: |
|
||||
ha-card {
|
||||
margin-top: -30px;
|
||||
margin-bottom: -15px;
|
||||
margin-left: -250px;
|
||||
}
|
||||
# Disk 2 Stats
|
||||
- type: entities
|
||||
style: |
|
||||
ha-card {
|
||||
color: teal;
|
||||
width: 200px;
|
||||
margin-left: -20px;
|
||||
}
|
||||
entities:
|
||||
- type: custom:fold-entity-row
|
||||
head:
|
||||
type: section
|
||||
label: Status
|
||||
entities:
|
||||
- entity: sensor.status_backup_nas_drive_2
|
||||
name: Status
|
||||
- entity: binary_sensor.exceeded_max_bad_sectors_backup_nas_drive_2
|
||||
name: Sektoren
|
||||
- entity: binary_sensor.below_min_remaining_life_backup_nas_drive_2
|
||||
name: Alter
|
||||
####################################################
|
||||
# Column 4 #
|
||||
####################################################
|
||||
- type: vertical-stack
|
||||
cards:
|
||||
# Empty Box
|
||||
- type: markdown
|
||||
content: " "
|
||||
# Disk 2 Temp
|
||||
- type: custom:mini-graph-card
|
||||
name: Temperatur - Disk 2
|
||||
icon: mdi:thermometer
|
||||
entities:
|
||||
- sensor.temperature_backup_nas_drive_2
|
||||
height: 50
|
||||
line_width: 2
|
||||
font_size: 70
|
||||
hours_to_show: 168
|
||||
points_per_hour: 1
|
||||
show:
|
||||
extrema: true
|
||||
fill: true
|
||||
state: false
|
||||
legend: false
|
||||
style: |
|
||||
ha-card {
|
||||
--paper-item-icon-color: rgb(47,186,229);
|
||||
margin-right: -65px;
|
||||
margin-left: -160px;
|
||||
margin-top: 160px;
|
||||
margin-bottom: 5px;
|
||||
width: 250px;
|
||||
}
|
||||
|
||||
|
||||
@@ -73,16 +73,16 @@ cards:
|
||||
size: 58%
|
||||
- type: vertical-stack
|
||||
cards:
|
||||
# Unifi Controller
|
||||
# Network VM
|
||||
- !include ../../../templates/gap-height.yaml
|
||||
- !include ../../../templates/gap-height.yaml
|
||||
- !include
|
||||
- ../../../templates/button_network.yaml
|
||||
- name: UniFi Controller
|
||||
- name: Network VM
|
||||
label: "[[[ if (typeof(entity) === 'undefined') return; if ('ip' in entity.attributes) { return 'IP: ' + entity.attributes.ip } ]]]"
|
||||
entity: device_tracker.unifi_controller
|
||||
entity_picture: /local/system_monitoring/pi3.png
|
||||
size: 34%
|
||||
entity: device_tracker.network_vm
|
||||
entity_picture: /local/system_monitoring/network.png
|
||||
size: 25%
|
||||
- type: vertical-stack
|
||||
cards:
|
||||
# Unifi Switch Storageroom
|
||||
@@ -170,27 +170,25 @@ cards:
|
||||
cards:
|
||||
# Nextcloud VM
|
||||
- !include ../../../templates/gap-height.yaml
|
||||
- !include ../../../templates/gap-height.yaml
|
||||
- !include
|
||||
- ../../../templates/button_network.yaml
|
||||
- name: Cloud VM
|
||||
label: "[[[ if (typeof(entity) === 'undefined') return; if ('ip' in entity.attributes) { return 'IP: ' + entity.attributes.ip } ]]]"
|
||||
entity: device_tracker.nextcloud_vm
|
||||
entity_picture: /local/system_monitoring/nextcloud.png
|
||||
size: 35%
|
||||
size: 37%
|
||||
- type: vertical-stack
|
||||
cards:
|
||||
# Investment VM
|
||||
- !include ../../../templates/gap-height.yaml
|
||||
- !include ../../../templates/gap-height.yaml
|
||||
- !include ../../../templates/gap-height.yaml
|
||||
- !include
|
||||
- ../../../templates/button_network.yaml
|
||||
- name: Investment VM
|
||||
label: "[[[ if (typeof(entity) === 'undefined') return; if ('ip' in entity.attributes) { return 'IP: ' + entity.attributes.ip } ]]]"
|
||||
entity: device_tracker.investment_vm
|
||||
entity_picture: /local/system_monitoring/investment.png
|
||||
size: 20%
|
||||
size: 22%
|
||||
- type: vertical-stack
|
||||
cards:
|
||||
- !include ../../../templates/empty-button.yaml
|
||||
@@ -698,11 +696,11 @@ cards:
|
||||
- !include ../../../templates/gap-height.yaml
|
||||
- !include
|
||||
- ../../../templates/button_network.yaml
|
||||
- name: Musik Schlafzimmer
|
||||
- name: Volumio Schlafzimmer
|
||||
label: "[[[ if (typeof(entity) === 'undefined') return; if ('ip' in entity.attributes) { return 'IP: ' + entity.attributes.ip } ]]]"
|
||||
entity: device_tracker.receiver_bedroom
|
||||
entity_picture: /local/system_monitoring/heos.png
|
||||
size: 30%
|
||||
entity: device_tracker.music_bedroom
|
||||
entity_picture: /local/system_monitoring/pi_zero_w_dac.png
|
||||
size: 35%
|
||||
- type: vertical-stack
|
||||
cards:
|
||||
# Nintendo Switch
|
||||
|
||||
Reference in New Issue
Block a user