Smart Home: Advanced Home Assistant Dashboard Customization with CSS¶
Once you have deployed Home Assistant (e.g. our Zigbee Integration Guide) and connected your sensors, the next step is making that data visually stunning. Home Assistant's default dashboard is functional, but can feel cluttered and basic.
HACS (Home Assistant Community Store) provides access to custom frontend cards. This guide uses layout tools and card-mod to adjust a Home Assistant dashboard.
This guide walks you through: 1. Installing HACS inside a containerized Home Assistant. 2. Installing essential custom dashboard plugins. 3. Adjusting a sensor card with CSS and YAML.
The Design Aesthetic (Glassmorphism UI)¶
Glassmorphism relies on a frosted-glass look, featuring translucent backgrounds, subtle borders, shadows, and background blur:
- background: rgba(255, 255, 255, 0.1)
- backdrop-filter: blur(10px)
- border: 1px solid rgba(255, 255, 255, 0.2)
- box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3)
Step 1: Install HACS (Home Assistant Container Environment)¶
If you are running Home Assistant inside a Docker container on your Raspberry Pi, you need to execute HACS's installer script inside the container's shell.
1. Execute the Installer Script¶
Find the name of your container (usually homeassistant):
Run the HACS downloader script inside the container directory:
2. Restart and Integrate¶
Restart Home Assistant to load the custom component:
- Open Home Assistant Web UI (
http://<your-pi-ip>:8123). - Go to Settings -> Devices & Services -> Add Integration.
- Search for HACS and click to configure.
- Follow the prompt to log in with your GitHub account to authorize API access.
Step 2: Install Essential Frontend Plugins¶
With HACS enabled:
1. Go to HACS -> Frontend in the left navigation sidebar.
2. Click Explore & Download Repositories in the bottom right.
3. Search for and download the following three plugins:
- card-mod: Allows injecting custom CSS styles directly into any Lovelace card.
- button-card: A highly customizable grid-ready button.
- mini-graph-card: Sleek, minimalist graphical sensor charts.
Step 3: Write a Custom CSS Glassmorphism Sensor Card¶
The following card combines a temperature-history chart with CSS blur and layout adjustments.
- On your Dashboard, click the three dots in the top-right -> Edit Dashboard.
- Click + Add Card -> Scroll to the bottom and select Manual.
- Replace the default YAML with the following custom configured dashboard card:
Step 4: Add a Blurred Background Wallpaper¶
To make the translucent card pop, we need a vibrant, dark-themed background wallpaper.
- Click the three dots -> Edit Dashboard.
- Click the three dots again -> Raw Config Editor.
- Under the
views:list, appendbackgroundstyling to your view parameters:
Step 5: Optimization for Wall Tablets (Kiosk Mode)¶
If you plan to mount an old tablet or screen on the wall to act as a smart home controller, you must hide the default Home Assistant header bar and sidebar.
- Install
kiosk-modefrom HACS -> Frontend. - In the Lovelace URL, appending
?kioskwill hide both the header and sidebar, maximizing screen utilization for your custom Glassmorphism panels:http://<your-pi-ip>:8123/lovelace/home?kiosk
Use card-mod and mini-graph-card to adjust layouts and display sensor history. Check the dashboard on the actual screen sizes you plan to use.