Skip to content
프로젝트

소개

Home Assistant 대시보드

기타 프로젝트

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
+2
in 7 days
+10
in 15 days
+27
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

◪ Origami

Latest release Origami suite

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.

Origami on three phones, with the home view, the music pop-up and the TV remote

[!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.

  1. If themes from the themes folder don't load yet, add these lines to configuration.yaml and restart Home Assistant. If frontend: is already there, add only the themes line under it.

    frontend:
      themes: !include_dir_merge_named themes
    
  2. Open the Marketplace and select Add from link. Enter hazymorning/origami and select Add. The first time, the Marketplace asks to connect GitHub. Then open Origami and select Install.

  3. 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.

  1. Open Resources and select Add resource.

  2. Paste this URL, choose Stylesheet and select Create.

    https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700&display=swap
    
  3. 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.

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.

  1. 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

  2. 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.

  1. Open the module in bubble_card/modules and select Copy raw file.
  2. 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.
  3. 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
  1. Edit the dashboard and select Add card.
  2. 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

The home view with the greeting, the weather, favorites, rooms and the navigation bar, and at night with the next days on the weather card, in light and dark mode

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

The menu sliding in from the top, in light and dark mode

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

The living room pop-up at midday and the bathroom pop-up late in the evening, each with its media, lights, the last day's temperature and the heating, in light and dark mode

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

Climate

The climate pop-up with the home's climate in a word, the windows and the heating, the last day inside and outside and a table of every room, in light and dark mode

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

Lights

The lights pop-up with the slider for all lamps and the scenes, at midday and late in the evening, in light and dark mode

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

The music pop-up with the cover, the play row and the volume, and with its group open, in light and dark mode

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

TV

The TV pop-up, in light and dark mode

The TV's remote on the phone. More

Fan

The fan pop-up at medium speed, and at low speed with the Nature preset, oscillation and its timer running, in light and dark mode

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

Favorites list

The favorites pop-up, in light and dark mode

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

Server

The server pop-up with its status, the load and the updates, in light and dark mode

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

Vacuum

The vacuum pop-up while it cleans, and docked with a full bin, in light and dark mode

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:

  1. Bubble Card's card types and options.
  2. An Origami module, for a look or behavior that Bubble Card doesn't have.
  3. A template in the card instead of a template sensor, for a value the card can work out itself.
  4. 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.
  5. A custom card, only for a gap nothing else fills, like Origami Weather, Origami Notifications and Origami Header.
Change the colors
  1. Copy themes/origami.yaml to /config/themes under a new name, like my-origami.yaml.
  2. In the copy, rename Origami: at the top, then change the colors. The comments in the file say what each group of settings does.
  3. Run frontend.reload_themes and 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 themes line from Get started to configuration.yaml and 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 hash that 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=1 at 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 🙂

관련 프로젝트 살펴보기

불러오는 중…