Skip to content

Commit

Permalink
feat: include additional custom dashboards json files from .storage f…
Browse files Browse the repository at this point in the history
…older
  • Loading branch information
aronnebrivio committed Oct 12, 2024
1 parent d0a8b3b commit 83a3076
Show file tree
Hide file tree
Showing 6 changed files with 1,322 additions and 156 deletions.
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
!*.md

# Ignore folders.
.storage
.storage/*
.cloud
.google.token
.ssh
Expand All @@ -28,3 +28,8 @@ known_devices.yaml

.shopping_list.json
google_calendars.yaml

# Include additional custom lovelace dashboards
!.storage/lovelace_dashboards
!.storage/lovelace.dashboard_test
!.storage/lovelace.lovelace_mushroom
246 changes: 246 additions & 0 deletions .storage/lovelace.dashboard_test
Original file line number Diff line number Diff line change
@@ -0,0 +1,246 @@
{
"version": 1,
"minor_version": 1,
"key": "lovelace.dashboard_test",
"data": {
"config": {
"views": [
{
"theme": "Backend-selected",
"icon": "mdi:desktop-classic",
"path": "pc",
"badges": [],
"cards": [
{
"type": "vertical-stack",
"cards": [
{
"type": "custom:mushroom-title-card",
"title": "Scrivania"
},
{
"type": "horizontal-stack",
"cards": [
{
"type": "custom:mushroom-light-card",
"entity": "light.luce_scrivania",
"icon": "mdi:led-strip-variant",
"tap_action": {
"action": "toggle"
},
"name": "Luce",
"show_brightness_control": true,
"collapsible_controls": true,
"use_light_color": true
}
]
},
{
"type": "horizontal-stack",
"cards": [
{
"type": "custom:mushroom-entity-card",
"entity": "switch.fisso",
"icon": "mdi:desktop-classic",
"tap_action": {
"action": "toggle"
},
"name": "PC",
"icon_color": "green"
},
{
"type": "custom:mushroom-entity-card",
"entity": "switch.casse_pc",
"icon": "mdi:speaker",
"tap_action": {
"action": "toggle"
},
"name": "Casse",
"icon_color": "purple"
}
]
},
{
"type": "horizontal-stack",
"cards": [
{
"type": "custom:mushroom-light-card",
"icon": "",
"tap_action": {
"action": "toggle"
},
"name": "Scheda madre",
"show_brightness_control": true,
"collapsible_controls": true,
"use_light_color": true,
"show_color_control": true,
"show_color_temp_control": false,
"entity": "light.asus_tuf_gaming_b460_plus_0"
},
{
"type": "custom:mushroom-light-card",
"icon": "mdi:led-strip-variant",
"tap_action": {
"action": "toggle"
},
"name": "Led PC",
"show_brightness_control": true,
"collapsible_controls": true,
"use_light_color": true,
"show_color_control": true,
"fill_container": false,
"show_color_temp_control": false,
"entity": "light.nzxt_smart_device_v2_2"
}
]
}
]
},
{
"type": "vertical-stack",
"cards": [
{
"type": "custom:mushroom-title-card",
"title": "🖥️ Fisso"
},
{
"type": "vertical-stack",
"cards": [
{
"type": "custom:mushroom-template-card",
"primary": "CPU",
"secondary": "{{ states('sensor.fisso_cpuload') }} %",
"icon": "mdi:chart-areaspline",
"icon_color": "deep-orange",
"entity": "sensor.fisso_cpuload",
"badge_icon": "",
"tap_action": {
"action": "more-info"
},
"card_mod": {
"style": "{% set ashlvl = states('sensor.fisso_cpuload') | float(0) %}\n{% set ashpercent1 = ashlvl %}\n{% set ashpercent2 = ashpercent1 + 0.1 %}\nha-card {\n background: linear-gradient(90deg, rgb(255,111,34,0.5) {{ ashpercent1 }}%, #1D1D1D {{ ashpercent2 }}%);\n border-color:rgba(52,52,52,1);\n}\n"
}
},
{
"type": "custom:mushroom-template-card",
"primary": "RAM",
"secondary": "{{ states('sensor.fisso_memoryusage') }} %",
"icon": "mdi:memory",
"icon_color": "blue",
"entity": "sensor.fisso_memoryusage",
"badge_icon": "",
"card_mod": {
"style": "{% set ashlvl = states('sensor.fisso_memoryusage') | float(0) %}\n{% set ashpercent1 = ashlvl %}\n{% set ashpercent2 = ashpercent1 + 0.1 %}\nha-card {\n background: linear-gradient(90deg, rgba(33,150,243,0.5) {{ ashpercent1 }}%, #1D1D1D {{ ashpercent2 }}%);\n border-color:rgba(52,52,52,1);\n}\n"
},
"tap_action": {
"action": "more-info"
}
}
]
},
{
"type": "entities",
"entities": [
{
"entity": "sensor.fisso_activewindow",
"name": "Finestra Attiva"
},
{
"entity": "sensor.fisso_currentvolume",
"name": "Volume"
},
{
"entity": "button.fisso_mediamute",
"name": "Mute",
"icon": "mdi:volume-mute"
},
{
"entity": "button.fisso_hibernate",
"name": "Hibernate",
"icon": "mdi:snowflake"
}
]
}
]
},
{
"type": "vertical-stack",
"cards": [
{
"type": "custom:mushroom-title-card",
"title": "💻 Abo"
},
{
"type": "vertical-stack",
"cards": [
{
"type": "custom:mushroom-template-card",
"primary": "CPU",
"secondary": "{{ states('sensor.abo_cpuload') }} %",
"icon": "mdi:chart-areaspline",
"icon_color": "deep-orange",
"entity": "sensor.abo_cpuload",
"badge_icon": "",
"tap_action": {
"action": "more-info"
},
"card_mod": {
"style": "{% set ashlvl = states('sensor.abo_cpuload') | float(0) %}\n{% set ashpercent1 = ashlvl %}\n{% set ashpercent2 = ashpercent1 + 0.1 %}\nha-card {\n background: linear-gradient(90deg, rgb(255,111,34,0.5) {{ ashpercent1 }}%, #1D1D1D {{ ashpercent2 }}%);\n border-color:rgba(52,52,52,1);\n}\n"
}
},
{
"type": "custom:mushroom-template-card",
"primary": "RAM",
"secondary": "{{ states('sensor.abo_memoryusage') }} %",
"icon": "mdi:memory",
"icon_color": "blue",
"entity": "sensor.abo_memoryusage",
"badge_icon": "",
"tap_action": {
"action": "more-info"
},
"card_mod": {
"style": "{% set ashlvl = states('sensor.abo_memoryusage') | float(0) %}\n{% set ashpercent1 = ashlvl %}\n{% set ashpercent2 = ashpercent1 + 0.1 %}\nha-card {\n background: linear-gradient(90deg, rgba(33,150,243,0.5) {{ ashpercent1 }}%, #1D1D1D {{ ashpercent2 }}%);\n border-color:rgba(52,52,52,1);\n}\n"
}
}
]
},
{
"type": "entities",
"entities": [
{
"entity": "sensor.abo_activewindow",
"name": "Finestra attiva"
},
{
"entity": "sensor.abo_battery_charge_remaining_percentage",
"name": "Batteria"
},
{
"entity": "sensor.abo_battery_charge_status",
"name": "In carica"
},
{
"entity": "sensor.abo_audio_default_device_volume",
"name": "Volume"
},
{
"entity": "button.abo_mediamute",
"name": "Mute",
"icon": "mdi:volume-mute"
},
{
"entity": "button.abo_hibernate",
"name": "Hibernate",
"icon": "mdi:snowflake"
}
]
}
]
}
]
}
]
}
}
}
Loading

0 comments on commit 83a3076

Please sign in to comment.