- Автор
- hazymorning
- Размер
- 39.5 MB
- Звёзды
- 580
- Обновлён
- КоммитNov 13РелизV3.0Nov 08
- Возраст
- 4 мес
- Коммиты · 90 дней
README проекта с github.com/hazymorning/origami. Одним файлом markdown: README.md.
This is the documentation of a personal Home Assistant dashboard and its parts, built around Bubble Card. After many years of fussing over small details, it suddenly just felt right. Most of it was made by hand on a phone, so it's mainly meant for phones.
If just one person used it, it would probably look and work differently. But others in the house use it too, and they shouldn't have to ask how anything works, so the whole thing is shaped around being easy to use. At the same time, a small digital version of a home should feel as welcoming and pleasant as the home itself, which is why design and UI/UX play such a big part too.
[!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
The theme, the font and Bubble Card come first.
Colors, sizes and shadows for light and dark mode.
If themes from the themes folder don't load yet, add these lines to configuration.yaml and restart Home Assistant. With frontend: already there, only the themes line goes under it.
frontend:
themes: !include_dir_merge_named themes
Open Origami in HACS. If HACS asks to add the repository, select Add. Then select Download.
Run frontend.reload_themes and pick Origami under Theme in the user profile.
Light and dark. The theme and the weather card follow the phone's light or dark mode, which most phones change at sunrise and sunset. Staying light or dark all day works too: choose Light or Dark next to the theme in the user profile.
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=swap
Reload 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.
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.
Download Bubble Card and Bubble Card Tools in HACS, or update them if they're already there.
Restart Home Assistant. If Bubble Card Tools isn't set up yet, add it as an integration.
Every module needs Base, so start with that one.
bubble_card/modules and select Copy raw file.To add all modules at once, copy the bubble_card/modules folder to /config/bubble_card/modules and reload the page. The module reference has every module's options.
A pop-up stays 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.
From top to bottom:
Hides Home Assistant's header for good, with a menu in its place if wanted. Home Assistant has no proper way to do this yet, so it takes the Origami Header card. More
A pop-up for each room, with its media, lights and climate. More
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
One music card for all speakers, playing alone or as a group. More
The TV's remote on the phone. More
A fan's controls, with a timer that turns it off later. More
Quick access to favorites: other pop-ups, devices, anything really. More
A look at the server's health, backups and updates. More
Cleaning for the whole home or just one room. More
Bubble Card does the layout, the actions, the pop-ups and the editor. Each part uses the first of these that works:
HACS only updates the theme. The modules were copied in by hand, so the new ones are pasted the same way.
After that, the 2.0 dashboard keeps working, and its cards can be replaced with the new parts one at a time. The changelog lists which part replaces which card, and what looks different on the old ones.
themes/origami.yaml to /config/themes under a new name, like my-origami.yaml.Origami: at the top, then change the colors. The comments in the file say what each group of settings does.frontend.reload_themes and select the new theme in the user profile.A few lines are usually enough: primary-color and accent-color in each mode for the accent, radius-ratio for how round the controls are, or a state color for one kind of device, like state-light-active-color: var(--orange-color). Leave the original file alone, since an update replaces it.
themes line from Get started to configuration.yaml and restart Home Assistant.hash that matches the button's navigation path, like #popup_tv.?edit=1 at the end of the address, opens edit mode.Many details look like they could be simpler, but most of them came from a lot of trial and error on real phones: a value worked out in the card instead of a template sensor, a mini pop-up instead of a helper, a size from the theme instead of the card. An assistant doesn't know that history, and where it has to guess, it often undoes one of these choices without noticing.
This is one home's dashboard. The READMEs describe every part as generally as possible, but it all grew out of that one setup and a lot of fussing over details. Quite a few things work the way that home needs and look the way one person likes. Most dashboards that people share are probably like that, but here at least every part can be changed to fit another home.
⚠️ Watch only the releases. On the repository's page, select Watch, then Custom, check Releases and select Apply. Each release then comes by email, with its new modules, fixes and improvements. All Activity also sends one for every issue and comment, which gets a lot very quickly.