Bubble Card is a minimalist and customizable card collection for Home Assistant with a nice pop-up touch.
Installation
Home Assistant lowest supported version: 2023.9.0
Without HACS
- Download these files: bubble-card.js and bubble-pop-up-fix.js
- Add these files to your
<config>/www
folder - On your dashboard click on the icon at the right top corner then on
Edit dashboard
- Click again on that icon and then click on
Manage resources
- Click on
Add resource
- Copy and paste this:
/local/bubble-card.js?v=1
- Click on
JavaScript Module
thenCreate
- Go back and refresh your page
- You can now click on
Add card
in the bottom right corner and search forBubble Card
- After any update of the file you will have to edit
/local/bubble-card.js?v=1
and change the version to any higher number
If it’s not working, just try to clear your browser cache.`
With HACS (Recommended)
This method allows you to get updates directly on the HACS main page
- If HACS is not installed yet, download it following the instructions on https://hacs.xyz/docs/setup/download
- Proceed to the HACS initial configuration following the instructions on https://hacs.xyz/docs/configuration/basic
- On your sidebar go to
HACS
>Frontend
- Click on the
+
button at the bottom right corner - Now search for
Bubble Card
and then click on the button at the bottom right corner to download it - Go back on your dashboard and click on the icon at the right top corner then on
Edit dashboard
- You can now click on
Add card
in the bottom right corner and search forBubble Card
If it’s not working, try to clear your browser cache.
Videos
There is also a detailed setup video from BeardedTinker, thank you so much to you!
YouTube - Pop-up cards with Bubble Card in Home Assistant
And also a video for the German users from smart-live.net, thanks a lot to you too!
YouTube - Home Assistant Dashboard Bubble Card - Eine der Besten Karten 2023?
Configuration
All options can be configured in the Home Assistant editor. But you can find a lot more details, examples and the YAML in the documentation on GitHub.
Pop-up
This card allows you to convert any vertical stack into a pop-up. 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.
Horizontal buttons stack
This card is a good companion to the pop-up card, allowing you to open the corresponding pop-ups. It also allows you to open any page of your dashboard. In addition, you can add your motion/occupancy sensors so that the order of the buttons adapts according to the room you just entered. This card is scrollable, remains visible, and acts as a footer.
Button
This card allows you to control your entities and can be customized in many ways. To access color / control of an entity, simply tap on the icon.
Media player
This card allows you to control a media player. You can tap on the icon to get more control.
Cover
This card allows you to control your covers.
Separator
This card is a simple separator for dividing your pop-up into categories / sections. e.g. Lights, Devices, Covers, Settings, Automations…
Empty column
This card is here to fill an empty column. This is useful if you have an horizontal-stack
in your pop-up with only one card. Take a look at the bottom right corner of this screenshot to (not) see it.
Sub-buttons
In every cards that supports that option you can add sub-buttons to customize your cards even more. You can for exemple create a button that can control a vacuum, a weather card or almost anything that you can come up with. These sub-buttons supports the tap actions and most of the button options.
Card layouts
Bubble Card fully supports the Home Assistant section view, you can change the card layout to make the card bigger and also change the number of columns or rows the card should occupy in your section view (only on the cards that support that option). These layouts are also supported in all other view types.
Tap, double tap and hold actions
You can also use Home Assistant default tap actions, double tap actions and hold actions on the cards that supports this option. For example, this allows you to display the “more info” window by holding a button icon or running a service when a sub-button is pressed.
Styling
You can add custom styles in the editor or by adding styles: |
in YAML without using card-mod which allows you to modify the CSS style of all the cards.
Templates
Advanced users can add templates in JS directly in their custom styles (Bubble Card doesn’t support Jinja templates). For example, this allows you to dynamically change an icon, the name or the color of an element, to show or hide an element conditionnaly (like a sub-button), or almost anything based on a state, an attribute and more.
Help
Feel free to open an issue if something is not working as expected.
Got questions or thoughts about Bubble Card? Want to share your dashboards or discoveries? You can do that here on the Home Assistant forum, on the Bubble Card subreddit or on the GitHub Discussions section.
Donate
I dedicate most of my spare time to making this project the best it can be. So if you appreciate my work, any donation would be a great way to show your support
Thank you everyone for your support, you all are my greatest motivation!