Bubble Card is a minimalist card collection for Home Assistant with a nice pop-up touch.
Bubble Card is a minimalist card collection for Home Assistant with a nice pop-up touch.
Read this in your language (Français, Deutsch, Español, 简体中文, 日本語... and much more)
Bubble Card is a minimalist and customizable card collection for Home Assistant, featuring modern pop-ups and an integrated Module Store with over 100 community-made modules.
Installation Configuration Entity suggestions Pop-up Horizontal buttons stack Button Media player Cover Select Climate Calendar Separator Empty column Sub-buttons only Sub-buttons Card layouts Conditions Actions Styling Templates Modules Localization Help Contributing Donate
Home Assistant lowest supported version: 2023.9.0
Without HACS<config>/www folder. To get the editor in your language, download bubble-card-<lang>.json from the dist folder as well, for example bubble-card-fr.json, and put it next to bubble-card.js (without it the editor stays in English)Edit dashboardManage resourcesAdd resource/local/bubble-card.js?v=1JavaScript Module then CreateAdd card in the bottom right corner and search for Bubble Card/local/bubble-card.js?v=1 and change the version to any higher numberIf it's not working, just try to clear your browser cache.
With HACS (Recommended)This method allows you to get updates directly on the Home Assistant Community Store
Edit dashboardAdd card in the bottom right corner and search for Bubble CardIf it's not working, try to clear your browser/app cache (on all your devices if needed).
You can also take a look at my YouTube channel for step by step videos.
All options can be configured in the Home Assistant editor. But you can find more details and the YAML in the documentation below.
Main options (YAML + description)| Name | Type | Requirement | Supported options | Description |
|---|---|---|---|---|
type |
string | Required | custom:bubble-card |
Type of the card |
card_type |
string | Required | button, calendar, climate, cover, empty-column, horizontal-buttons-stack, media-player, pop-up, select, separator or sub-buttons |
Type of the Bubble Card, see below |
styles |
object list | Optional | Any CSS stylesheets | Allows you to customize your Bubble Card CSS, see styling |
| Variable | Expected value | Description |
|---|---|---|
--bubble-border-radius |
px |
Border radius for all supported elements |
--bubble-main-background-color |
color |
Main background color for all supported elements |
--bubble-secondary-background-color |
color |
Secondary background color for all supported elements |
--bubble-accent-color |
color |
Accent color for all supported elements |
--bubble-icon-border-radius |
px |
Icon border radius for all supported elements |
--bubble-icon-background-color |
color |
Icon background color for all supported elements |
--bubble-sub-button-border-radius |
px |
Border radius for all sub-buttons |
--bubble-sub-button-background-color |
color |
Background color for all sub-buttons |
--bubble-box-shadow |
see box shadow | Box shadow for all supported elements |
--bubble-border |
see border | Border for all supported cards |
Since Home Assistant 2026.6, picking an entity in the card picker offers you a few ready made cards, and Bubble Card adds its own recipes to that list. Pick a light and you are offered a card with a brightness slider, plus a color temperature, a color and a saturation variant when your light supports them. Pick a cover and you get its position slider, pick a media player and you also get a variant with its source list, pick a vacuum and you get its start, pause and dock buttons. Each suggestion is a normal Bubble Card configuration shown as a live preview, so you can take the closest one and keep editing it as usual.
What you are offered depends on what your entity can actually do, a light without a brightness channel gets a toggle instead of a slider, a cover that cannot tilt gets no tilt variant, a climate entity gets its preset modes only when it has some. The classic entries follow below the Bubble Card suggestions when they apply: the card dedicated to that entity type, a plain button and a slider.
[!TIP] Modules can add their own suggestions to that list, see modules.
This card allows you to create a pop-up with any content. Each pop-up is hidden by default and can be opened by targeting its link (e.g. '#pop-up-name'), with any card that supports the navigate action, or with the horizontal buttons stack that is included.
[!TIP]
Pop-up trigger
This feature allows you to open a pop-up based on the state of any entity, for example, you can open a "Security" pop-up with a camera when a person is in front of your house. You can also create a toggle helper (input_boolean) and trigger its opening/closing in an automation.
Opening a pop-up when abinary_sensorisontype: custom:bubble-card card_type: pop-up hash: '#kitchen' name: Security icon: mdi:video trigger_entity: binary_sensor.front_door_motion trigger_state: 'on' trigger_close: trueDifferent ways to close a pop-up
They are many ways to close a pop-up. For instance, you can swipe from the pop-up header to the bottom, by doing a long swipe inside the pop-up to the bottom, by pressing Escape on desktop, by removing the hash in the URL or by simply pressing the close button.
| Name | Type | Requirement | Supported options | Description |
|---|---|---|---|---|
hash |
string | Required | Any unique hash (e.g. '#kitchen') with ' ' |
This is how you will open your pop-up |
popup_style |
string | Optional | bubble (default) or classic |
Define the pop-up visual style |
popup_mode |
string | Optional | default (default), fit-content, centered or adaptive-dialog |
Define the pop-up layout mode |
with_bottom_offset |
boolean | Optional | true or false (default) |
Only used with popup_mode: fit-content or adaptive-dialog. Applies a bottom offset on mobile, useful when your dashboard includes a footer card. |
full_width_on_mobile |
boolean | Optional | true or false (default) |
Only used with popup_mode: centered. Expands the pop-up to full screen width on mobile, useful on smaller displays. |
performance_mode |
string | Optional | default (default) or performance |
Optimize the pop-up open animation. performance slightly delays content rendering and background blur, also disables backdrop blur if set. |
auto_close |
string | Optional | A timeout in milliseconds (e.g. 10000 for 10s) |
Auto close the pop-up after a timeout |
close_on_click |
boolean | Optional | true or false (default) |
Automatically close the pop-up after any interaction |
close_by_clicking_outside |
boolean | Optional | true (default) or false |
Close the pop-up by clicking outside of it |
width_desktop |
string | Optional | Any CSS value | Width on desktop (100% by default on mobile) |
margin |
string | Optional | Any CSS value | Use this only if your pop-up is not well centered on mobile (e.g. 13px) |
margin_top_mobile |
string | Optional | Any CSS value | Top margin on mobile (e.g. -56px if your header is hidden) |
margin_top_desktop |
string | Optional | Any CSS value | Top margin on desktop (e.g. 50vh for a half-sized pop-up or calc(100vh - 400px) for a fixed height of 400px) |
bg_color |
string | Optional | Any hex, rgb or rgba value | The background color of your pop-up (e.g. #ffffff for a white background) |
bg_opacity |
string | Optional | Any value from 0 to 100 |
The background opacity of your pop-up (e.g. 100 for no transparency) |
bg_blur |
string | Optional | Any value from 0 to 100 |
The background blur effect of your pop-up, this only work if bg_opacity is not set to 100 (e.g. 0 for no blur) |
shadow_opacity |
string | Optional | Any value from 0 to 100 |
The shadow opacity of your pop-up (e.g. 0 to hide it) |
hide_backdrop |
boolean | Optional | true or false (default) |
Set this to true on the first pop-up of your main dashboard to disable the backdrop on all pop-ups. |
background_update |
boolean | Optional | true or false (default) |
Update pop-up content in background (not recommended) |
trigger |
object or list | Optional | See conditions | Open this pop-up when the conditions are met |
trigger_entity |
string | Optional | Any entity | Open this pop-up based on the state of any entity, the simple form of trigger |
trigger_state |
string | Optional (Required if trigger_entity is de |
No open issues yet, or sync has not completed.