(Re-) implement Platinum as Mercury

This commit is contained in:
2022-06-22 10:13:25 +03:00
parent c60a7f21c5
commit 7d0fdfaee6
5 changed files with 199 additions and 180 deletions
@@ -29,9 +29,9 @@ cards:
- icon: mdi:desktop-tower - icon: mdi:desktop-tower
- type: custom:decluttering-card - type: custom:decluttering-card
template: platinum_card template: mercury_card
variables: variables:
- title: Platinum - title: Mercury
- icon: mdi:nas - icon: mdi:nas
- type: vertical-stack - type: vertical-stack
@@ -1,112 +1,119 @@
cadmium_card: cadmium_card:
default: v3_xs_button:
- title: - title:
- icon: - icon:
card: card:
type: vertical-stack type: entities
cards: style: |
- type: entities #states > div:last-child {
title: "[[title]]" margin: 0 -16px -16px -16px;
icon: "[[icon]]" }
entities: title: "[[title]]"
- switch.cadmium icon: "[[icon]]"
- type: vertical-stack entities:
- type: custom:hui-vertical-stack-card
cards: cards:
- type: entities
style:
"#states div": |
mini-graph-card {
margin: 0 -15px -15px
}
entities:
- sensor.cadmium_uptime
- sensor.cadmium_idle_time
- type: custom:fold-entity-row
head:
type: custom:decluttering-card
template: percentage_card
variables:
- name: Memory
- entity: sensor.cadmium_memory_used_percent
- icon: mdi:memory
- orange: 70
- red: 85
entities:
- entity: sensor.cadmium_memory_used
name: Memory used
- entity: sensor.cadmium_memory_available
name: Memory available
- entity: sensor.cadmium_memory_total
name: Memory total
- type: custom:fold-entity-row
head:
type: custom:decluttering-card
template: percentage_card
variables:
- name: "C: Drive"
- entity: sensor.cadmium_c_usage
- icon: mdi:harddisk
- orange: 70
- red: 85
entities:
- entity: sensor.cadmium_c_used_space
name: "C: Drive used"
- entity: sensor.cadmium_c_free_space
name: "C: Drive available"
- entity: sensor.cadmium_c_total_space
name: "C: Drive total"
- type: custom:mini-graph-card
align_state: left
entities:
- color: var(--accent-color)
entity: sensor.cadmium_cpu_usage
- color: green
entity: sensor.cadmium_memory_used_percent
points_per_hour: 1
line_width: 3
hour24: true
hours_to_show: 24
group_by: hour
show:
fill: fade
icon: true
name: true
state: true
name_adaptive_color: false
labels: hover
legend: false
tap_action:
action: none
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:button-card - type: custom:button-card
template: default template: v3_xs_button
entity: switch.cadmium
name: Power
- type: custom:button-card
template: v3_xs_button
entity: script.cadmium_lock entity: script.cadmium_lock
name: Lock name: Lock
icon: mdi:lock icon: mdi:lock
tap_action: tap_action:
action: toggle action: toggle
- type: custom:button-card - type: custom:button-card
template: default template: v3_xs_button
entity: script.cadmium_displays_on entity: script.cadmium_displays_on
name: Displays on name: Displ. on
icon: mdi:monitor-dashboard icon: mdi:monitor-dashboard
tap_action: tap_action:
action: toggle action: toggle
- type: custom:button-card - type: custom:button-card
template: default template: v3_xs_button
entity: script.cadmium_displays_off entity: script.cadmium_displays_off
name: Displays off name: Displ. off
icon: mdi:monitor-off icon: mdi:monitor-off
tap_action: tap_action:
action: toggle action: toggle
- type: custom:button-card - type: custom:button-card
template: default template: v3_xs_button
entity: script.cadmium_refresh entity: script.cadmium_refresh
name: Refresh name: Refresh
icon: mdi:refresh icon: mdi:refresh
tap_action: tap_action:
action: toggle action: toggle
- type: vertical-stack
cards:
- type: entities
style:
"#states div": |
mini-graph-card {
margin: 0 -15px -15px
}
entities:
- sensor.cadmium_uptime
- sensor.cadmium_idle_time
- type: custom:fold-entity-row
head:
type: custom:decluttering-card
template: percentage_card
variables:
- name: Memory
- entity: sensor.cadmium_memory_used_percent
- icon: mdi:memory
- orange: 70
- red: 85
entities:
- entity: sensor.cadmium_memory_used
name: Memory used
- entity: sensor.cadmium_memory_available
name: Memory available
- entity: sensor.cadmium_memory_total
name: Memory total
- type: custom:fold-entity-row
head:
type: custom:decluttering-card
template: percentage_card
variables:
- name: "C: Drive"
- entity: sensor.cadmium_c_usage
- icon: mdi:harddisk
- orange: 70
- red: 85
entities:
- entity: sensor.cadmium_c_used_space
name: "C: Drive used"
- entity: sensor.cadmium_c_free_space
name: "C: Drive available"
- entity: sensor.cadmium_c_total_space
name: "C: Drive total"
- type: custom:mini-graph-card
align_state: left
entities:
- color: var(--accent-color)
entity: sensor.cadmium_cpu_usage
- color: green
entity: sensor.cadmium_memory_used_percent
points_per_hour: 1
line_width: 3
hour24: true
hours_to_show: 24
group_by: hour
show:
fill: fade
icon: true
name: true
state: true
name_adaptive_color: false
labels: hover
legend: false
tap_action:
action: none
@@ -1,7 +1,6 @@
platinum_card: mercury_card:
default: default:
- title: - title:
- icon:
card: card:
type: entities type: entities
style: | style: |
@@ -11,34 +10,45 @@ platinum_card:
title: "[[title]]" title: "[[title]]"
icon: "[[icon]]" icon: "[[icon]]"
entities: entities:
- type: custom:template-entity-row - type: custom:hui-horizontal-stack-card
name: Open admin UI cards:
icon: mdi:firefox - type: custom:button-card
tap_action: template: v3_xs_button
action: url entity: switch.cadmium
url_path: http://platinum.lan:5000 icon: mdi:firefox
name: "Open UI"
tap_action:
action: url
url_path: https://home.gar.dev
- type: custom:button-card
template: v3_xs_button
entity: update.mercury_dsm_update
name: Update?
- type: custom:button-card
template: v3_xs_button
entity: button.mercury_reboot
name: Reboot
- type: custom:button-card
template: v3_xs_button
entity: button.mercury_shutdown
name: Shutdown
- type: custom:fold-entity-row - type: custom:fold-entity-row
head: head:
type: custom:decluttering-card type: custom:decluttering-card
template: percentage_card template: percentage_card
variables: variables:
- name: CPU - name: CPU
- entity: sensor.synology_cpu_load_total - entity: sensor.mercury_cpu_utilization_total
- icon: mdi:chip - icon: mdi:chip
- orange: 40 - orange: 40
- red: 60 - red: 60
entities: entities:
- entity: sensor.synology_cpu_load_system - entity: sensor.mercury_cpu_utilization_user
name: CPU load (System)
- entity: sensor.synology_cpu_load_user
name: CPU load (User) name: CPU load (User)
- entity: sensor.synology_cpu_load_other - entity: sensor.mercury_cpu_load_average_5_min
name: CPU load (Other)
- entity: sensor.synology_cpu_load_1_min
name: CPU load (1 min)
- entity: sensor.synology_cpu_load_5_min
name: CPU load (5 min) name: CPU load (5 min)
- entity: sensor.synology_cpu_load_15_min - entity: sensor.mercury_cpu_load_average_15_min
name: CPU load (15 min) name: CPU load (15 min)
- type: custom:fold-entity-row - type: custom:fold-entity-row
@@ -47,22 +57,18 @@ platinum_card:
template: percentage_card template: percentage_card
variables: variables:
- name: Memory - name: Memory
- entity: sensor.synology_memory_usage_real - entity: sensor.mercury_memory_usage_real
- icon: mdi:memory - icon: mdi:memory
- orange: 70 - orange: 70
- red: 85 - red: 85
entities: entities:
- entity: sensor.synology_memory_cached - entity: sensor.mercury_memory_available_real
name: Memory cached
- entity: sensor.synology_memory_size
name: Memory size
- entity: sensor.synology_memory_available_real
name: Memory available (Real) name: Memory available (Real)
- entity: sensor.synology_memory_total_real - entity: sensor.mercury_memory_total_real
name: Memory total (Real) name: Memory total (Real)
- entity: sensor.synology_memory_available_swap - entity: sensor.mercury_memory_available_swap
name: Memory available (Swap) name: Memory available (Swap)
- entity: sensor.synology_memory_total_swap - entity: sensor.mercury_memory_total_swap
name: Memory total (Swap) name: Memory total (Swap)
- type: custom:fold-entity-row - type: custom:fold-entity-row
@@ -71,90 +77,80 @@ platinum_card:
template: percentage_card template: percentage_card
variables: variables:
- name: Volume 1 - name: Volume 1
- entity: sensor.synology_volume_used_volume_1 - entity: sensor.mercury_volume_1_volume_used
- icon: mdi:harddisk - icon: mdi:harddisk
- orange: 85 - orange: 85
- red: 90 - red: 90
entities: entities:
- entity: sensor.synology_average_disk_temp_volume_1 - entity: sensor.mercury_volume_1_status
name: Status
- entity: sensor.mercury_volume_1_average_disk_temp
name: Average temperature name: Average temperature
- entity: sensor.synology_maximum_disk_temp_volume_1 - entity: sensor.mercury_volume_1_used_space
name: Maximum temperature
- entity: sensor.synology_used_space_volume_1
name: Used space name: Used space
- entity: sensor.synology_total_size_volume_1
name: Total size
- type: custom:fold-entity-row - type: custom:fold-entity-row
head: head:
type: custom:decluttering-card entity: sensor.mercury_drive_1_status
template: percentage_card name: Drive 1
variables:
- name: Volume 2
- entity: sensor.synology_volume_used_volume_2
- icon: mdi:harddisk
- orange: 85
- red: 90
entities: entities:
- entity: sensor.synology_average_disk_temp_volume_2 - entity: sensor.mercury_drive_1_temperature
name: Average temperature name: Temperature
- entity: sensor.synology_maximum_disk_temp_volume_2 - entity: binary_sensor.mercury_drive_1_below_min_remaining_life
name: Maximum temperature name: Below minimum remaining life
- entity: sensor.synology_used_space_volume_2 - entity: binary_sensor.mercury_drive_1_exceeded_max_bad_sectors
name: Used space name: Exceeded max bad sectors
- entity: sensor.synology_total_size_volume_2 - type: custom:fold-entity-row
name: Total size head:
entity: sensor.mercury_drive_2_status
name: Drive 2
entities:
- entity: sensor.mercury_drive_2_temperature
name: Temperature
- entity: binary_sensor.mercury_drive_2_below_min_remaining_life
name: Below minimum remaining life
- entity: binary_sensor.mercury_drive_2_exceeded_max_bad_sectors
name: Exceeded max bad sectors
- type: custom:fold-entity-row
head:
entity: sensor.mercury_drive_3_status
name: Drive 3
entities:
- entity: sensor.mercury_drive_3_temperature
name: Temperature
- entity: binary_sensor.mercury_drive_3_below_min_remaining_life
name: Below minimum remaining life
- entity: binary_sensor.mercury_drive_3_exceeded_max_bad_sectors
name: Exceeded max bad sectors
- type: custom:fold-entity-row
head:
entity: sensor.mercury_drive_4_status
name: Drive 4
entities:
- entity: sensor.mercury_drive_4_temperature
name: Temperature
- entity: binary_sensor.mercury_drive_4_below_min_remaining_life
name: Below minimum remaining life
- entity: binary_sensor.mercury_drive_4_exceeded_max_bad_sectors
name: Exceeded max bad sectors
- type: custom:fold-entity-row - type: custom:fold-entity-row
head: head:
entity: sensor.synology_status_sda entity: sensor.mercury_cache_device_1_status
name: /sda name: Cache
entities: entities:
- entity: sensor.synology_temperature_sda - entity: sensor.mercury_cache_device_1_temperature
name: Temperature name: Temperature
- entity: sensor.synology_below_min_remaining_life_sda - entity: binary_sensor.mercury_cache_device_1_below_min_remaining_life
name: Below minimum remaining life name: Below minimum remaining life
- entity: sensor.synology_exceeded_max_bad_sectors_sda - entity: binary_sensor.mercury_cache_device_1_exceeded_max_bad_sectors
name: Exceeded max bad sectors
- type: custom:fold-entity-row
head:
entity: sensor.synology_status_sdb
name: /sdb
entities:
- entity: sensor.synology_temperature_sdb
name: Temperature
- entity: sensor.synology_below_min_remaining_life_sdb
name: Below minimum remaining life
- entity: sensor.synology_exceeded_max_bad_sectors_sdb
name: Exceeded max bad sectors
- type: custom:fold-entity-row
head:
entity: sensor.synology_status_sdc
name: /sdc
entities:
- entity: sensor.synology_temperature_sdc
name: Temperature
- entity: sensor.synology_below_min_remaining_life_sdc
name: Below minimum remaining life
- entity: sensor.synology_exceeded_max_bad_sectors_sdc
name: Exceeded max bad sectors
- type: custom:fold-entity-row
head:
entity: sensor.synology_status_sdd
name: /sdd
entities:
- entity: sensor.synology_temperature_sdd
name: Temperature
- entity: sensor.synology_below_min_remaining_life_sdd
name: Below minimum remaining life
- entity: sensor.synology_exceeded_max_bad_sectors_sdd
name: Exceeded max bad sectors name: Exceeded max bad sectors
- type: custom:hui-horizontal-stack-card - type: custom:hui-horizontal-stack-card
cards: cards:
- type: entities - type: entities
entities: entities:
- entity: sensor.synology_network_down - entity: sensor.mercury_download_throughput
name: Down name: Down
style: | style: |
:host { :host {
@@ -183,7 +179,7 @@ platinum_card:
} }
- type: entities - type: entities
entities: entities:
- entity: sensor.synology_network_up - entity: sensor.mercury_upload_throughput
name: Up name: Up
style: | style: |
:host { :host {
@@ -195,9 +191,9 @@ platinum_card:
align_state: left align_state: left
entities: entities:
- color: var(--accent-color) - color: var(--accent-color)
entity: sensor.synology_network_up entity: sensor.mercury_upload_throughput
- color: green - color: green
entity: sensor.synology_network_down entity: sensor.mercury_download_throughput
group: false group: false
points_per_hour: 1 points_per_hour: 1
line_width: 3 line_width: 3
@@ -61,3 +61,16 @@
service: input_select.select_next service: input_select.select_next
service_data: service_data:
entity_id: input_select.guest_bedroom_mode entity_id: input_select.guest_bedroom_mode
- type: custom:decluttering-card
template: v3_section_title
variables:
- title: Devices
- type: horizontal-stack
cards:
- type: custom:button-card
template: v3_button
entity: sensor.mercury_temperature
name: Mercury
icon: mdi:nas
+6 -3
View File
@@ -49,11 +49,12 @@ group.hallway_motion:
entities: entities:
- entity: sensor.hallway_motion_illuminance - entity: sensor.hallway_motion_illuminance
sensor.synology_type_volume_1: sensor.mercury_temperature:
title: Platinum title: Mercury
card: card:
type: custom:decluttering-card type: custom:decluttering-card
template: platinum_card template: mercury_card
media_player.living_room: media_player.living_room:
title: Living room Sonos title: Living room Sonos
@@ -423,6 +424,8 @@ switch.cadmium:
card: card:
type: custom:decluttering-card type: custom:decluttering-card
template: cadmium_card template: cadmium_card
variables:
- title: ''
sensor.fast_com_download: sensor.fast_com_download:
title: Network Speed title: Network Speed