ludbA
(ludbA)
January 8, 2026, 5:31pm
2
Where do I place this exactly in the dashboard yaml? Is it at the same level as the โviewsโ element - I tried adding the sidebar there and it does not appear (reloaded config as well).
My dashboard is constructed with โsectionsโ.
1 Like
Bobsilvio
(Silvio)
January 9, 2026, 12:10pm
4
New Header Push/Flip mode for show original TopBar
insert this code for show/hide bar in leftMenu/centerMenu/rightMenu or headerMenu
icon: mdi:application
name: Top bar
action: toggle-topmenu
or
action: service-js
name: โTop Menuโ
icon: mdi:swap-vertical
service: |
if (window.silvioFlipTopMenu) {
window.silvioFlipTopMenu();
}
Header Flip Mode
Header Push Mode
Bobsilvio
(Silvio)
January 9, 2026, 12:14pm
5
ludbA:
Where do I place this exactly in the dashboard yaml? Is it at the same level as the โviewsโ element - I tried adding the sidebar there and it does not appear (reloaded config as well).
My dashboard is constructed with โsectionsโ.
You have a yaml? or use default Homeassistant dashboard
if use original Ha lovelace useโฆ
Dashboard โ โฎ (menu) โ Modifica dashboard โ โฎ โ Editor configurazione raw (Raw configuration editor)
title: XXX
sidebar:
enabled: true
โฆ
header:
enabled: true
topMenuMode: push
โฆ
views:
Did this, sidebar does not show up (added a title and digitalclock)
I removed sidebar-card.js from the ressources again as my HA became slow and partialy unresponsive after the addition.
use a minimal config, see folder example in github:
sidebar:
title: "Casa"
debug: false # se true, log in console
width:
mobile: 0 # % (0 = nascosta)
tablet: 16
desktop: 16
breakpoints:
mobile: 767 # max width "mobile"
tablet: 1624 # max width "tablet"
hideTopMenu: false # nasconde la top bar originale HA
showTopMenuOnMobile: false # MA la rimette visibile su mobile (width <= mobile)
hideHassSidebar: true # nasconde la sidebar standard di HA
clock: true # analogico
digitalClock: false # orologio digitale
digitalClockWithSeconds: false
twelveHourVersion: false # 12h (AM/PM) se true
period: false # mostra โAM/PMโ (solo se 12h)
# Data
date: true # mostra la data
dateFormat: "DD MMMM" # formato moment.js (default: "DD MMMM")
#Menu
menuStyle: wide # list | wide | buttons | grid
showLabel: false # per "buttons" e "grid"
hideOnPath:
- "/config"
- "/profile/general"
# โโ Testo in alto (saluto, settimana, meteo) โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
template: |
<li style="margin-top:6px;">
{% if now().hour < 12 %} Buongiorno โ
{% elif now().hour < 19 %} Buon pomeriggio ๐
{% else %} Buonasera ๐{% endif %}
</li>
<li>Settimana {{ now().isocalendar()[1] }}</li>
<li>
{% set wx = 'weather.forecast_casa' %}
โ๏ธ {{ states(wx) }} ยท {{ state_attr(wx,'temperature') }}ยฐC ยท {{ state_attr(wx,'humidity') }}%
</li>
# โโ Menu laterale (link viste + refresh) โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
style: |
.sidebar-inner {
background: transparent !important;
box-shadow: none !important;
}
:host {
--sidebar-background: transparent !important;
backdrop-filter: blur(0px) !important; /* opzionale */
/* ============================================================
* ๐จ SEZIONE WIDE (Rettangolare icona + testo)
* ============================================================ */
--sidebar-wide-margin-y: 16px;
--sidebar-wide-gap: 8px;
--sidebar-wide-padding-x: 14px;
--sidebar-wide-height: 48px;
--sidebar-wide-radius: 18px;
--sidebar-wide-item-gap: 10px;
--sidebar-wide-bg: rgba(255,255,255,0.18);
--sidebar-wide-icon-color: #000000;
--sidebar-wide-icon-size: 22px;
--sidebar-wide-font-size: 14px;
--sidebar-wide-line-height: 1.2;
--sidebar-wide-text-color: #111111;
--sidebar-wide-font-weight: 500;
/* Stato attivo */
--sidebar-wide-active-border-width: 0px;
--sidebar-wide-active-border-color: transparent;
--sidebar-wide-active-bg: rgba(0,0,0,1);
--sidebar-wide-active-opacity: 0.14;
--sidebar-wide-active-icon-color: rgb(247,217,89);
--sidebar-wide-active-icon-size: 26px;
--sidebar-wide-active-text-color: #111111;
/* ============================================================
* ๐ฅ SEZIONE BUTTONS (quadrato + icona, label opzionale)
* ============================================================ */
--sidebar-button-margin-y: 16px;
--sidebar-button-gap: 8px;
--sidebar-button-item-gap: 10px;
--sidebar-button-size: 56px;
--sidebar-button-box-size: 56px;
--sidebar-button-radius: 18px;
--sidebar-button-bg: rgba(255,255,255,0.18);
--sidebar-button-icon-color: var(--white);
--sidebar-button-icon-size: 28px;
--sidebar-button-font-size: 13px;
--sidebar-button-line-height: 1.2;
--sidebar-button-text-color: var(--white);
--sidebar-button-font-weight: 500;
/* Stato attivo */
--sidebar-button-active-border-width: 3px;
--sidebar-button-active-border-color: #ffffff;
--sidebar-button-active-shadow-color: rgba(0,0,0,0.18);
--sidebar-button-active-icon-color: rgb(247,217,89);
--sidebar-button-active-text-color: var(--green, #000);
/* ============================================================
* ๐ฆ SEZIONE GRID (stile iPhone โ icona sopra, testo sotto)
* ============================================================ */
--sidebar-grid-margin-y: 14px;
--sidebar-grid-gap: 12px;
--sidebar-grid-item-padding: 4px;
--sidebar-grid-box-size: 52px;
--sidebar-grid-radius: 22px;
--sidebar-grid-bg: rgba(255,255,255,0.15);
--sidebar-grid-icon-size: 30px;
--sidebar-grid-icon-color: #000000;
--sidebar-grid-label-margin-top: 6px;
--sidebar-grid-font-size: 14px;
--sidebar-grid-line-height: 1.2;
--sidebar-grid-font-weight: 300;
--sidebar-grid-text-color: var(--white, #000);
/* Stato attivo */
--sidebar-grid-active-border: rgba(255,255,255,0.7);
--sidebar-grid-active-bg: rgba(255,255,255,0.25);
--sidebar-grid-active-icon-color: var(--white);
--sidebar-grid-active-text-color: var(--green, #000);
--sidebar-grid-columns: 3;
--sidebar-grid-rows: 10;
--sidebar-grid-row-height: 110px;
/* ============================================================
* ๐ SEZIONE COMUNI (fallback generali)
* ============================================================ */
--sidebar-selected-bg: rgba(0,0,0,1);
--sidebar-icon-color: #000000;
--primary-text-color: #000000;
}
/* --- DIMENSIONE ORARIO --- */
.digitalClock {
font-size: 40px !important;
line-height: 1 !important;
}
.digitalClock.with-seconds {
font-size: 48px !important;
line-height: 1 !important;
}
/* --- DIMENSIONE DATA --- */
.date {
font-size: 20px !important;
font-weight: 400 !important;
margin-top: 4px !important;
line-height: 1.2 !important;
#customSidebar {
max-height: none !important;
height: auto !important;
overflow-y: visible !important;
}
}
sidebarMenu:
- action: navigate # Home
navigation_path: "/xxxxhome"
name: "Home"
icon: mdi:home
background_color: "var(--blue)"
icon_color: "var(--black)"
- action: navigate # Tapparelle
navigation_path: "/xxxx/tapparelle"
name: "Tapparelle"
icon: mdi:blinds
background_color: "var(--yellow)"
icon_color: "var(--black)"
- action: toggle-sidebar
icon: mdi:menu
name: "Menu"
background_color: "var(--grey)"
icon_color: "var(--black)"
- icon: mdi:application
name: Top bar
action: toggle-topmenu
background_color: "var(--lime)"
icon_color: "var(--black)"
Thanks. Re-installed it via HACS custom repo and itโs working now.
1 Like
ludbA
(ludbA)
January 12, 2026, 2:44pm
9
Got it working eventuallyโฆ One ask - sidebar has many items in it, and it develops its own vertical scroll bar on smaller screens. Is there a way to force it not to have a scroll bar and render fully?
Bobsilvio
(Silvio)
January 13, 2026, 8:56am
10
Yes, use style and height
style: |
:host {
height: auto !important; # or 100px 200px
max-height: none !important;
}
#customSidebar {
height: auto !important;
max-height: none !important;
overflow: visible !important;
}
.sidebar-inner,
.sidebar-content,
.sidebar-menu {
overflow: visible !important;
max-height: none !important;
}