Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type: vertical-stack
- cards:
- - type: vertical-stack
- cards:
- - type: custom:decluttering-card
- template: normal_title
- variables:
- - content: File Server FVM1
- - sub-content: null
- - type: picture-elements
- image: /local/dashboard_photos/transparent/~transparent-1-1.png
- card_mod:
- style: |
- ha-card {
- {# method of putting overlay over or under by multiple backgrounds #}
- background:
- /* top, transparent red, faked with gradient */
- linear-gradient(
- rgba(0, 0, 0, 0.7),
- rgba(0, 0, 0, 0.1)
- ),
- /* bottom, image */
- url("/local/dashboard_photos/server_background1.jpg");
- background-position: center bottom;
- background-size: cover;
- background-repeat: no-repeat;
- {% set comment = "Use for spinning fan on fan on " %}
- {% if is_state('binary_sensor.hvac_active','on') %}
- --state-rotate-2s: rotation2s 2.5s linear infinite;
- {% endif %}
- {% set comment = "iphone charging" %}
- {% if is_state('sensor.iphone_battery_state','Charging') %}
- --iphone-charging: redpulse 4.01s linear infinite;
- {% endif %}
- {% set comment = "HVAC Cooling" %}
- {% if is_state_attr('climate.t6_pro_thermostat','hvac_action','heating') %}
- --hvac_cooling: bluepulse 4.01s linear infinite;
- {% endif %}
- }
- @keyframes rotation2s {
- 0% {transform: rotate(0deg)}
- 100% {transform: rotate(360deg)}
- }
- @keyframes redpulse {
- 0% {color: red;}
- 45% {color: grey;}
- 60% {color: red;}
- 100% {color: red;}
- }
- @keyframes bluepulse {
- 0% {color: lightblue;}
- 45% {color: grey;}
- 60% {color: lightblue;}
- 100% {color: lightblue;}
- }
- elements:
- - type: image
- tap_action:
- action: url
- url_path: http://192.168.13.50:180
- new_tab: true
- double_tap_action: none
- hold_action: none
- image: /local/dashboard_photos/unraid_kscs.png
- style:
- transform: none
- width: 45%
- min-width: 39px
- top: 2%
- left: 2%
- card_mod:
- style: |
- :host {
- border-radius: 5px;
- }
- - type: state-label
- style:
- transform: none
- transform-origin: 0%
- right: 53%
- top: 6%
- font-size: 80%
- color: white
- entity: sensor.192_168_13_60_containers_active
- tap_action:
- action: more-info
- double_tap_action: none
- hold_action: none
- prefix: "Active Containers: "
- card_mod:
- style: |
- :host {
- background: rgba(255,255,255,0) !important;
- border-radius: 4px;
- }
- - type: custom:mini-graph-card
- style:
- transform: none
- transform-origin: top left
- top: 21%
- left: 2%
- scale: 1
- max-width: 23%
- entities:
- - entity: sensor.192_168_13_60_package_id_0_temperature
- color: lightblue
- name: CPU0
- show_state: true
- show_indicator: true
- graph: line
- hour24: false
- hours_to_show: 12
- points_per_hour: 30
- decimals: 1
- tap_action: none
- double_tap_action: none
- hold_action: none
- show:
- extrema: false
- icon: false
- name: false
- legend: false
- labels: false
- state: false
- card_mod:
- style: |
- ha-card {
- font-size: 90% !important;
- background: rgba(255,255,255,0.05);
- }
- - type: state-label
- style:
- transform: none
- transform-origin: 0%
- left: 2%
- top: 14%
- font-size: 100%
- color: white
- entity: sensor.192_168_13_60_package_id_0_temperature
- tap_action:
- action: more-info
- double_tap_action: none
- hold_action: none
- prefix: "CPU0: "
- card_mod:
- style: |
- :host {
- background: rgba(255,255,255,0) !important;
- font-size: 85% !important;
- border-radius: 4px;
- }
- - type: custom:mini-graph-card
- style:
- transform: none
- transform-origin: top left
- top: 21%
- left: 27%
- scale: 1
- max-width: 23%
- entities:
- - entity: sensor.192_168_13_60_package_id_0_temperature
- color: lightblue
- show_state: true
- show_indicator: true
- graph: line
- hour24: false
- hours_to_show: 12
- points_per_hour: 30
- decimals: 1
- tap_action: none
- double_tap_action: none
- hold_action: none
- show:
- extrema: false
- icon: false
- name: false
- legend: false
- labels: false
- state: false
- card_mod:
- style: |
- ha-card {
- font-size: 90% !important;
- background: rgba(255,255,255,0.05);
- }
- - type: state-label
- style:
- transform: none
- transform-origin: 0%
- left: 27%
- top: 14%
- font-size: 100%
- color: white
- entity: sensor.192_168_13_60_package_id_1_temperature
- tap_action:
- action: more-info
- double_tap_action: none
- hold_action: none
- prefix: "CPU1: "
- card_mod:
- style: |
- :host {
- background: rgba(255,255,255,0) !important;
- font-size: 85% !important;
- border-radius: 4px;
- }
- - type: custom:mini-graph-card
- style:
- transform: none
- transform-origin: top right
- top: 2%
- right: 2%
- scale: 0.7
- max-width: 65%
- entities:
- - entity: sensor.192_168_13_60_cpu_used
- color: orange
- name: CPU
- show_state: true
- show_indicator: true
- graph: line
- hour24: false
- hours_to_show: 12
- points_per_hour: 30
- decimals: 1
- show:
- extrema: false
- icon: false
- name: false
- legend: false
- labels: false
- state: false
- card_mod:
- style: |
- ha-card {
- font-size: 90% !important;
- background: rgba(255,255,255,0.05);
- }
- - type: state-label
- style:
- transform: none
- transform-origin: 0%
- left: 53%
- top: 1%
- font-size: 100%
- color: white
- font-weight: 600
- entity: sensor.dummy_blank_sensor
- tap_action: none
- double_tap_action: none
- hold_action: none
- prefix: CPU (12h)
- card_mod:
- style: |
- :host {
- background: rgba(255,255,255,0) !important;
- border-radius: 4px;
- }
- - type: state-label
- style:
- transform: none
- transform-origin: 0%
- right: 3%
- top: 2%
- font-size: 100%
- color: white
- font-weight: 600
- entity: sensor.192_168_13_60_cpu_used
- tap_action:
- action: more-info
- double_tap_action: none
- hold_action: none
- card_mod:
- style: |
- :host {
- background: rgba(255,255,255,0) !important;
- border-radius: 4px;
- }
- - type: custom:mini-graph-card
- style:
- transform: none
- transform-origin: top right
- top: 18%
- right: 2%
- scale: 0.7
- max-width: 65%
- entities:
- - entity: sensor.192_168_13_60_ram_used_percent
- color: green
- name: Memory
- show_state: true
- show_indicator: true
- graph: line
- hour24: false
- hours_to_show: 12
- points_per_hour: 30
- decimals: 1
- name: Memory
- show:
- extrema: false
- icon: false
- name: false
- legend: false
- labels: false
- state: false
- card_mod:
- style: |
- ha-card {
- font-size: 90% !important;
- background: rgba(255,255,255,0.05);
- }
- - type: state-label
- style:
- transform: none
- transform-origin: 0%
- left: 53%
- top: 16%
- font-size: 100%
- color: white
- font-weight: 500
- entity: sensor.dummy_blank_sensor
- tap_action: none
- double_tap_action: none
- hold_action: none
- prefix: Memory (12h)
- card_mod:
- style: |
- :host {
- background: rgba(255,255,255,0.0) !important;
- border-radius: 4px;
- }
- - type: state-label
- style:
- transform: none
- transform-origin: 0%
- right: 3%
- top: 16%
- font-size: 100%
- color: white
- font-weight: 600
- entity: sensor.192_168_13_60_ram_used_percent
- tap_action:
- action: more-info
- double_tap_action: none
- hold_action: none
- card_mod:
- style: |
- :host {
- background: rgba(255,255,255,0) !important;
- border-radius: 4px;
- }
- - type: state-label
- style:
- transform: none
- transform-origin: 0%
- left: 2%
- top: 34%
- font-size: 110%
- font-weight: 700
- color: silver
- entity: sensor.dummy_blank_sensor
- tap_action: none
- double_tap_action: none
- hold_action: none
- prefix: Storage Drives
- - type: custom:bar-card
- severity:
- - color: rgba(0,128,32,0.5)
- from: 0
- to: 80
- - color: rgba(255,215,0,0.5)
- from: 80
- to: 93
- - color: rgba(128,0,0,0.5)
- from: 93
- to: 100
- entity_row: true
- positions:
- icon: "off"
- name: inside
- indicator: "off"
- value: inside
- decimal: 0
- min: 0
- max: 100
- height: 26px
- width: 100%
- direction: right
- tap_action:
- action: more-info
- hold_action: none
- double_tap_action: none
- stack: vertical
- style:
- transform: none
- top: 42%
- left: 2%
- entities:
- - entity: sensor.192_168_13_60_mnt_disk1_used_percent
- name: Disk 1
- - entity: sensor.192_168_13_60_mnt_disk2_used_percent
- name: Disk 2
- - entity: sensor.192_168_13_60_mnt_disk3_used_percent
- name: Disk 3
- card_mod:
- style: |
- :host {
- width: 45%;
- }
- ha-card {
- border: 0px !important;
- box-shadow: none;
- background-color: transparent !important;
- }
- bar-card-card {
- border: 1px solid rgba(255,255,255,0.2);
- border-radius: 0px 9px 9px 0px;
- }
- - type: custom:bar-card
- severity:
- - color: rgba(0,128,32,0.5)
- from: 0
- to: 80
- - color: rgba(255,215,0,0.5)
- from: 80
- to: 93
- - color: rgba(128,0,0,0.5)
- from: 93
- to: 100
- entity_row: true
- positions:
- icon: "off"
- name: inside
- indicator: "off"
- value: inside
- decimal: 0
- min: 0
- max: 100
- height: 26px
- width: 100%
- direction: right
- tap_action:
- action: more-info
- hold_action: none
- double_tap_action: none
- stack: vertical
- style:
- transform: none
- top: 42%
- left: 52%
- entities:
- - entity: sensor.192_168_13_60_mnt_disk4_used_percent
- name: Disk 4
- - entity: sensor.192_168_13_60_mnt_disk5_used_percent
- name: Disk 5
- - entity: sensor.192_168_13_60_mnt_disk6_used_percent
- name: Disk 6
- card_mod:
- style: |
- :host {
- width: 45%;
- }
- ha-card {
- border: 0px !important;
- box-shadow: none;
- background-color: transparent !important;
- }
- bar-card-card {
- border: 1px solid rgba(255,255,255,0.2);
- border-radius: 0px 9px 9px 0px;
- }
- - type: state-label
- style:
- transform: none
- transform-origin: 0%
- left: 2%
- top: 70%
- font-size: 110%
- font-weight: 700
- color: silver
- entity: sensor.dummy_blank_sensor
- tap_action:
- action: more-info
- double_tap_action: none
- hold_action: none
- prefix: Pools
- - type: custom:bar-card
- severity:
- - color: rgba(0,128,32,0.5)
- from: 0
- to: 80
- - color: rgba(255,215,0,0.5)
- from: 80
- to: 93
- - color: rgba(128,0,0,0.5)
- from: 93
- to: 100
- entity_row: true
- positions:
- icon: "off"
- name: inside
- indicator: "off"
- value: inside
- decimal: 0
- min: 0
- max: 100
- height: 26px
- width: 100%
- direction: right
- tap_action:
- action: more-info
- hold_action: none
- double_tap_action: none
- stack: vertical
- style:
- transform: none
- top: 79%
- left: 2%
- entities:
- - entity: sensor.192_168_13_60_mnt_cache_used_percent
- name: Cache Pool
- - entity: sensor.192_168_13_60_mnt_datapool_used_percent
- name: Data Pool
- card_mod:
- style: |
- :host {
- width: 45%;
- }
- ha-card {
- border: 0px !important;
- box-shadow: none;
- background-color: transparent !important;
- }
- bar-card-card {
- border: 1px solid rgba(255,255,255,0.2);
- border-radius: 0px 9px 9px 0px;
- }
- - type: custom:bar-card
- severity:
- - color: rgba(0,128,32,0.5)
- from: 0
- to: 80
- - color: rgba(255,215,0,0.5)
- from: 80
- to: 93
- - color: rgba(128,0,0,0.5)
- from: 93
- to: 100
- entity_row: true
- positions:
- icon: "off"
- name: inside
- indicator: "off"
- value: inside
- decimal: 0
- min: 0
- max: 100
- height: 26px
- width: 100%
- direction: right
- tap_action:
- action: more-info
- hold_action: none
- double_tap_action: none
- stack: vertical
- style:
- transform: none
- top: 79%
- left: 52%
- entities:
- - entity: sensor.192_168_13_60_mnt_vmpool_used_percent
- name: VM Pool
- - entity: sensor.192_168_13_60_mnt_scratch2hdd_used_percent
- name: Scratch
- card_mod:
- style: |
- :host {
- width: 45%;
- }
- ha-card {
- border: 0px !important;
- box-shadow: none;
- background-color: transparent !important;
- }
- bar-card-card {
- border: 1px solid rgba(255,255,255,0.2);
- border-radius: 0px 9px 9px 0px;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement