You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

313 lines
8.4 KiB

######################################################################
# @CCOSTAN - Follow Me on X
# For more info visit https://www.vcloudinfo.com/click-here
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
# -------------------------------------------------------------------
# Infrastructure Partial - Proxmox
# Runtime/update status with compact one-metric host and VM trends.
# -------------------------------------------------------------------
# Notes: All graphs use 24-hour windows and explicit threshold colors.
# Notes: Host graphs use a compact three-column, 70px plot grid; VM graphs retain their larger detail view.
# Notes: Pending updates remain windowed maintenance signals, not runtime failures.
######################################################################
# -------------------------------------------------------------------
# Host status strip (mandatory first full-width wrapper)
# -------------------------------------------------------------------
- type: grid
column_span: 4
columns: 1
square: false
cards:
- type: custom:layout-card
grid_options:
columns: full
layout_type: custom:grid-layout
layout:
grid-template-columns: repeat(4, minmax(0, 1fr))
grid-auto-flow: row
grid-auto-rows: min-content
grid-gap: 12px
margin: 0
mediaquery:
"(max-width: 900px)":
grid-template-columns: repeat(2, minmax(0, 1fr))
cards:
- type: custom:button-card
template: bearstone_infra_status_kpi
entity: binary_sensor.proxmox1_runtime_healthy
name: Proxmox01 Runtime
icon: mdi:server
variables:
ok_state: 'on'
healthy_text: ONLINE
alert_text: OFFLINE
- type: custom:button-card
template: bearstone_infra_status_kpi
entity: binary_sensor.proxmox02_runtime_healthy
name: Proxmox02 Runtime
icon: mdi:server
variables:
ok_state: 'on'
healthy_text: ONLINE
alert_text: OFFLINE
- type: custom:button-card
template: bearstone_infra_status_kpi
entity: binary_sensor.node_proxmox1_updates_packages
name: Proxmox01 Updates
icon: mdi:package-up
variables:
ok_state: 'off'
healthy_text: CURRENT
alert_text: PENDING
- type: custom:button-card
template: bearstone_infra_status_kpi
entity: binary_sensor.node_proxmox02_updates_packages
name: Proxmox02 Updates
icon: mdi:package-up
variables:
ok_state: 'off'
healthy_text: CURRENT
alert_text: PENDING
# -------------------------------------------------------------------
# Host resource trends
# -------------------------------------------------------------------
- type: grid
column_span: 4
columns: 1
square: false
cards:
- type: custom:layout-card
grid_options:
columns: full
layout_type: custom:grid-layout
layout:
grid-template-columns: repeat(3, minmax(0, 1fr))
grid-auto-flow: dense
grid-auto-rows: min-content
grid-gap: 12px
margin: 0
mediaquery:
"(max-width: 900px)":
grid-template-columns: repeat(2, minmax(0, 1fr))
cards:
- type: custom:mini-graph-card
name: Proxmox01 CPU
icon: mdi:cpu-64-bit
hours_to_show: 24
points_per_hour: 2
line_width: 2
smoothing: true
height: 70
show:
legend: false
labels: false
name: true
icon: true
state: true
color_thresholds:
- value: 0
color: '#43a047'
- value: 60
color: '#f39c12'
- value: 85
color: '#c0392b'
entities:
- entity: sensor.node_proxmox1_cpu_used
name: CPU
card_mod:
style: !include /config/dashboards/infrastructure/card_mod/infra_card.yaml
- type: custom:mini-graph-card
name: Proxmox01 Memory
icon: mdi:memory
hours_to_show: 24
points_per_hour: 2
line_width: 2
smoothing: true
height: 70
show:
legend: false
labels: false
name: true
icon: true
state: true
color_thresholds:
- value: 0
color: '#43a047'
- value: 70
color: '#f39c12'
- value: 90
color: '#c0392b'
entities:
- entity: sensor.node_proxmox1_memory_used_percentage
name: Memory
card_mod:
style: !include /config/dashboards/infrastructure/card_mod/infra_card.yaml
- type: custom:mini-graph-card
name: Proxmox01 Disk
icon: mdi:harddisk
hours_to_show: 24
points_per_hour: 2
line_width: 2
smoothing: true
height: 70
show:
legend: false
labels: false
name: true
icon: true
state: true
color_thresholds:
- value: 0
color: '#43a047'
- value: 70
color: '#f39c12'
- value: 85
color: '#c0392b'
entities:
- entity: sensor.proxmox1_disk_used_percentage
name: Disk
card_mod:
style: !include /config/dashboards/infrastructure/card_mod/infra_card.yaml
- type: custom:mini-graph-card
name: Proxmox02 CPU
icon: mdi:cpu-64-bit
hours_to_show: 24
points_per_hour: 2
line_width: 2
smoothing: true
height: 70
show:
legend: false
labels: false
name: true
icon: true
state: true
color_thresholds:
- value: 0
color: '#43a047'
- value: 60
color: '#f39c12'
- value: 85
color: '#c0392b'
entities:
- entity: sensor.node_proxmox02_cpu_used
name: CPU
card_mod:
style: !include /config/dashboards/infrastructure/card_mod/infra_card.yaml
- type: custom:mini-graph-card
name: Proxmox02 Memory
icon: mdi:memory
hours_to_show: 24
points_per_hour: 2
line_width: 2
smoothing: true
height: 70
show:
legend: false
labels: false
name: true
icon: true
state: true
color_thresholds:
- value: 0
color: '#43a047'
- value: 70
color: '#f39c12'
- value: 90
color: '#c0392b'
entities:
- entity: sensor.node_proxmox02_memory_used_percentage
name: Memory
card_mod:
style: !include /config/dashboards/infrastructure/card_mod/infra_card.yaml
- type: custom:mini-graph-card
name: Proxmox02 Disk
icon: mdi:harddisk
hours_to_show: 24
points_per_hour: 2
line_width: 2
smoothing: true
height: 70
show:
legend: false
labels: false
name: true
icon: true
state: true
color_thresholds:
- value: 0
color: '#43a047'
- value: 70
color: '#f39c12'
- value: 85
color: '#c0392b'
entities:
- entity: sensor.proxmox02_disk_used_percentage
name: Disk
card_mod:
style: !include /config/dashboards/infrastructure/card_mod/infra_card.yaml
# -------------------------------------------------------------------
# VM trends (same-unit series only)
# -------------------------------------------------------------------
- type: grid
column_span: 4
columns: 2
square: false
cards:
- type: custom:mini-graph-card
name: VM CPU Utilization
icon: mdi:chart-line
hours_to_show: 24
points_per_hour: 2
line_width: 2
smoothing: true
show:
legend: true
labels: false
name: true
icon: true
state: false
entities:
- entity: sensor.qemu_docker69_169_cpu_used
name: Docker69
- entity: sensor.qemu_carlo_hass_105_cpu_used
name: Home Assistant
- entity: sensor.qemu_docker2_101_cpu_used
name: Frigate
card_mod:
style: !include /config/dashboards/infrastructure/card_mod/infra_card.yaml
- type: custom:mini-graph-card
name: VM Memory Utilization
icon: mdi:memory
hours_to_show: 24
points_per_hour: 2
line_width: 2
smoothing: true
show:
legend: true
labels: false
name: true
icon: true
state: false
entities:
- entity: sensor.qemu_docker69_169_memory_used_percentage
name: Docker69
- entity: sensor.qemu_carlo_hass_105_memory_used_percentage
name: Home Assistant
- entity: sensor.qemu_docker2_101_memory_used_percentage
name: Frigate
card_mod:
style: !include /config/dashboards/infrastructure/card_mod/infra_card.yaml

Powered by TurnKey Linux.