mirror of
https://github.com/Burningstone91/smart-home-setup.git
synced 2022-05-05 21:16:50 +03:00
Changed NAS to Backup NAS and added new devices to Device Tracker Overview
This commit is contained in:
@@ -642,7 +642,7 @@ cards:
|
||||
}
|
||||
####################################################
|
||||
# #
|
||||
# NAS #
|
||||
# Backup NAS #
|
||||
# #
|
||||
####################################################
|
||||
- type: custom:stack-in-card
|
||||
@@ -675,15 +675,15 @@ cards:
|
||||
content: >
|
||||
**NAS**<br>
|
||||
**Model:**
|
||||
Synology {{ states('sensor.model_nas') }}<br>
|
||||
Synology {{ states('sensor.model__backup_nas') }}<br>
|
||||
**IP:**
|
||||
{{ state_attr('device_tracker.nas', 'ip') }}<br>
|
||||
**Firmware:**
|
||||
{{ states('sensor.firmware_nas') }}<br>
|
||||
{{ 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_nas') }}
|
||||
{{ states('sensor.uptime_backup_nas') }}
|
||||
style: |
|
||||
ha-card {
|
||||
color: teal;
|
||||
@@ -726,11 +726,11 @@ cards:
|
||||
type: section
|
||||
label: Status
|
||||
entities:
|
||||
- entity: sensor.status_nas_drive_1
|
||||
- entity: sensor.status_backup_nas_drive_1
|
||||
name: Status
|
||||
- entity: binary_sensor.exceeded_max_bad_sectors_nas_drive_1
|
||||
- entity: binary_sensor.exceeded_max_bad_sectors_backup_nas_drive_1
|
||||
name: Sektoren
|
||||
- entity: binary_sensor.below_min_remaining_lifenas_drive_1
|
||||
- entity: binary_sensor.below_min_remaining_life_backup_nas_drive_1
|
||||
name: Alter
|
||||
####################################################
|
||||
# Column 2 #
|
||||
@@ -747,7 +747,7 @@ cards:
|
||||
width: 80%
|
||||
icon: mdi:speedometer
|
||||
entities:
|
||||
- entity: sensor.cpu_load_nas
|
||||
- entity: sensor.cpu_load_backup_nas
|
||||
name: CPU
|
||||
severity:
|
||||
- color: rgb(26,204,147,0.33)
|
||||
@@ -796,7 +796,7 @@ cards:
|
||||
width: 80%
|
||||
icon: mdi:thermometer
|
||||
entities:
|
||||
- entity: sensor.temperature_nas_average
|
||||
- entity: sensor.temperature_backup_nas_average
|
||||
name: Temp
|
||||
severity:
|
||||
- color: rgb(26,204,147,0.33)
|
||||
@@ -844,7 +844,7 @@ cards:
|
||||
height: 15px
|
||||
width: 80%
|
||||
entities:
|
||||
- entity: sensor.ram_use_pct_nas
|
||||
- entity: sensor.ram_use_pct_backup_nas
|
||||
name: RAM
|
||||
severity:
|
||||
- color: rgb(26,204,147,0.33)
|
||||
@@ -890,7 +890,7 @@ cards:
|
||||
height: 15px
|
||||
width: 80%
|
||||
entities:
|
||||
- entity: sensor.disk_use_pct_nas
|
||||
- entity: sensor.disk_use_pct_backup_nas
|
||||
name: Disk
|
||||
severity:
|
||||
- color: rgb(26,204,147,0.33)
|
||||
@@ -936,7 +936,7 @@ cards:
|
||||
name: Temperatur - Disk 1
|
||||
icon: mdi:thermometer
|
||||
entities:
|
||||
- sensor.temperature_nas_drive_1
|
||||
- sensor.temperature_backup_nas_drive_1
|
||||
height: 60
|
||||
line_width: 2
|
||||
font_size: 70
|
||||
@@ -966,9 +966,9 @@ cards:
|
||||
name: Network Throughput
|
||||
icon: mdi:network
|
||||
entities:
|
||||
- entity: sensor.network_down_nas
|
||||
- entity: sensor.network_down_backup_nas
|
||||
name: Down
|
||||
- entity: sensor.network_up_nas
|
||||
- entity: sensor.network_up_backup_nas
|
||||
name: Up
|
||||
height: 30
|
||||
line_width: 2
|
||||
@@ -1026,11 +1026,11 @@ cards:
|
||||
type: section
|
||||
label: Status
|
||||
entities:
|
||||
- entity: sensor.status_nas_drive_2
|
||||
- entity: sensor.status_backup_nas_drive_2
|
||||
name: Status
|
||||
- entity: binary_sensor.exceeded_max_bad_sectors_nas_drive_2
|
||||
- entity: binary_sensor.exceeded_max_bad_sectors_backup_nas_drive_2
|
||||
name: Sektoren
|
||||
- entity: binary_sensor.below_min_remaining_lifenas_drive_2
|
||||
- entity: binary_sensor.below_min_remaining_life_backup_nas_drive_2
|
||||
name: Alter
|
||||
####################################################
|
||||
# Column 4 #
|
||||
@@ -1045,7 +1045,7 @@ cards:
|
||||
name: Temperatur - Disk 2
|
||||
icon: mdi:thermometer
|
||||
entities:
|
||||
- sensor.temperature_nas_drive_2
|
||||
- sensor.temperature_backup_nas_drive_2
|
||||
height: 50
|
||||
line_width: 2
|
||||
font_size: 70
|
||||
|
||||
@@ -91,7 +91,7 @@ cards:
|
||||
- ../../../templates/button_network.yaml
|
||||
- name: Switch Reduit
|
||||
label: "IP: 10.10.0.10"
|
||||
entity: device_tracker.switch_livingroom
|
||||
entity: device_tracker.switch_storageroom
|
||||
entity_picture: /local/system_monitoring/us_8_60w.png
|
||||
size: 49%
|
||||
- type: vertical-stack
|
||||
@@ -168,10 +168,29 @@ cards:
|
||||
size: 30%
|
||||
- type: vertical-stack
|
||||
cards:
|
||||
- !include ../../../templates/empty-button.yaml
|
||||
# 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%
|
||||
- type: vertical-stack
|
||||
cards:
|
||||
- !include ../../../templates/empty-button.yaml
|
||||
# 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%
|
||||
- type: vertical-stack
|
||||
cards:
|
||||
- !include ../../../templates/empty-button.yaml
|
||||
@@ -317,14 +336,38 @@ cards:
|
||||
####################################################
|
||||
- type: vertical-stack
|
||||
cards:
|
||||
# NAS
|
||||
# Main Server
|
||||
- !include ../../../templates/gap-height.yaml
|
||||
- !include ../../../templates/gap-height.yaml
|
||||
- !include ../../../templates/gap-height.yaml
|
||||
- !include
|
||||
- ../../../templates/button_network.yaml
|
||||
- name: Main Server
|
||||
label: "[[[ if (typeof(entity) === 'undefined') return; if ('ip' in entity.attributes) { return 'IP: ' + entity.attributes.ip } ]]]"
|
||||
entity: device_tracker.server_nuc
|
||||
entity_picture: /local/system_monitoring/nuc.png
|
||||
size: 30%
|
||||
- type: vertical-stack
|
||||
cards:
|
||||
# NAS
|
||||
- !include ../../../templates/gap-height.yaml
|
||||
- !include
|
||||
- ../../../templates/button_network.yaml
|
||||
- name: NAS
|
||||
label: "[[[ if (typeof(entity) === 'undefined') return; if ('ip' in entity.attributes) { return 'IP: ' + entity.attributes.ip } ]]]"
|
||||
entity: device_tracker.nas
|
||||
entity_picture: /local/system_monitoring/main_nas.png
|
||||
size: 47%
|
||||
- type: vertical-stack
|
||||
cards:
|
||||
# Backup NAS
|
||||
- !include ../../../templates/gap-height.yaml
|
||||
- !include ../../../templates/gap-height.yaml
|
||||
- !include
|
||||
- ../../../templates/button_network.yaml
|
||||
- name: Backup NAS
|
||||
label: "[[[ if (typeof(entity) === 'undefined') return; if ('ip' in entity.attributes) { return 'IP: ' + entity.attributes.ip } ]]]"
|
||||
entity: device_tracker.backup_nas
|
||||
entity_picture: /local/system_monitoring/nas.png
|
||||
size: 25%
|
||||
- type: vertical-stack
|
||||
@@ -333,12 +376,6 @@ cards:
|
||||
- type: vertical-stack
|
||||
cards:
|
||||
- !include ../../../templates/empty-button.yaml
|
||||
- type: vertical-stack
|
||||
cards:
|
||||
- !include ../../../templates/empty-button.yaml
|
||||
- type: vertical-stack
|
||||
cards:
|
||||
- !include ../../../templates/empty-button.yaml
|
||||
####################################################
|
||||
# #
|
||||
# IoT Wired VLAN #
|
||||
@@ -379,27 +416,25 @@ cards:
|
||||
# Main Server
|
||||
- !include ../../../templates/gap-height.yaml
|
||||
- !include ../../../templates/gap-height.yaml
|
||||
- !include ../../../templates/gap-height.yaml
|
||||
- !include
|
||||
- ../../../templates/button_network.yaml
|
||||
- name: Main Server
|
||||
- name: Smart Home VM
|
||||
label: "[[[ if (typeof(entity) === 'undefined') return; if ('ip' in entity.attributes) { return 'IP: ' + entity.attributes.ip } ]]]"
|
||||
entity: device_tracker.server_nuc
|
||||
entity_picture: /local/system_monitoring/nuc.png
|
||||
size: 30%
|
||||
entity: device_tracker.smart_home_vm
|
||||
entity_picture: /local/system_monitoring/home_assistant.png
|
||||
size: 25%
|
||||
- type: vertical-stack
|
||||
cards:
|
||||
# Pi ZigBee/Z-Wave
|
||||
- !include ../../../templates/gap-height.yaml
|
||||
- !include ../../../templates/gap-height.yaml
|
||||
- !include ../../../templates/gap-height.yaml
|
||||
- !include
|
||||
- ../../../templates/button_network.yaml
|
||||
- name: Pi ZigBee/Zwave
|
||||
label: "[[[ if (typeof(entity) === 'undefined') return; if ('ip' in entity.attributes) { return 'IP: ' + entity.attributes.ip } ]]]"
|
||||
entity: device_tracker.pi_zigbee_zwave
|
||||
entity_picture: /local/system_monitoring/pi3.png
|
||||
size: 25%
|
||||
size: 34%
|
||||
- type: vertical-stack
|
||||
cards:
|
||||
- !include ../../../templates/empty-button.yaml
|
||||
@@ -596,21 +631,21 @@ cards:
|
||||
entity: device_tracker.receiver_office
|
||||
entity_picture: /local/system_monitoring/yamaha_stereo.png
|
||||
size: 45%
|
||||
|
||||
- type: vertical-stack
|
||||
cards:
|
||||
# Nintendo Switch
|
||||
- !include ../../../templates/gap-height.yaml
|
||||
# Kodi Livingroom
|
||||
- !include ../../../templates/gap-height.yaml
|
||||
- !include ../../../templates/gap-height.yaml
|
||||
- !include ../../../templates/gap-height.yaml
|
||||
- !include ../../../templates/gap-height.yaml
|
||||
- !include
|
||||
- ../../../templates/button_network.yaml
|
||||
- name: Nintendo Switch
|
||||
- name: Kodi Wohnzimmer
|
||||
label: "[[[ if (typeof(entity) === 'undefined') return; if ('ip' in entity.attributes) { return 'IP: ' + entity.attributes.ip } ]]]"
|
||||
entity: device_tracker.nintendo_switch
|
||||
entity_picture: /local/system_monitoring/nintendo_switch.png
|
||||
size: 35%
|
||||
entity: device_tracker.kodi_livingroom
|
||||
entity_picture: /local/system_monitoring/pi4.png
|
||||
size: 40%
|
||||
- type: vertical-stack
|
||||
cards:
|
||||
- !include ../../../templates/empty-button.yaml
|
||||
@@ -670,7 +705,19 @@ cards:
|
||||
size: 30%
|
||||
- type: vertical-stack
|
||||
cards:
|
||||
- !include ../../../templates/empty-button.yaml
|
||||
# Nintendo Switch
|
||||
- !include ../../../templates/gap-height.yaml
|
||||
- !include ../../../templates/gap-height.yaml
|
||||
- !include ../../../templates/gap-height.yaml
|
||||
- !include ../../../templates/gap-height.yaml
|
||||
- !include ../../../templates/gap-height.yaml
|
||||
- !include
|
||||
- ../../../templates/button_network.yaml
|
||||
- name: Nintendo Switch
|
||||
label: "[[[ if (typeof(entity) === 'undefined') return; if ('ip' in entity.attributes) { return 'IP: ' + entity.attributes.ip } ]]]"
|
||||
entity: device_tracker.nintendo_switch
|
||||
entity_picture: /local/system_monitoring/nintendo_switch.png
|
||||
size: 35%
|
||||
- type: vertical-stack
|
||||
cards:
|
||||
- !include ../../../templates/empty-button.yaml
|
||||
|
||||
Reference in New Issue
Block a user