hazymorning/origami
À propos
Un tableau de bord Home Assistant
Autres projetsProgression mesurée des étoiles
- in 24h
- +2
- in 7 days
- +10
- in 15 days
- +27
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
Original◪ Origami
This is the documentation of a personal Home Assistant dashboard and its parts, built around the wonderful Bubble Card. After many years of fussing over small details, it suddenly just felt right.
[!NOTE] Setting this up takes a while. It tries to work with Home Assistant, not around it or on top of it. This means most parts need a module, a helper or a script next to the card, and each part's README lists them. How Origami is built explains this further.
Get started · Home view · Pop-ups · More
Get started
The theme, the font and Bubble Card come first.
Install the theme
Colors, sizes and shadows for light and dark mode.
If themes from the
themesfolder don't load yet, add these lines toconfiguration.yamland restart Home Assistant. Iffrontend:is already there, add only thethemesline under it.frontend: themes: !include_dir_merge_named themesOpen the Marketplace and select Add from link. Enter
hazymorning/origamiand select Add. The first time, the Marketplace asks to connect GitHub. Then open Origami and select Install.Pick Origami under Theme in the user profile.
Light and dark. The theme and the weather card match the phone's light or dark mode. Most phones change it at sunrise and sunset. For light or dark all day, choose Light or Dark next to the theme in the user profile.
Add the font
The font is Montserrat.
Open Resources and select Add resource.
Paste this URL, choose Stylesheet and select Create.
https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700&display=swapReload the page.
To load the font from Home Assistant instead of Google, copy www/fonts to /config/www/fonts and use /local/fonts/montserrat.css as the URL.
Install Bubble Card
Most of Origami is made with the wonderful Bubble Card by Clooos. It needs version 3.4 or later, and Bubble Card Tools to add the modules.
Install Bubble Card and Bubble Card Tools in the Marketplace, or update them if they're already there.
Open Bubble Card in the Marketplace · Open Bubble Card Tools in the Marketplace
If Bubble Card Tools isn't set up yet, add it as an integration. Then reload the page.
Add a module
Start with Base, since every module needs it.
- Open the module in
bubble_card/modulesand select Copy raw file. - Open the editor of any Bubble card, or of a new one under Add card. Go to Modules, then My Modules, and select Import from YAML.
- Paste the module and save.
To add all modules, copy the bubble_card/modules folder to /config/bubble_card/modules and reload the page. The module reference has every module's options.
Add a card or pop-up
- Edit the dashboard and select Add card.
- Choose Manual, paste the file's contents and select Save.
A pop-up is hidden until a button opens it with Navigate to its hash, like #popup_server. Both need to be in the same view. The parts are made for a Sections view.
Arrange the view
On a tablet or computer, a Sections view puts its sections side by side, as many as fit. A phone stacks them one under the other. One way to create a dashboard for larger screens is to keep the mobile page's cards together in the first section and place cards meant for wider screens in the following sections. Max sections side by side, in the view's settings, sets how many can be next to each other. Pop-ups open in the middle of a wider screen.
Home view

From top to bottom:
- Greeting and notifications. A greeting for the time of day, the next event and anything that needs attention.
- Weather. A landscape that changes with the weather and shows the next days on a tap.
- Favorites. Everyday shortcuts, and timers or devices that are running.
- Rooms. How each room is doing, and the way into its pop-up.
- Climate table. All rooms side by side, to see where it's too warm, too cold or a window is open.
- Navigation bar. The most used pop-ups at the bottom of the screen, with the music that's playing above them.
Menu

Hides Home Assistant's header, with a menu in its place if wanted. This needs the Origami Header card, since Home Assistant has no proper way to do it yet. More
Pop-ups
Room

A pop-up for each room, built from blocks for its media, lights, climate and plugs. More
Climate

Every room's climate in one place, with the windows, the heating and the last day. More
Lights

Every lamp and scene in the home, and one key that turns on the scene for the time of day or turns everything off. More
Music

One music card for all speakers, playing alone or as a group. More
TV

The TV's remote on the phone. More
Fan

A fan's controls, with a timer that turns it off later. More
Favorites list

Quick access to favorites: other pop-ups, devices, anything really. More
Server

A look at the server's health, backups and updates. More
Vacuum

Cleaning for the whole home or a single room. More
More
How Origami is built
Bubble Card does the layout, the actions, the pop-ups and the editor. Each part uses the first of these that works:
- Bubble Card's card types and options.
- An Origami module, for a look or behavior that Bubble Card doesn't have.
- A template in the card instead of a template sensor, for a value the card can work out itself.
- Home Assistant's helpers and scripts, for what a card can't do alone, like the fan's timer or a thermostat's steps. Scripts get their entities from the card and work in any home without edits.
- A custom card, only for a gap nothing else fills, like Origami Weather, Origami Notifications and Origami Header.
Change the colors
- Copy
themes/origami.yamlto/config/themesunder a new name, likemy-origami.yaml. - In the copy, rename
Origami:at the top, then change the colors. The comments in the file say what each group of settings does. - Run
frontend.reload_themesand select the new theme in the user profile.
A few lines are usually enough. For the accent, change primary-color and accent-color in each mode. radius-ratio sets how round the controls are. A state color is for one kind of device, like state-light-active-color: var(--orange-color). Leave the original file alone, since an update replaces it.
Troubleshooting
- Origami isn't in the theme list. Add the
themesline from Get started toconfiguration.yamland restart Home Assistant. - The Marketplace can't find Origami. Origami isn't in its catalog. Add it with Add from link, as under Get started.
- A card says "Custom element doesn't exist". Install the card in the Marketplace and reload the page. In the Companion app, select Reset frontend cache in the app settings.
- The font doesn't change. Check that the stylesheet is under Resources, then reload the page.
- A Bubble card looks plain. Check that Bubble Card Tools is added as an integration and that the card's modules are under Modules, then My Modules. Then reload the page.
- A tap doesn't open a pop-up. The pop-up has to be in the same view as the button, with a
hashthat matches the button's navigation path, like#popup_tv. - The header and its edit button are gone. The menu hides them. Edit in the menu, or
?edit=1at the end of the address, opens edit mode.
Using an AI assistant
Many details look like they could be simpler, e.g. a value worked out in the card instead of a template sensor, a mini pop-up instead of a helper, or a size from the theme instead of the card. Most of them came from a lot of trial and error on real phones. An assistant doesn't know that history. Where it has to guess, it often undoes one of these choices without noticing.
- Hand it the part's files, not a link or a screenshot. It only knows what it reads, and a screenshot shows the look but not the options.
- Have it read the part's README and the module reference first. Otherwise it makes up options that the modules don't have.
- Ask it to build in the order under How Origami is built. Then the part still fits the rest after an update. No card-mod. It writes over the same styles as the modules, and the two get in each other's way.
- Give it the real entity IDs. It can't see Home Assistant and makes up any ID it doesn't get.
- Keep a copy of the configuration before pasting anything.
Status
The idea behind Origami was always to use what's already there, Bubble Card, a few modules and Home Assistant's own helpers, and put it together like Lego. That's more fiddly to set up, but in return almost anything can be changed.
And that's where it is now. Origami is more or less finished and has all the pieces to build whatever dashboard someone has in mind. There probably won't be any big changes anymore, but who knows 🙂
Explorer des projets similaires
Chargement…