# GlassHome (full docs) > Concatenated, machine-readable bundle of every GlassHome doc page. One fetch. Frontmatter preserved per page so you can split by `---`. Generated: 2026-11-06T05:11:23.393Z Source site: https://glasshome.app/docs --- title: "Glossary" description: "A-Z definitions of GlassHome terminology. Quick lookup for terms used across the docs." slug: glossary canonical: https://glasshome.app/docs/glossary section: "Reference" updated: 2026-10-08 --- # Glossary ## A **Account dashboard.** The page at [glasshome.app/dashboard](/dashboard) where you manage your Hub account, view your Pro license card, and see your member number. **Addon.** A packaging of GlassHome Dash for Home Assistant OS. Installed via the HA Add-on Store. See [Addon](/docs/dash/addon). **Area.** Home Assistant's grouping of devices/entities by room. Some widgets bind to a whole area, and others bind to a single entity. ## B **Bundle.** Compiled JS file produced by `bun widget build`, one per widget, plus a `registry.json`. ## C **Config dialog.** The settings panel that opens when you hold a widget in edit mode, or hold a widget you have not set up yet. Fields are auto-generated from the widget's Zod schema. Changes save instantly. **configVersion.** Integer on a widget manifest. Incremented on breaking config changes. Drives [migrations](/docs/widgets/widget-migrations). ## D **Dash.** The local dashboard app (the `glasshome-dash` container) that runs on your hardware and connects directly to Home Assistant. This is the GlassHome UI you interact with day to day. **Dashboard.** A named, individually-laid-out screen inside Dash. Multiple dashboards live side by side and are switched via the dock. Each has its own widget set and independent layout per breakpoint. **defineWidget.** SDK entry point. Wraps a manifest, optional Zod schema, and SolidJS component into a registerable widget. See [Widget SDK](/docs/widgets/widget-sdk). **Demo Mode.** A simulated HA backend built into the dashboard. Choose **Look around first** on the welcome screen to evaluate GlassHome without a real HA instance; once your home is set up, an admin opens it from Settings. See [Connecting](/docs/dash/connecting#connection-methods). **Dock.** The bar of dashboards, links and Settings along the bottom, left or right edge of the screen. It holds every dashboard a person may see, in the order the home chose, and each person can reorder it, put items away and add links of their own. See [Editing the dock](/docs/dash/editing#editing-the-dock). ## E **Early Bird.** The introductory Pro offer that ran during the beta. It has ended, and Pro is now at its standing price. Early Bird buyers keep a gold license card. See [Pro](/docs/hub/pro). **Edit mode.** The state Dash enters when you press and hold the dock. If the dock is hidden, press and hold the background and choose **Edit dashboard**. A faint grid overlay appears, widgets show resize grips and X buttons, and gestures shift from device control to layout editing. Press and hold the dock again to finish. See [Editing](/docs/dash/editing). **Entity.** A Home Assistant primitive (`light.kitchen`, `sensor.temp`). Widgets bind to one or more entities. ## H **Hub.** The GlassHome cloud service at glasshome.app. Hosts the widget registry, user accounts, and organizations. Never sees dashboard data. **HAOS.** Home Assistant Operating System. Includes Supervisor and addon support. ## L **License / member number.** Proof of a Pro purchase. Your sequential member number is assigned once at checkout and never changes. Shown on your [account dashboard](/dashboard). **Layout.** The arrangement of a dashboard's widgets for one screen size. Each dashboard has four: **Desktop**, **Tablet**, **Phone**, and **Wide screen**, which has 16 columns. Each layout keeps its own widget positions and sizes. See [Layouts](/docs/dash/layouts). ## M **Manifest.** `manifest.json` (or inline metadata in `defineWidget`). Declares widget name, icon, size limits, SDK version, configVersion. **Material.** What every card, sheet and control in a theme is made of: Glass, Frosted, Paper, Neon, Chalk, or one a creator tuned in the creator studio. Travels inside a theme or alone as a `.glasshome-material.json` file. Widgets follow it through the `--material-*` variables. See [Themes](/docs/dash/themes) and [Materials](/docs/widgets/widget-sdk/materials). **Migration.** A function on a widget that transforms old saved config into the current shape when `configVersion` increases. ## O **Organization.** A shared publishing scope (`@org-slug`). Multiple members publish under one namespace. See [Organizations](/docs/hub/organizations). ## P **Polar.** The payment platform GlassHome uses for Pro checkout. Handles billing and receipt emails. See [Pro → How to buy](/docs/hub/pro#how-to-buy). **Pro.** The one-time purchase that adds community widgets, saving themes and materials from the creator studio, sharing and using shared items, and remote access to Dash. There is no subscription. The creator studio opens without Pro; Pro is asked for when you save. See [Pro](/docs/hub/pro). ## R **Registry.** Hub's catalog of published widgets. The dashboard queries it during widget browse/install. Bundles served from `cdn.glasshome.app`. **Remote address.** A web address you reach Dash at from outside your home, published by your own VPN, reverse proxy, or tunnel, and declared in Dash settings. See [Remote Access](/docs/dash/remote-access). ## S **Scope.** Publishing namespace. Your personal scope is your [username](#u) (`@username`); an organization's scope is its slug (`@org-slug`). Widget IDs look like `@scope/widget-name`. `@glasshome` is the reserved official scope and cannot be claimed by users or organizations. **SDK.** `@glasshome/widget-sdk`. Provides `defineWidget`, `Widget` components, hooks, entity helpers, theming utilities. **SDK version.** Range string in a manifest (e.g. `^0.5.0`) declaring which SDK majors the widget supports. Dash rejects widgets built against an unsupported SDK. **Sheet.** What opens when you hold a widget outside edit mode: only what the widget has no room for, such as a group's members, colours or the days ahead. See [Holding a widget](/docs/dash/editing#holding-a-widget). ## T **Theme preset.** One of the 9 named built-in themes (Midnight Glass, Monochrome Pro, Tide, Forest Zen, Liquid Glass, Sunrise Studio, Lavender Dreams, Chalkboard, Retrowave). Each ships with light and dark variants. Trying a preset is free; saving a theme needs Pro. See [Themes](/docs/dash/themes). **Trust badge.** `Official` (verified, installs without prompt) or `Community` (user-published, asks for consent). Shown on every widget in the picker. ## U **Username.** Your personal publishing handle, which is also your personal [scope](#s) (`@username`). It is auto-assigned at signup by slugifying your display name (lowercased, non-alphanumeric runs collapsed to dashes, e.g. "Alice Test" becomes `alice-test`), and is unique per account (a later collision gets a numbered suffix like `alice-test-2`). It is decoupled from your display name: renaming your display name does not change your username. You can change your username in your [account dashboard](/dashboard) settings, but not while you have widgets published under your current scope. See [Publishing Widgets](/docs/widgets/widget-publishing#publishing-scopes). ## W **Widget.** What sits on a dashboard, bound to one or more entities. SolidJS component + Zod config. **Widget CLI.** `@glasshome/widget-cli`. Scaffolds, builds, validates, and publishes widgets. See [Widget CLI](/docs/widgets/widget-cli). **WebSocket (WS).** The protocol Dash uses to talk to Home Assistant. Direct, low-latency, no cloud relay. --- title: "FAQ" description: "Frequently asked questions about the Dash app. Home Assistant, offline use, hardware, addon behavior, and remote access." slug: dash/faq canonical: https://glasshome.app/docs/dash/faq section: "Support" updated: 2026-10-21 --- # FAQ Short answers about the Dash app. Each links to deeper docs. Questions about accounts, pricing, and Pro live in the [Hub FAQ](/docs/hub/faq); widget development questions in the [Widget Dev FAQ](/docs/widgets/faq). ## Does GlassHome replace Home Assistant? No. Home Assistant still runs your automations and integrations. GlassHome is a UI in front of it. See [Concepts](/docs/dash/concepts). ## Does it work without internet? Yes. Dash and HA talk on your LAN, and your dashboard loads at full speed with the internet unplugged: every widget you have installed is already stored on your box. Internet is only required to install a widget for the first time, to check for widget updates, or to reach the dashboard from [outside your home](/docs/dash/remote-access). Those catch up on their own once you are back online. ## What hardware do I need? Any 64-bit CPU with SSE4.2 (Intel 2008+, AMD 2011+) or ARMv8 (Pi 4/5, Apple Silicon). Pi 3 is too slow. VMs need a modern CPU profile, see [Troubleshooting](/docs/dash/troubleshooting#illegal-instruction). ## Can I run it on the same machine as Home Assistant? Yes. Most users do. Just make sure ports don't collide (HA is `8123`, GlassHome is `3123` by default). ## Can I use GlassHome inside Home Assistant? No. GlassHome is a separate app that talks to Home Assistant, not a dashboard inside it. It never shows up in the Home Assistant sidebar or the Home Assistant app, even when you install it as the addon. Ingress will never be supported: the way GlassHome and its widgets are built cannot run inside Home Assistant. Open `http://:3123` in a browser and bookmark it on each screen. See the [Addon guide](/docs/dash/addon). ## How do I access my dashboard away from home? A VPN (WireGuard, Tailscale), or your own address behind a reverse proxy or tunnel. See [Remote Access](/docs/dash/remote-access) for the comparison and the setup steps. ## Does Nabu Casa give me remote access to GlassHome? No. Nabu Casa reaches Home Assistant itself, and GlassHome is a separate app with its own address. Your Home Assistant still works through Nabu Casa as before, but GlassHome needs its own remote access: a VPN or your own address, set up as in [Remote Access](/docs/dash/remote-access). ## Does it support YAML config? No. Everything is configured in the UI and stored in SQLite. That's intentional; see [What GlassHome is not](/docs/dash). ## Can I sync dashboards between devices? Every device pointed at the same Dash instance sees the same dashboards. There's no cloud sync of layouts between separate Dash installs. ## Can each person have their own dashboards? Yes. Each person gets **Off**, **View** or **Edit** for each dashboard. Set it on their card in **Settings > People & Devices**. See [People & access](/docs/dash/people-and-access). ## Where did the edit button go? Hold the dock. Press and hold it for about half a second to start editing, and hold it again to finish. If the dock is hidden, press and hold the dashboard background and choose **Edit dashboard**. See [Editing your dashboard](/docs/dash/editing). ## Why can't someone see a dashboard I made? Everyone sees every dashboard they have access to in their dock. Check the dashboard is set to **View** or **Edit** on their card in **Settings > People & Devices**, and that they have not hidden it from their own dock. [A dashboard is missing from someone's dock](/docs/dash/troubleshooting#dock-missing-dashboard) has both fixes. ## Can the dock sit on the side? Yes, on a tablet or computer. Choose **Settings > Dock > Position**, or hold the dock and drag it to the left or right edge. Each person picks their own, and a phone keeps the dock at the bottom. ## Can each person have their own theme? Yes. Under **Just me**, each person picks their own theme, main dashboard, dock, blur and dark mode. Admins switch between **This home** and **Just me** with the bar above the dock in Settings. See [People & access](/docs/dash/people-and-access#shared-screens-and-devices). ## Can a wall tablet sign in without Home Assistant? Yes. Invite the person with a **Local account**, or have someone who signs in with Home Assistant add a name and password under **Sign in with a name** in Settings. The tablet then picks **Name and password** on its welcome screen. See [People & access](/docs/dash/people-and-access#sign-in-with-a-name-and-password). ## Scrolling stutters on my tablet. What helps? Turn off **Blur** in Settings, under **General**. Cards turn solid and scrolling gets smoother on older tablets and phones. Turn it off under **Just me** while signed in on the tablet, and the rest of the home keeps the glass. ## I got locked out after wrong passwords. What now? After eight wrong passwords for a name, signing in with that name pauses for ten minutes. Wait ten minutes, then try again. ## Where do I report a bug or ask for a feature? [Discord](https://discord.gg/FJYdeDmrzv) for chat and bug reports. Template in [Bug Reports](/docs/dash/bug-reports). --- title: "Set up GlassHome" description: "From a fresh install to your first dashboard. GlassHome finds Home Assistant by itself, you name the home, and a short tour shows you how to make it yours." slug: dash/guides/set-up-glasshome canonical: https://glasshome.app/docs/dash/guides/set-up-glasshome section: "Guides" updated: 2026-10-08 --- # Set up GlassHome The setup takes you from a running GlassHome to a dashboard with your name on it. Most of it is one sign-in with Home Assistant. ## Before you start - GlassHome is installed and running. If not yet, follow [Installation](/docs/dash/installation) first, then come back. - Home Assistant is running on your network, and you know your sign-in for it. - A computer or phone with a browser, with the GlassHome address open. ## Step 1: Open GlassHome (Computer) Go to the address you installed GlassHome at, for example `http://192.168.1.100:3123`. The welcome screen says **Let's light up your home.** ![The GlassHome welcome screen saying Let's light up your home, with Continue with Home Assistant and Look around first under it](/assets/guides/set-up-glasshome/01-welcome.webp) ## Step 2: Let it find Home Assistant (Computer) GlassHome looks for Home Assistant on your network by itself. When it finds it, the first button reads **Continue with Home Assistant**, with **Sign in once, that's it** under it. If it cannot find it, type the address you open Home Assistant with into the **Home Assistant address** field. Tap **Continue with Home Assistant** and sign in there once; GlassHome brings you back on its own. ![The welcome screen with the Continue with Home Assistant button highlighted, under the line Sign in once, that's it](/assets/guides/set-up-glasshome/02-find-ha.webp) ## Step 3: Or look around first (Computer) On the welcome screen, **Look around first** opens a demo home with lights, music and heating, and nothing to set up. When you are ready for your own home, the **Sample home** row in Settings has **Start over**. Once your home is set up, an admin can open the demo again by tapping the same row. ![The welcome screen with the Look around first button highlighted, under the line A demo home, nothing to set up](/assets/guides/set-up-glasshome/03-look-around.webp) ## Step 4: Name your home (Computer) The screen says **Welcome home.** Your name comes across from Home Assistant, and **Your home's name** starts with a name you can change. Change either one, then tap **Open my dashboard**. You can change both later in Settings. ![The Welcome home screen with Your name and Your home's name filled in and Open my dashboard below them](/assets/guides/set-up-glasshome/04-name-home.webp) ## Step 5: Take the tour (Computer) Your dashboard opens with a short tour that shows you how to edit it. Each chapter can be replayed from **Settings**, under **General**, in the section **How GlassHome works**, with **Replay**. ![The first card of the dashboard tour, Welcome to GlassHome, with Skip tour and Show me](/assets/guides/set-up-glasshome/05-tour.webp) > **If something looks off:** If GlassHome cannot find Home Assistant, check that Home Assistant opens in a browser at the address you typed. [Connecting](/docs/dash/connecting#troubleshooting) covers the rest. ## You are done when You have a dashboard with your name on it. Next, [rearrange it](/docs/dash/guides/rearrange-your-dashboard), then [make it look like yours](/docs/dash/guides/make-your-own-theme). --- title: "Connect Home Assistant" description: "Point GlassHome at your Home Assistant and sign in there once. Which address to type when GlassHome can't find it, and what each message on the way means." slug: dash/guides/connect-home-assistant canonical: https://glasshome.app/docs/dash/guides/connect-home-assistant section: "Guides" updated: 2026-10-21 --- # Connect Home Assistant GlassHome shows what Home Assistant already knows about your house: the lights, the heating, the music. Connecting them is one sign-in, and GlassHome usually finds Home Assistant before you have to type anything. ## Before you start - GlassHome is installed and open in a browser. If not yet, follow [Installation](/docs/dash/installation) first. - The address you open Home Assistant with, and your sign-in for it. - The computer or phone you use is on your home network, the same one as Home Assistant. - The pictures come from the newest version of GlassHome, so yours may look a little different. ## Step 1: Open GlassHome (Computer) Go to the address you installed GlassHome at, for example `http://192.168.1.100:3123`. The welcome screen says **Let's light up your home.** and starts looking for Home Assistant on its own. The **Home Assistant** card says **Looking for it** while it does. ![The GlassHome welcome screen saying Let's light up your home, with a card for GlassHome and a card for Home Assistant](/assets/guides/connect-home-assistant/01-welcome.webp) ## Step 2: Found it? Continue (Computer) When GlassHome finds it, the **Home Assistant** card shows its address and the button under it reads **Sign in once, that's it**. Tap **Continue with Home Assistant**. ![The welcome screen with the Home Assistant card showing its address and the Continue with Home Assistant button highlighted](/assets/guides/connect-home-assistant/02-found.webp) ## Step 3: Not found? Type the address (Computer) If the screen asks **Where's your Home Assistant?**, type the address you open Home Assistant with in a browser, for example `http://192.168.1.20:8123`. Copy it from the browser's address bar, `http://` and all. The arrow next to the field lights up once Home Assistant answers. Tap it. ![The screen Where's your Home Assistant, with the Home Assistant address field filled in](/assets/guides/connect-home-assistant/03-address.webp) ## Step 4: Sign in to Home Assistant (Computer) Your browser opens Home Assistant's own sign-in page. The yellow box above the form names the GlassHome address that asks for access, so you can see who is knocking. Sign in with your usual Home Assistant name and password. GlassHome never sees the password, and Home Assistant sends you straight back. ![Home Assistant's own sign-in page, a yellow box naming the address that asks for access above the Username and Password fields](/assets/guides/connect-home-assistant/04-ha-sign-in.webp) ## Step 5: You're in (Computer) Back in GlassHome, the screen says **Welcome home.** Check your name and your home's name, then tap **Open my dashboard**. ![The Welcome home screen with Your name and Your home's name filled in and Open my dashboard below them](/assets/guides/connect-home-assistant/05-welcome-home.webp) ## Step 6: Your dashboard (Computer) A short tour offers to show you around: tap **Show me**, or **Skip tour** to look on your own. Your dashboard starts empty. Tap **Add your first widget** to put a light, the heating or a sensor on it. ![The new dashboard saying Your dashboard is ready, with Add your first widget and Browse library buttons](/assets/guides/connect-home-assistant/06-dashboard.webp) ## Which address to type Use the address that opens Home Assistant in a browser on this computer, while you are at home. - **Try its number first.** `http://192.168.1.20:8123` works on more networks than `http://homeassistant.local:8123`. Home Assistant shows its number under **Settings > System > Network**. - **Keep the port, if it has one.** Most Home Assistants answer on `:8123`. One set up on Home Assistant OS since August 2026 answers with no port at all, like `http://homeassistant.local`. - **Use the address at home.** A Nabu Casa or other internet address works only while the internet does, and GlassHome warns you when you type one. To reach your dashboard from outside, see [Remote access](/docs/dash/remote-access). - **Match http and https.** If your Home Assistant opens with `http://`, type `http://`. A number like `192.168.1.20` with `https://` almost always fails with **The certificate at that address isn't trusted.**, because the certificate belongs to your internet address. ## When GlassHome says | Message | What to do | | -------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | That address doesn't resolve. For a .local name, use the IP instead. | Type Home Assistant's number instead of `homeassistant.local`. | | Home Assistant isn't answering on that port. | Check the port: the one in your browser's address bar, or none. Running the [Home Assistant addon](/docs/dash/addon)? See the box below. | | Home Assistant didn't answer in time. | Make sure Home Assistant opens in a browser, then try again. | | The certificate at that address isn't trusted. | Use the `http://` address at home, or your full internet address with its own name. | | That address redirects. Use the direct Home Assistant address. | Type the address Home Assistant itself runs on, without a proxy or login page in front. | | This device couldn't open Home Assistant at … Try its IP address. | GlassHome found Home Assistant, but this browser couldn't open its sign-in page. Type the number instead. Once your home is set up, **Code from a phone** also works here. | | Something went wrong setting things up. Try again. | Reload the page and start again. If it keeps happening, [report a problem](/docs/dash/guides/report-a-problem). | > **Running the Home Assistant addon:** If every address says **Home Assistant isn't answering on that port.** while Home Assistant opens fine in your browser, something on the Home Assistant machine blocks GlassHome. Look for a `server_host:` line under `http:` in `configuration.yaml`: remove it and restart Home Assistant. On a Debian install, a firewall can do the same; allow `172.30.32.0/23` to reach Home Assistant's port. ## Later on - **Home Assistant moved to a new address.** Open **Settings**, open **Home Assistant** on your home's card, type the new address and tap **Save**. Your dashboards stay as they are. - **A banner says Home Assistant needs a fresh sign-in.** Someone who manages the home taps **Sign in to Home Assistant** on the banner and signs in once. Everyone else is back in right after. ## You are done when GlassHome and Home Assistant are connected. Next, [rearrange your dashboard](/docs/dash/guides/rearrange-your-dashboard), or put one on the [kitchen tablet](/docs/dash/guides/kitchen-tablet). How the pieces fit together: [How GlassHome connects](/docs/dash/how-glasshome-connects). --- title: "Turn on PRO in your home" description: "Link your GlassHome account to the GlassHome in your home so PRO unlocks there. One code, one Approve, and everyone in the house gets it." slug: dash/guides/link-pro canonical: https://glasshome.app/docs/dash/guides/link-pro section: "Guides" updated: 2026-10-21 --- # Turn on PRO in your home PRO lives on your GlassHome account at glasshome.app. The GlassHome running in your home learns about it once you link the two, which takes a code and one tap. ## Before you start - PRO on your GlassHome account. Not yet? [Get PRO](/pricing), then come back. - GlassHome set up and connected to Home Assistant. If not yet, [connect Home Assistant](/docs/dash/guides/connect-home-assistant) first. - A computer or phone with GlassHome open, where you can also open glasshome.app. - The pictures come from the newest version of GlassHome, so yours may look a little different. ## Step 1: Open Settings and tap Connect (GlassHome) In GlassHome, open **Settings** and find **GlassHome Account** on your home's card. Tap **Connect**. ![The GlassHome Account panel in Settings saying Connect a GlassHome account to link it with this home, with the Connect button highlighted](/assets/guides/link-pro/01-connect.webp) ## Step 2: Keep the code on screen (GlassHome) GlassHome shows a code and opens glasshome.app in a new tab. Leave this screen open; it says **Waiting for approval** until you are done. No new tab? Tap **glasshome.app** in the dialog and type the code there. ![The Connect GlassHome account dialog with Your code in large letters and Waiting for approval under it](/assets/guides/link-pro/02-code.webp) ## Step 3: Approve on glasshome.app (glasshome.app) Sign in if glasshome.app asks. Check two things: the account at the top is the one you bought PRO with, and the code matches the one on your GlassHome screen. Then tap **Approve**. ![The Connect a dashboard page on glasshome.app showing the signed-in account, the dashboard code and the Approve button highlighted](/assets/guides/link-pro/03-approve.webp) ## Step 4: PRO shows next to your name (GlassHome) Back in GlassHome, the dialog closes and **GlassHome Account** shows your account with a **Pro** badge. Bought PRO after linking? Open **Settings** again and the badge appears. ![The GlassHome Account panel showing the linked account's name and email with the Pro badge](/assets/guides/link-pro/04-linked.webp) ## One link is enough PRO counts for the whole home. Once one person links an account with PRO, everyone in the house gets it, on every phone and on the kitchen tablet. Nobody else needs to link anything. ## When it doesn't work | What you see | What to do | | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | **Couldn't reach GlassHome** right after tapping Connect | The GlassHome server in your home can't reach glasshome.app, even when your browser can. On Docker, add `dns: [1.1.1.1]` under the GlassHome service in your compose file and start it again. | | **The code expired before approval.** | Codes last 10 minutes. Tap **Get a new code** and approve the new one. | | Linked, but no **Pro** badge | The account you approved with doesn't have PRO. Check the email under your name in **GlassHome Account**. Wrong one? Tap **Disconnect**, then **Connect** again and sign in at glasshome.app with the account you bought PRO with. | | **This GlassHome account is already connected to another user on this dashboard.** | Someone else in your home linked that account already. Sign in to GlassHome as them and tap **Disconnect** first, or leave it: their link already gives the whole home PRO. | | **Demo households can't link a GlassHome account.** | You are in the demo home. Set up your own Home Assistant first, then link. | Still stuck? [Report a problem](/docs/dash/guides/report-a-problem) with a screenshot of what you see, and I'll take a look. ## You are done when PRO is on in your home. Try a [community widget](/docs/dash/widgets), [save your own theme](/docs/dash/guides/make-your-own-theme), or [share a dashboard](/docs/dash/guides/find-and-share). What else PRO includes: [PRO](/docs/hub/pro). --- title: "Find your way around" description: "Tap, hold and slide a widget, scroll, switch dashboards from the dock or with a swipe, open Settings and enter edit mode." slug: dash/guides/find-your-way-around canonical: https://glasshome.app/docs/dash/guides/find-your-way-around section: "Guides" updated: 2026-11-03 --- # Find your way around A handful of gestures run the whole dashboard. They are the same on a phone, a tablet and a computer, where a click is a tap. ## Before you start - A dashboard open on any screen. The [demo](/docs/dash/guides/set-up-glasshome) works too. ## Step 1: Tap a widget (Phone) A tap does the obvious thing: a light turns on or off, a lock locks, a scene runs. ![The phone dashboard with the Hallway light widget about to be tapped](/assets/guides/find-your-way-around/01-tap-widget.webp) ## Step 2: Hold a widget (Phone) Press and hold a widget for the rest of what it can do, such as each lamp of a group or a light's colour. Tap outside the sheet to close it. ![The Garden light widget pressed and held](/assets/guides/find-your-way-around/02-hold-widget.webp) ## Step 3: Scroll (Phone) Drag up and down to see the rest of the dashboard. The dock stays where it is, at the bottom unless you moved it to a side. ![The phone dashboard scrolled down to the scenes and rooms](/assets/guides/find-your-way-around/03-scroll.webp) ## Step 4: Slide a slider (Phone) Drag sideways across a light, a fan or a blind to set how much. The widget keeps your finger, so the dashboard stays where it is. ![The Hallway light widget, its brightness about to be dragged down](/assets/guides/find-your-way-around/04-slide-slider.webp) ## Step 5: Pick a dashboard (Tablet) Each icon in the dock is a dashboard. Tap one to open it. ![The tablet dashboard with the Living room icon in the dock about to be tapped](/assets/guides/find-your-way-around/05-tap-dock.webp) ## Step 6: Swipe to the next one (Tablet) Swipe sideways anywhere on the dashboard to move to the next or previous one in dock order. One or two fingers work on a touchscreen, two on a trackpad. ![The Living room dashboard on the tablet, about to be swiped to the left](/assets/guides/find-your-way-around/06-swipe.webp) ## Step 7: Open Settings (Tablet) The gear at the end of the dock opens Settings. Tap a dashboard in the dock to go back. ![The gear at the end of the dock about to be tapped](/assets/guides/find-your-way-around/07-open-settings.webp) ## Step 8: Hold the dock to edit (Tablet) Press and hold the dock for about half a second to move, resize, add or remove widgets, and to change the dock itself. Hold it again when you are done. [Set up the dock](/docs/dash/guides/set-up-the-dock) covers the dock. ![The tablet dashboard with the dock about to be pressed and held](/assets/guides/find-your-way-around/08-hold-dock.webp) ## You are done when You know every gesture the dashboard uses. [Rearrange your dashboard](/docs/dash/guides/rearrange-your-dashboard) picks up from edit mode, and [Layouts](/docs/dash/layouts) covers several dashboards. --- title: "Introduction" description: "GlassHome is a modern, local-first dashboard for Home Assistant. Install in minutes, customize without YAML." slug: dash canonical: https://glasshome.app/docs/dash section: "Getting started" updated: 2026-10-21 --- # Dash Documentation A modern dashboard for Home Assistant. Connects directly to your HA instance over WebSocket. No cloud relay, no telemetry, no YAML required. ![GlassHome dashboard overview](/assets/screenshots/home-midnight-glass-light-desktop.webp) GlassHome dashboard, Midnight Glass theme ## Start here ### [Quickstart](/docs/dash/quickstart) Install, connect, and add your first widget in 5 minutes. ### [Concepts](/docs/dash/concepts) Hub, dashboard, addon, widget. The mental model in one page. ### [Installation](/docs/dash/installation) Pick a deployment method: HA addon, Docker, or container. Want to build widgets? That's its own docs space: [Widget Dev](/docs/widgets/widget-development). ## Common tasks - [Connect to Home Assistant](/docs/dash/connecting): OAuth flow, the demo home, URL gotchas. - [Edit a dashboard](/docs/dash/editing): add, move, resize, remove. Desktop and touch gestures. - [Access from anywhere](/docs/dash/remote-access): VPN or your own address. - [Theme it](/docs/dash/themes): 9 presets, or make your own in the creator studio, light and dark. - [Something broke](/docs/dash/troubleshooting): look up by error message or symptom. [Give people and screens their own access](/docs/dash/people-and-access): rooms, controls, dashboards, invite links, shared tablets. ## How it fits together - **Home Assistant does the work.** HA keeps running your automations, integrations, and devices. GlassHome is the screen in front of it. - **GlassHome is its own app.** It opens at its own address, outside the Home Assistant interface, and talks to HA from there. It never appears in the HA sidebar, and Nabu Casa does not reach it. - **Dash runs on your hardware.** Your Hub account is for publishing widgets and holding your license. - **Everything is set up in the app.** You configure it in the UI, with no YAML and no restart to apply changes. > **Need help?:** Join the Discord for live support, or file a [bug report](/docs/dash/bug-reports). --- title: "Set up a kitchen tablet" description: "Give a wall or kitchen tablet its own name, rooms and dashboards, then pair it with a six-digit code. Nobody's account stays signed in on the wall." slug: dash/guides/kitchen-tablet canonical: https://glasshome.app/docs/dash/guides/kitchen-tablet section: "Guides" updated: 2026-10-13 --- # Set up a kitchen tablet A shared screen gets a profile of its own, with its own rooms and dashboards. You set it up on your computer first, then the tablet joins with a code. ## Before you start - You are an admin (owners are admins too). - You have the tablet in reach, with a browser open. - About five minutes. Two devices: your computer (or phone) and the tablet. - The pictures come from the newest version of GlassHome, so yours may look a little different. ## Step 1: Open Settings (Computer) On your own dashboard, tap the gear at the end of the dock. ![A GlassHome home dashboard with the Settings gear highlighted in the dock at the bottom](/assets/guides/kitchen-tablet/01-open-settings.webp) ## Step 2: Tap Connect device (Computer) In **People & Devices**, find the Devices list and tap **Connect device**. ![The People and Devices lists in Settings, with the Connect device button highlighted above the Devices list](/assets/guides/kitchen-tablet/02-people-and-devices.webp) ## Step 3: Choose Shared device (Computer) GlassHome asks who the device is for. Pick **Shared device**: the tablet gets a profile of its own. ![A dialog asking Who is this device for, with the options Me, Someone else and Shared device; Shared device is highlighted](/assets/guides/kitchen-tablet/03-who-is-it-for.webp) ## Step 4: Name it and pick its dashboards (Computer) At the top, type a name you will recognise later, like "Kitchen tablet". Then choose which dashboards it shows; everything starts switched off. ![The Kitchen tablet setup step with a Dashboards list; Home is set to View, the others to Off](/assets/guides/kitchen-tablet/04-name-and-dashboards.webp) ## Step 5: Pick its rooms (Computer) Scroll to **Rooms** and pick the rooms it may see, then decide under **Control** whether it can switch things or only show them. Tap **Next**. ![The Rooms section of the tablet's setup, with Whole home off and Kitchen chosen in the room picker](/assets/guides/kitchen-tablet/05-rooms.webp) ## Step 6: Switch to Enter code (Computer) You land on **Now connect it**. Tap **Enter code**. If the tablet has a camera, it can scan the QR code instead and skip the typing. ![The Now connect it step showing a QR code, with the Enter code tab highlighted](/assets/guides/kitchen-tablet/06-now-connect-it.webp) ## Step 7: Get the code on the tablet (Tablet) On the tablet, open your dashboard's address and tap **Code from a phone** on the welcome screen. It shows a six-digit code and waits. Leave it be. ![The tablet showing Add this device with a six-digit code, 472-863, and Waiting for approval underneath](/assets/guides/kitchen-tablet/07-tablet-shows-code.webp) ## Step 8: Type the code (Computer) Back on your computer, type the six digits from the tablet. It connects as soon as the last one goes in. ![The Enter code keypad on the computer with the six digits 472-863 filled in](/assets/guides/kitchen-tablet/08-type-the-code.webp) ## Step 9: See it connect (Computer) The dialog says **Kitchen tablet connected** and sums up what it can do. Tap **Close**. ![A dialog titled Kitchen tablet connected, showing View only and Kitchen only, with a Paired badge next to the tablet's name](/assets/guides/kitchen-tablet/09-connected.webp) ## Step 10: The tablet shows its dashboard (Tablet) The tablet opens on its dashboard, with only the rooms and controls you picked. Nobody is signed in on the wall, and it stays that way. ![The tablet now showing a GlassHome dashboard with a clock, music, weather and room widgets](/assets/guides/kitchen-tablet/10-tablet-dashboard.webp) ## You are done when The tablet shows its dashboard, and **Kitchen tablet** sits in your Devices list marked as paired. Changed your mind about its rooms or theme? Open its row in People & Devices; its start dashboard and theme update the next time the tablet reloads. For every setting, see [People & access](/docs/dash/people-and-access#shared-screens-and-devices). ## Make it a wall screen A tablet that lights the kitchen all night is a lamp nobody asked for. Open **Settings**, then **People & Devices**, and tap the tablet's row. The **Screen** group sets how it wakes and sleeps. Tap **Wall tablet** to start from a good default: the screen stays on, sleeps after 2 minutes untouched, rests from 23:00 to 06:30 and shows a clock while it sleeps. **Always on** keeps the screen lit all day. Every row below can be changed afterwards, and **Reset** clears the tablet's screen settings. - **Keep screen on** stops the tablet from dozing by itself. It works in the GlassHome app, or in a browser on an HTTPS address. - **Sleep when untouched** picks how long the tablet waits: Never, 1, 2, 5, 10 or 30 minutes. - **Wake for someone nearby** picks a Home Assistant presence sensor. The screen wakes when someone walks in and sleeps again after the **Sleep after they leave** delay. The tablet has to be able to see that sensor, so choose one in a room it may see. If it can't, the screen stays on. The sensor can only wake the screen while **Keep screen on** is set; otherwise the tablet's own timeout turns the display off. - **Night** sets your own times. At night only a touch wakes the screen, and the sensor is ignored. - **While asleep** chooses the look: **Black**, **Clock** or **Dimmed dashboard**. The clock moves a little each minute so it never burns into the panel. - **Full screen** hides the system bars. It works in the GlassHome app. The first tap on a sleeping screen only wakes it, so a half-asleep hand never switches the oven light. A sensor that is stuck on, a Home Assistant outage, or a sensor the tablet can't see all keep the screen awake. A change to these settings reaches the tablet the next time it sleeps, wakes or is touched. ### Start with the tablet On an Android tablet running the GlassHome app, open **Settings**, then **General**, on the tablet itself and turn on **Open GlassHome when this tablet starts**. GlassHome becomes the Home app, and it opens after every restart. If its page crashes, the app recovers by itself. On Android 10 or newer it also recovers from a frozen page. After repeated crashes it shows a screen saying the page keeps crashing, with a button to try again. ### Keep it in GlassHome Android can pin one app to the screen so nobody wanders off into the rest of the tablet. On most Android tablets, **App pinning** is under **Settings**, then **Security**. Switch it on, and pin GlassHome from the recent apps view. --- title: "Installation" description: "Install GlassHome as a Home Assistant addon, Docker Compose service, or standalone container. CPU requirements and VM gotchas covered." slug: dash/installation canonical: https://glasshome.app/docs/dash/installation section: "Installation" updated: 2026-10-08 --- # Installation All install methods deploy the same app. Pick by environment, not by feature set. ## Pick a method | Your setup | Use | | ------------------------------- | ------------------------------------------------------ | | Home Assistant OS or Supervised | [HA Addon](/docs/dash/addon) (recommended) | | HA Container / Core | [Docker Compose](/docs/dash/docker#docker-compose) | | Any other machine with Docker | [Direct Container](/docs/dash/docker#direct-container) | | Bare metal without Docker | Not supported. Run Docker or use HA OS. | ## Requirements - **A running Home Assistant.** Any install method, reachable on your network. Any recent Home Assistant release works. - **Docker** (unless using the HA addon), or **HAOS/Supervised with Supervisor** for the addon. - **Modern browser** to use Dash: Chrome, Firefox, Safari, or Edge. ## Supported CPUs GlassHome ships multi-arch images. Docker picks the right build automatically. ### x86-64 (amd64) Requires SSE4.2. Intel Nehalem (2008+) or AMD Bulldozer (2011+) and newer. Almost any PC from the last decade. ### ARM64 (aarch64) Raspberry Pi 4 and 5, Apple Silicon, most modern ARMv8 SBCs. Pi 3 and earlier are not supported. > **Running in a VM? Read this.:** Many hypervisors expose a Pentium 4-era CPU profile by default that hides SSE4.2 from the guest, even when the host CPU is modern. GlassHome will crash with `signal 4 / illegal instruction`. Switch the guest CPU to `host` (Proxmox), disable EVC (ESXi), or turn off processor compatibility mode (Hyper-V). Full fix: [Troubleshooting → Illegal Instruction](/docs/dash/troubleshooting#illegal-instruction). ## After installing 1. Open `http://:3123`. 2. Connect Home Assistant on the welcome screen. Every screen, with pictures: [Connect Home Assistant](/docs/dash/guides/connect-home-assistant). 3. Add your first widget. See [Quickstart](/docs/dash/quickstart). ## Uninstalling - **Addon:** Uninstall from the Add-on Store. Optionally check "remove data". - **Docker:** `docker rm -f glasshome-dash && docker volume rm glasshome_data` (this deletes your dashboards). --- title: "Troubleshooting" description: "Look up GlassHome errors and fixes by symptom or message. Illegal instruction, container won't start, CORS, connection drops, and more." slug: dash/troubleshooting canonical: https://glasshome.app/docs/dash/troubleshooting section: "Troubleshooting" updated: 2026-10-08 --- # Troubleshooting Find your symptom, follow the fix. If nothing matches, copy diagnostics from **Settings > General** and file a [bug report](/docs/dash/bug-reports). ## Quick index - [Container or addon crashes on start with `signal 4` / illegal instruction](#illegal-instruction) - [Setup rejects the Home Assistant address](#bad-ha-url) - [Connected, but entities never load](#no-entities) - [Dashboard loads but blank / errors in browser console](#blank-ui) - [Can't reach the dashboard from outside home](#remote) - [Widget install fails / shows "incompatible SDK"](#widget-sdk) - [Layout / theme reset after update](#data-loss) - [Widget shows "Unavailable"](#widget-unavailable) - [HA login loop / OAuth fails](#oauth-loop) - [Theme or background not applying](#theme-not-applying) - [Camera shows no picture](#camera-no-picture) - [A dashboard is missing from someone's dock](#dock-missing-dashboard) --- Container crashes with "Illegal Instruction" (signal 4) ### Symptoms Container or addon dies instantly. Logs show `signal 4`, `SIGILL`, `trap invalid opcode`, or `Illegal instruction`. ### Cause CPU does not expose SSE4.2. GlassHome requires Intel Nehalem (2008+) or AMD Bulldozer (2011+). On modern hardware, the actual cause is almost always a hypervisor hiding instructions from the guest. ### Fix: virtualized host By default many hypervisors expose a Pentium 4 era CPU profile for compatibility. Switch the guest CPU to one that exposes the host's real features. **Proxmox** 1. Shut down the VM running HA / GlassHome. 2. Hardware > Processor > Type: change `kvm64` to `host`. 3. Start the VM. In a Proxmox cluster, use `x86-64-v3` so live migration keeps working between v3-capable nodes. **VMware ESXi / Workstation.** Disable EVC, or raise the EVC baseline to one that includes SSE4.2. **Hyper-V.** Disable processor compatibility mode on the VM. **VirtualBox.** Enable Nested VT-x/AMD-V. Avoid legacy CPU profiles. ### Fix: bare metal If GlassHome runs directly on hardware (no hypervisor), the CPU itself is below the minimum. No software fix. Move to a Raspberry Pi 4/5 or any PC from the last decade. --- Setup rejects the Home Assistant address The welcome screen looks for Home Assistant on your network by itself. When it can't find it, it asks for the address. That address must include protocol and the port HA actually serves on. Verify by opening it in a browser tab. If you can't reach HA in your browser, the dashboard can't either. Common mistakes: - Missing `http://` or `https://`. - Wrong port (the port HA's web interface uses). - HTTPS on dashboard side but plain HTTP on HA (or vice versa). They must match. - `localhost` from inside a container points at the container itself. Use the LAN IP or `host.docker.internal` to reach your machine. See [Connecting: when you type the address](/docs/dash/connecting#when-you-type-the-address). --- Connected, but no entities load - The HA user you authorized as may have no entity permissions. Re-authorize with an admin user. - HA's `auth` integration may be using a custom provider that strips refresh tokens. Confirm HA's `configuration.yaml` doesn't disable refresh tokens. - If entities load partially, you've likely hit an HA WS rate limit during initial load. Refresh. --- Dashboard loads blank Open browser devtools (F12) > Console. Look for red errors: - **`Failed to fetch dynamically imported module`**: a widget bundle 404'd. Likely an installed community widget was unpublished. Remove the widget from your layout. - **`SecurityError: Failed to construct WebSocket`**: HTTPS dashboard trying to reach HTTP HA, or vice versa. Match protocols. - **`Refused to connect`**: CSP violation. Usually means you're proxying the dashboard and the proxy strips required headers. Bypass the proxy to confirm. --- Can't reach the dashboard from outside home - **Page loads, then stays empty**: your proxy is not forwarding WebSocket upgrades. Pass `Upgrade` and `Connection` through. - **Sign-in is refused**: the address isn't declared. Add it under **Settings > Remote access** (household admin), on the local address if you're locked out. - **"Public addresses need GlassHome Pro"**: the hostname resolves to a public IP. Addresses that resolve to a home IP stay free. - **Home Assistant sign-in fails while away**: expected. Use a Hub account, **Name and password**, or **Code from a phone**. More: [Remote Access](/docs/dash/remote-access). --- Widget install fails with "incompatible SDK" The widget was built against a newer `@glasshome/widget-sdk` than the dashboard supports. Update the dashboard (`docker compose pull && docker compose up -d`, or addon update). If you are the widget's author, see [Widget Dev → Troubleshooting](/docs/widgets/troubleshooting#incompatible-sdk). --- Dashboards or theme disappeared after update Data lives in the Docker volume `glasshome_data` (mounted at `/data`). If it was missing on restart, the dashboard initializes a fresh DB. - Confirm the volume is mounted: `docker inspect glasshome | grep Mounts -A 10`. - If you migrated hosts, copy `/data` from the old host before first start on the new one. - HA addon stores data in addon-managed storage. Re-installing the addon with "remove data" unchecked preserves dashboards. If your data really is gone, file a [bug report](/docs/dash/bug-reports) with logs from the failing start. --- Widget shows "Unavailable" The entity the widget is bound to is missing or has been renamed in Home Assistant. - Check the entity still exists in HA (Settings > Devices & Services > Entities). - If it was renamed or removed, open the widget's config dialog in edit mode and rebind it to the correct entity. --- HA login loop / OAuth fails If you keep being redirected back to the HA login page or authorization never completes: - Confirm the HA URL you entered opens in your browser. Open it in a new tab. - Check that the URL uses the correct protocol (`http://` vs `https://`). A mismatch causes silent CORS failures. - Make sure popups are not blocked. The OAuth flow opens in a popup or redirect depending on the browser. See [Connecting to Home Assistant](/docs/dash/connecting) for URL format requirements and common pitfalls. --- Theme or background not applying - Hard-refresh the page (Ctrl+Shift+R / Cmd+Shift+R) to clear any cached assets. - To use a preset or a theme already on your Dash, choose **Use** in **Settings > Theme**. It applies straight away. - A theme made in the creator studio reaches your home only when you choose **Save and use**. Until then the changes stay in the studio, and **Cancel** puts your home back as it was. - If a custom theme or uploaded background is not showing, confirm the file format is supported and try re-uploading. Saving a theme and uploading pictures need [Pro](/docs/hub/pro); applying a theme already on your Dash does not. - If the issue persists after a refresh, check the browser console for errors and file a [bug report](/docs/dash/bug-reports). --- Camera shows no picture A camera's **Stream Engine** setting picks how its video arrives: Auto, WebRTC, HLS, MJPEG or Snapshot. Auto tries the best one first. When the engine you chose cannot start, the camera falls to a lighter one on its own, in this order: WebRTC, then HLS, then MJPEG, then Snapshot, which shows a still picture that refreshes. If the picture stays missing: - Hold the camera widget in edit mode to open its settings, and set **Stream Engine** to Auto. - For Snapshot, **Snapshot Refresh (seconds)** sets how often the still picture updates. - Open the camera in Home Assistant. If it shows no picture there, the problem sits with the camera or its integration. A dashboard is missing from someone's dock Every dashboard a person may see is in their dock. Two things take one out. - **Their access.** Open their card in **Settings > People & Devices** and check the dashboard is set to **View** or **Edit**. The dock follows it within a second or so. - **They put it away.** Each person can hide a dashboard from their own dock. Hold the dock, tap **+**, and the **Hidden** tab lists what they hid, with a **Show** button each. Admins see who hid a dashboard in **Settings > Dashboards**, and **Reset** on the person's card puts their dock back to the home's. [Set up the dock](/docs/dash/guides/set-up-the-dock) shows both. --- title: "Widgets" description: "The official widgets, sizes, configuring a widget, your own pictures, community widgets from Hub, and building your own." slug: dash/widgets canonical: https://glasshome.app/docs/dash/widgets section: "Dashboards" updated: 2026-10-08 --- # Widgets A widget is one piece of your dashboard, bound to one or more things in Home Assistant, like a light, a sensor or a door lock. GlassHome ships 21 official widgets, and community widgets are installed from Hub. ![The browser open on its Widgets tab](/assets/screenshots/widgets-midnight-glass-dark-desktop.webp) Add widget opens the browser. Official widgets are listed with trust badges. ## Adding a widget Adding widgets is part of edit mode. See [Editing](/docs/dash/editing) for the full step-by-step and gesture reference. ## Configuring a widget Open edit mode and press and hold any widget. The config dialog opens with fields auto-generated from the widget's schema: bound entity, display options, size, color, and more. Changes save instantly, no apply button. ![A widget's settings dialog with its title, entities and aggregation](/assets/screens/widget-settings-dark.webp) The settings dialog of a sensor widget. Outside edit mode, holding a widget opens its sheet, see [Holding a widget](/docs/dash/editing#holding-a-widget). For the complete gesture reference, see [Editing](/docs/dash/editing). ## The official widgets All official `@glasshome` widgets are included in Dash and available to every user for free. | Widget | What it does | | ---------------- | -------------------------------------------------------------------------------------- | | Area | An area's things in one place, with controls for all of them at once. | | Batteries | Battery levels across your devices, found automatically. | | Binary Sensor | Motion, door and occupancy sensors. | | Button | Press a button in Home Assistant. | | Camera | A live camera picture with sound, with several ways to stream it. | | Climate | Temperature, heating and cooling modes, and fan control. | | Clock | The time as a digital or analog clock, with presets and the date. | | Cover | Open, close and set covers, blinds and shutters. | | Electricity Grid | Whether now is a good time to use power, with the grid's carbon intensity and price. | | Energy Balance | How much of today's power came from your solar panels, and how much from the grid. | | Energy Flow | Live power moving between solar, the grid, a battery, the home and an EV. | | Fan | Speed, presets, oscillation and direction. | | Header | Your dashboard's name, with chips for what is on, a thing to watch, or a scene to run. | | Light | Brightness, color and white temperature. | | Lock | Lock and unlock, with a security indicator. | | Media Player | Playback controls, album art and progress. | | Picture Frame | Your own photos, one at a time or as a slideshow. | | Scene | Run a scene with one tap. | | Sensor | A sensor's value, with aggregation. | | Switch | Turn a switch on and off. | | Weather | The sky outside, and the hours and days ahead. | ## Sizes Most widgets grow to 8 by 8 grid squares. Picture frames reach 12 by 12, cameras 12 by 10, and weather 12 by 8. The header is one row high and up to 16 squares wide. ## What some widgets show - **Sensor history.** A sensor can draw its last day as a line. - **Pictures from Home Assistant.** A camera can show the still picture Home Assistant keeps for it, like a doorbell's last snapshot, and refresh it on a timer you set. - **Camera sound.** A camera with a microphone starts muted and shows a speaker button. Tap it to listen. - **Camera live view.** Hold a camera to watch it big. The view can go full screen and lists the stream, sound, motion detection and model. - **Groups.** A light group says how many lamps are on, and one tap sets them all. A group of locks never unlocks all at once: one tap locks whatever is open, and unlocking happens one lock at a time. ## Your own pictures Some widgets ask for a picture: a picture frame, or a scene with your own artwork. Tap the image field in the widget's settings, pick one you already uploaded, or upload a new one from your phone or computer. The gallery belongs to the whole household. Everyone in the home sees every uploaded image and can delete any of them, so the picture your partner uploaded is one you can pick, and the one you uploaded is one they can remove. Each picture says whether it is in use, and how many widgets would lose their picture if it went. A household gets **250MB** and **500 images** in total. Uploads are converted to WebP, so most photos land far smaller than they started. When you hit either ceiling the upload is refused and the picker says so; delete something you are not using and try again. > **A deleted image can linger in caches:** Images are served with a one-year cache, which is what keeps your dashboard > instant. A browser that already loaded a picture can keep showing it for up to > a year after you delete it, and anyone who saved the link keeps it until the > image is gone from the server. Deleting means "stop using this." It does not > make the picture disappear everywhere. ## Community widgets > **Pro required:** Installing community widgets requires a [Pro](/docs/hub/pro) license. Official `@glasshome` widgets are free for everyone. Browse and install community widgets from the browser. Tap **Add widget** while you are editing, and it opens on the **Widgets** tab, next to **Themes**, **Dashboards** and **Materials**. You can also browse the registry at [glasshome.app/#widgets](/#widgets). - **Filters** at the top narrow the list by status, like **Installed** or **Updates**, and by kind, like **Lights** or **Media**. A kind appears only when your home has something it works with. - **Open a widget** to see its page. The page lists what the widget can read or control. A widget that shows only its own content says so. - **Official** widgets are verified by GlassHome and install without a prompt. - **Community** widgets ask for consent before install (third-party code). The bundle is downloaded once from Hub's CDN, then cached and served locally. ## Build your own Custom widgets are SolidJS components with a Zod config schema. Dash auto-generates the edit form from the schema, so you do not write any settings UI. Start with [Getting Started](/docs/widgets/widget-development). --- title: "Set up the dock" description: "Add a room dashboard for the whole home, put one away for yourself, bring it back, and move the dock to the left or right edge." slug: dash/guides/set-up-the-dock canonical: https://glasshome.app/docs/dash/guides/set-up-the-dock section: "Guides" updated: 2026-11-05 --- # Set up the dock The dock holds the dashboards each person opens most. Everyone starts from the home's dock, and a dashboard they may see is in it without anyone adding it. This guide makes one for the whole home, then shows how a single person puts it away and gets it back. ## Before you start - A tablet or computer shows every step. A phone does the same, except the last two steps: only wide screens move the dock to a side. - Adding a dashboard for the whole home is for people who manage it. Anyone can hide, reorder and add links in their own dock. - The pictures come from the newest version of GlassHome, so yours may look a little different. ## Step 1: Hold the dock (Tablet) Press and hold the dock for about half a second. Its items start to wiggle and a **+** slot appears at the end. **Settings**, then **Dock**, then **Edit dock** gets you here too. ![The tablet dashboard with the dock along the bottom edge, about to be pressed and held](/assets/guides/set-up-the-dock/01-hold-dock.webp) ## Step 2: Tap the plus (Tablet) The **+** opens **Add to dock**. It makes a dashboard or a link to any web address. ![The dock in edit mode with the Add to dock button at its end](/assets/guides/set-up-the-dock/02-add-to-dock.webp) ## Step 3: Pick a layout (Tablet) Under **Dashboard**, the first block is the layout. **Empty** starts blank. **Living room**, **Kitchen**, **Bedroom** and **Hallway** come with their widgets already placed, and each card says who made it. **More layouts** opens the whole browser, and the layout you choose there joins the cards, selected, with its maker beside the name. ![The Add to dock dialog with six layout cards: Empty, Living room, Kitchen, Bedroom and Hallway, each built-in one marked official and built in by GlassHome, and More layouts](/assets/guides/set-up-the-dock/03-pick-layout.webp) ## Step 4: Pick a room (Tablet) The **Room** row has a tile for every room in your home. Tap one and the name and icon fill in, and you can still change both. A room that already has a dashboard is left out. ![The Room row of the Add to dock dialog with one tile for each room in the home](/assets/guides/set-up-the-dock/04-pick-room.webp) ## Step 5: Choose who sees it (Tablet) **Who sees it** shows a face for each person. A face with a ring gets the dashboard in their dock, in the same place, the moment you tap **Create dashboard**. Tap a face to leave that person out. A lock means they already see every dashboard, so that face stays on. ![The Who sees it row in the Add to dock dialog, one face for each person, with Office picked above](/assets/guides/set-up-the-dock/05-who-sees-it.webp) ## Step 6: It lands in the dock (Tablet) The new dashboard sits just before Settings. Drag it to move it. Everyone's dock follows the same order until they rearrange their own. ![The new Office dashboard at the end of the dock, with a Dashboard created message](/assets/guides/set-up-the-dock/06-arrives.webp) ## Step 7: Switch to Just me (Tablet) The switch above the dock decides whose dock you change. **This home** is the dock everyone starts from. **Just me** changes only yours, so the next two steps leave everyone else alone. ![The This home and Just me switch above the dock, with Just me about to be tapped](/assets/guides/set-up-the-dock/07-just-me.webp) ## Step 8: Put one away (Tablet) Tap the **−** on a dashboard you never open, such as Outside in January. ![The minus button on the Outside dashboard in the dock about to be tapped](/assets/guides/set-up-the-dock/08-put-away.webp) ## Step 9: Hide it or delete it (Tablet) **Hide from my dock** keeps the dashboard for everyone else. **Delete** removes it for the whole home and shows how many widgets and people it affects. Deleting is only offered to people who may edit that dashboard. ![The Remove Outside dialog offering Hide from my dock, selected, and Delete, with a count of widgets and people](/assets/guides/set-up-the-dock/09-hide-or-delete.webp) ## Step 10: Open Hidden (Tablet) Once something is hidden, the **+** dialog gets a **Hidden** tab. ![The Add to dock dialog with a Hidden tab next to Dashboard and Link](/assets/guides/set-up-the-dock/10-hidden.webp) ## Step 11: Show it again (Tablet) Tap **Show** and the dashboard returns to its old place. Close the dialog and tap **Done** to leave edit mode. **Reset to home dock** appears while yours differs from the home's, and puts everything back. ![The Hidden tab listing Outside with a Show button](/assets/guides/set-up-the-dock/11-show-again.webp) ## Step 12: Open the dock settings (Tablet) In **Settings**, the **Dock** card has **Display mode** and **Position**. ![The Dock card in Settings with Display mode, Position and Edit dock](/assets/guides/set-up-the-dock/12-position.webp) ## Step 13: Pick a side (Tablet) Choose **Left** or **Right**. The dock moves at once and the dashboard keeps its layout. A phone and a small window keep the dock at the bottom. ![The Position list open with Bottom, Left and Right, Left about to be tapped](/assets/guides/set-up-the-dock/13-move-dock.webp) ## You are done when The dock is set up. A new member sees the home's dock, and every dashboard they may open is in it. If someone says they cannot see a dashboard, check their access in [People & access](/docs/dash/people-and-access#give-someone-their-own-access), because the dock follows it. Every gesture is in [Editing the dock](/docs/dash/editing#editing-the-dock). --- title: "Quickstart" description: "Install GlassHome, connect it to Home Assistant, and add your first widget in under 5 minutes." slug: dash/quickstart canonical: https://glasshome.app/docs/dash/quickstart section: "Getting started" updated: 2026-10-21 --- # Quickstart End-to-end in under 5 minutes: install, connect, customize. Assumes you already have Home Assistant running. ## Before you start - A reachable Home Assistant URL (e.g. `http://homeassistant.local:8123`, or `http://homeassistant.local` on Home Assistant OS set up since August 2026). Step by step: [Connect Home Assistant](/docs/dash/guides/connect-home-assistant). - A device to run GlassHome on. Same machine as HA is fine. CPU requirements: SSE4.2 / ARMv8 ([details](/docs/dash/installation#supported-cpus)). - No HA yet? You can still look around. Skip to step 2 and choose **Look around first** on the welcome screen. 1. **Install** Pick one. Both deploy the same app. **HA OS or Supervised users.** Add the [GlassHome Addon repository](/docs/dash/addon) and install from the Add-on Store. One-click, no Docker needed. **Everyone else.** Run the container: ```bash docker run -d \ --name glasshome-dash \ -p 3123:3123 \ -v glasshome_data:/data \ --restart unless-stopped \ ghcr.io/glasshome/dash:latest ``` 2. **Open Dash** Go to `http://:3123` in your browser. The welcome screen opens. For addon installs, `` is your Home Assistant machine's IP address (e.g. `http://192.168.1.100:3123`). No HA yet? Choose **Look around first** on the welcome screen to explore a demo home with nothing to set up. 3. **Connect and name your home** Choose **Continue with Home Assistant**. GlassHome looks for your Home Assistant on your network by itself. If it cannot find it, type the address you open Home Assistant with. Home Assistant's sign-in page opens. Sign in there once, and it sends you back to Dash automatically. Then the welcome screen asks for **Your name** and **Your home's name**. GlassHome fills in both for you. Change them if you like, then choose **Open my dashboard**. Stuck? See [Connecting](/docs/dash/connecting#troubleshooting). 4. **Add your first widget** The first time your dashboard loads, a short tour starts by itself and walks you through editing it. People who cannot edit dashboards get a shorter one about the dock. You can skip it at any point, and replay it later from Settings > General under "How GlassHome works". 1. Press and hold the dock to start editing. If the dock is hidden, press and hold the background and choose **Edit dashboard**. 2. Tap **Add widget**, above the dock, and pick a widget. 3. Pick the entity to bind. 4. Press and hold the dock again to finish. Changes save automatically. 5. **Make it yours** - **Settings > Theme.** Pick a preset or make your own. [Themes guide](/docs/dash/themes). - **Settings > Dashboards.** Add more dashboards, each with its own layout. - **Settings > Remote access.** Reach the dashboard from outside your home. [How](/docs/dash/remote-access). ## What next - **Use it well:** [Widgets](/docs/dash/widgets), [Editing](/docs/dash/editing), [Layouts](/docs/dash/layouts). - **Build your own widgets:** [Getting Started](/docs/widgets/widget-development). - **Something off:** [Troubleshooting](/docs/dash/troubleshooting) or post in [Discord](https://discord.gg/FJYdeDmrzv) and I'll take a look. > **Mental model first?:** If terms like Hub, addon, scope, and widget are blurring together, the [Concepts](/docs/dash/concepts) page is one screen. --- title: "Concepts" description: "The GlassHome mental model. Dash, Hub, addon, widget. What each piece is, where it runs, and how they connect." slug: dash/concepts canonical: https://glasshome.app/docs/dash/concepts section: "Getting started" updated: 2026-10-21 --- # Concepts A handful of terms come up across the docs. Skim this once and the rest reads faster. ## The pieces ### Dash (glasshome-dash) The app you actually interact with. A separate app with its own address, outside the Home Assistant interface. Runs on your hardware (Pi, NUC, NAS, HAOS). Its server holds your Home Assistant login and talks to HA over WebSocket on your behalf; your browser only ever talks to that server. Contains one or more dashboards (named screens you configure). ### Hub (this site) Cloud service at glasshome.app. Hosts the widget registry, your account, and organizations. Optional for using Dash. ### Addon A packaging of Dash for Home Assistant OS or Supervised. Installed via the HA Add-on Store. Same standalone app, easier install; it does not put GlassHome inside Home Assistant. ### Widget A piece of a dashboard, bound to one or more HA entities. Built-in or installed from Hub. SolidJS component + Zod config. ## Where things run Dash does not need Hub to run. Hub is only required if you want to install community widgets or publish your own. ## Glossary ### Everyday terms - **Dashboard.** A named screen inside Dash. You can have multiple dashboards, each with its own layout and widget set. - **Breakpoint.** A screen size with its own layout, picked by width: Phone (4 columns), Tablet (8), Desktop (12), and Wide screen (16 columns, from 1480 pixels wide). Each dashboard stores one layout per breakpoint. See [Layouts](/docs/dash/layouts). - **Remote address.** A web address you reach Dash at from outside your home, through your own VPN, proxy, or tunnel. Declared in Settings. See [Remote Access](/docs/dash/remote-access). ### Publishing terms - **Scope.** Publishing namespace. Your personal scope is your username (`@username`, auto-assigned at signup and editable in your account settings), and an [organization](/docs/hub/organizations)'s scope is its slug (`@org-slug`). Widget IDs look like `@scope/widget-name`. - **Manifest.** The `manifest.json` (or inline metadata in `defineWidget`) that describes a widget: name, icon, size limits, SDK version. - **configVersion.** Integer on a widget manifest. Bumped when the config shape changes in a breaking way. Drives [migrations](/docs/widgets/widget-migrations). - **Trust badge.** `Official` (verified, installs without prompt) or `Community` (user-published, asks for consent). See [Publishing](/docs/widgets/widget-publishing). ## Data flow 1. Browser loads Dash from your local server (e.g. `http://192.168.1.x:3123`). 2. The GlassHome server opens a WebSocket connection to Home Assistant for live entity state and relays it to your browser. See [How GlassHome Connects](/docs/dash/how-glasshome-connects). 3. When you add a community widget, Dash fetches its bundle from Hub's CDN once, then caches it locally. 4. Dash config (layouts, themes, connections) is stored in a local SQLite database. No sync to Hub. > **What never leaves your network:** Entity state, your layouts, your HA URL, your devices. The GlassHome server talks to HA directly, on your behalf. Hub never sees any of it. ## Hub vs. Dash accounts You sign into Hub (this site) to publish widgets or hold your license. Dash keeps its own accounts for the people in your home, on your GlassHome server. Each person signs in with their Home Assistant login, with a name and password, or through an invite link an admin sent them. Home Assistant sign-in uses HA's own OAuth. --- title: "Widget Security" description: "How GlassHome keeps community widgets away from your data and your devices, and where the edges still are." slug: dash/widget-security canonical: https://glasshome.app/docs/dash/widget-security section: "Dashboards" updated: 2026-10-11 --- # Widget Security Community widgets are made by other people and run on your dashboard. Here is what keeps them in line, and where the gaps are. ## Widgets ask before they act To switch something, a widget asks GlassHome. GlassHome checks what you said yes to when you installed it. One written to cheat can skip asking today; see [Not covered yet](#not-covered-yet). When you install a widget, GlassHome shows what it wants in plain words, like **"Climate" wants to: Control your thermostat**. You approve that list and nothing more. A widget that asks for a whole floor or room gets only the devices in it you approved. An update that wants more asks you again. ## What stays at home - **What a widget sees.** Your browser lets the dashboard talk only to your home server and GlassHome. A widget that can see your front door can only send it out through live video, below. - **Your Home Assistant login.** It lives on your home server and never reaches the app, so no widget can copy it. ## Sealed widgets Today a widget written to cheat can skip the question. It runs in the same space as the app, so it can act without asking GlassHome first. Sealed widgets close that gap: each widget runs sealed off, and asking is its only way out. From Dash 1.5, every widget runs sealed. There is no switch to turn it off. ## Not covered yet - **A widget written to cheat can skip the question.** It can then control things you did not approve. Sealed widgets close this. Until then, install widgets from makers you trust. - **Live video can leave home.** Browsers do not apply the dashboard's rules to live video connections, which the camera widget uses. A widget written to cheat could open one to its own server. Sealed widgets close this too. - **Nobody reviews every widget's code yet.** Your safety comes from these rules and the permissions you grant. A review step for the catalog may come later. > **For the technically curious:** Data stays home through a strict Content-Security-Policy egress allowlist, and GlassHome refuses any widget service call that names a URL. The Home Assistant access token lives only on your GlassHome server, which authenticates the relayed WebSocket itself; the app and its Web Worker hold no token. The worker checks every widget service call against the same capability grants the consent screen showed you. Widgets render in a closed shadow root, built-in objects are frozen, and `eval` is off. Every published bundle is SHA-256 verified before it is served. Sealed widgets run in QuickJS compiled to WebAssembly, one context per installed widget (display-only widgets from the same publisher share one), with no DOM, network or storage; the host applies each widget's page changes through an allowlist and caps its CPU time and memory. ## Reporting a security issue Found a way around any of this? Email **[contact@glasshome.app](mailto:contact@glasshome.app)** with steps to reproduce, or find me on the [GlassHome Discord](https://discord.gg/FJYdeDmrzv). I read every report and gladly credit people who report responsibly. --- title: "Home Assistant Addon" description: "Install GlassHome as a Home Assistant addon. One-click setup for HAOS and Supervised users." slug: dash/addon canonical: https://glasshome.app/docs/dash/addon section: "Installation" updated: 2026-10-21 --- # Home Assistant Addon The easiest way to run GlassHome if you're on Home Assistant OS or Home Assistant Supervised. The addon runs GlassHome next to Home Assistant; GlassHome stays its own app with its own address. ## Prerequisites - Home Assistant OS or Home Assistant Supervised (both include the Add-on Store with Supervisor). - A 64-bit device: Raspberry Pi 4 or 5, or an x86-64 machine with SSE4.2. See [Supported CPUs](/docs/dash/installation#supported-cpus). ## Installation 1. **Add the repository** Add GlassHome to your addon store. Add Repository > **Button didn't work? Add manually:** Open **Settings > Add-ons > Add-on Store**, click the **⋮ menu** (top-right) and choose **Repositories**. Paste this URL and click **Add**: > > ``` > https://github.com/glasshome/homeassistant-addon > ``` 2. **Install the addon** Find GlassHome in the Add-on Store and click Install. 3. **Start and access** Start the addon. Open `http://:3123` in your browser. 4. **Connect Home Assistant** The welcome screen finds Home Assistant and asks you to sign in once. Every screen, with pictures: [Connect Home Assistant](/docs/dash/guides/connect-home-assistant). > **Opens outside Home Assistant:** GlassHome does not appear in the Home Assistant sidebar or the Home Assistant app. Ingress will never be supported: the way GlassHome and its widgets are built cannot run inside Home Assistant. Open it directly at `http://:3123`, where `` is the IP address of your Home Assistant machine. Away from home, Nabu Casa does not reach it either; see [Remote Access](/docs/dash/remote-access). ## Updating Check **Settings > Add-ons** for available updates. You'll see a notification when a new version is available. ## Edge Channel The same repository includes **GlassHome Beta (unstable)**, the Edge channel. It carries test builds for trying new features and reporting what breaks. Enable **Advanced Mode** in your HA profile to see it in the Add-on Store. It runs on port **3124**, so it can run side by side with the stable addon. > **Beta breaks often:** Features come and go, and boards may need redoing. Never make it your only dashboard. Use the stable version for your daily driver. A beta build wears a small "beta" ribbon in the bottom-right corner of the dashboard, and a release candidate wears "rc". The ribbon cannot be turned off. GlassHome asks once whether you understand it can break, the first time you open the first beta of a new version; tap "I understand this can break" to continue. It asks once more at that version's first release candidate. Settings shows the version with its stage, for example "Beta 1.5.0-beta.3". To go back to stable, stop and uninstall GlassHome Beta (unstable), then install GlassHome Dashboard from the same repository. Beta dashboards and settings do not carry over. ## Troubleshooting - **Addon not visible after adding the repository.** Refresh the Add-on Store page (the ⋮ menu has a "Check for updates" option). It can take a moment for the new addon to appear. - **Addon fails to start: port conflict.** Port 3123 may already be in use on your HA host. Check for other services listening on that port and stop them before starting GlassHome. - **Addon fails to start: unsupported architecture.** GlassHome requires a 64-bit CPU (Pi 4/5, x86-64 with SSE4.2). 32-bit installs and Pi 3 are not supported. See [Supported CPUs](/docs/dash/installation#supported-cpus). ## Related docs - [Connect Home Assistant](/docs/dash/guides/connect-home-assistant): the welcome screen, step by step - [Connecting to Home Assistant](/docs/dash/connecting): pair Dash with HA after install - [Docker installation](/docs/dash/docker): alternative install for non-HAOS setups - [Quickstart](/docs/dash/quickstart): first dashboard in five minutes - [Troubleshooting](/docs/dash/troubleshooting): common install issues --- title: "Bug Reports" description: "How to report bugs in GlassHome. What to include, where to find logs, and how to help get it fixed fast." slug: dash/bug-reports canonical: https://glasshome.app/docs/dash/bug-reports section: "Troubleshooting" updated: 2026-10-08 --- # Bug Reports Something not working right? Your reports genuinely help shape GlassHome into something better. ## Where to Report Head to the [GlassHome Discord](https://discord.gg/FJYdeDmrzv) and post in the **#bug-reports** channel. ## Copy Diagnostics Open **Settings > General** and tap **Copy diagnostics**. It collects the recent connection log from your server and from this device, and that is most of what I need. On a computer it copies the text to your clipboard. On a phone or tablet it opens the share sheet, so you can send the file on from there. Paste it into your report. The button is for household admins, and it does not appear on demo.glasshome.app. ## What to Include The more context you give, the faster I can track it down. Try to include as many of these as you can: - **What happened.** Describe what you did and what went wrong. "I tapped the light widget and nothing happened" is better than "light widget broken". - **What you expected.** What should have happened instead. - **Steps to reproduce.** Can you make it happen again? Step-by-step instructions help a lot, even if they seem obvious. - **Screenshot or screen recording.** A picture is worth a thousand words. A short video of the issue is even better. - **GlassHome version.** Shown under **Version** in **Settings > General**. The diagnostics include it too. - **Device and browser.** What are you running GlassHome on? Phone, tablet, desktop? Which browser? This matters for layout and touch issues. - **How you installed GlassHome.** HA addon, Docker, or something else? Include the architecture (amd64, aarch64) if you know it. ## Getting Logs Logs often reveal what went wrong behind the scenes. **Copy diagnostics** covers the GlassHome side. If you can't reach Settings, use the logs below. ### HA Addon Logs Go to **Settings > Add-ons > GlassHome Dashboard > Log** in Home Assistant. Copy the output. ### Docker Logs ```bash docker logs glasshome ``` ### Browser Console Open your browser's developer tools (F12 or Ctrl+Shift+I), go to the **Console** tab, and copy any red errors. This is especially useful for UI bugs and widget issues. ## Template Feel free to copy-paste this into Discord and fill it in: ``` **What happened:** [describe the bug] **Steps to reproduce:** 1. [first step] 2. [second step] 3. [what goes wrong] **Expected behavior:** [what should have happened] **Version:** [e.g. 1.4.0] **Device:** [e.g. iPad, Chrome on Windows, Pixel 8] **Install method:** [HA addon / Docker] **Logs / screenshots:** [paste logs or attach screenshots] ``` > **Not sure if it's a bug?:** Post it anyway. If it turns out to be a question or a feature request, I'll point you in the right direction. --- title: "Changelog" description: "Release history for the GlassHome dashboard, version by version." slug: dash/changelog canonical: https://glasshome.app/docs/dash/changelog section: "Reference" updated: 2026-08-15 --- # Changelog Every dashboard release, newest first, as it ships in the Home Assistant add-on and the Docker image. Widget SDK releases live in the [SDK changelog](/docs/widgets/changelog), CLI releases in the [CLI changelog](/docs/widgets/cli-changelog), Hub API changes in the [Hub changelog](/docs/hub/changelog). Patch = bug fixes, minor = features, major = breaking config or SDK changes. Beta versions ship on the add-on's edge channel first; the stable channel gets the rolled-up release. Announcements land in [Discord](https://discord.gg/FJYdeDmrzv) `#announcements`, or subscribe to the [RSS feed](/docs/rss.xml). --- title: "Connecting to Home Assistant" description: "Pair GlassHome with your Home Assistant instance. Welcome screen, demo home, address formats, the Home Assistant panel, and reconnecting." slug: dash/connecting canonical: https://glasshome.app/docs/dash/connecting section: "Getting started" updated: 2026-10-21 --- # Connecting to Home Assistant After [installing](/docs/dash/installation), open `http://:3123`. The welcome screen opens on first launch and looks for your Home Assistant by itself. ## Connection methods ### Continue with Home Assistant GlassHome finds Home Assistant on your network by itself and asks for the address only when it finds nothing. Sign in there once, and it sends you back. No tokens to copy or rotate. ### Look around first A demo home with its own sun and weather, seven dashboards, a family, a kitchen tablet and a live front door camera. Nothing to set up. Start over in Settings puts it back the way it started, and a copy is cleared once it is a day old and nobody has used it for an hour. Ready for the real thing? Choose Use my Home Assistant in Settings, then connect Home Assistant from the welcome screen. Already set up? An admin can still look around: in Settings, tap the **Sample home** row on your home's card. It opens the demo in this browser, so you sign in again when you leave it. Uploading pictures, Developer Mode, connecting widgets you are building and copying diagnostics stay with your own home. ## When you type the address The welcome screen asks for the address only when it cannot find Home Assistant. The address must include the protocol and the port Home Assistant is actually listening on. Step by step, with every message you can meet: [Connect Home Assistant](/docs/dash/guides/connect-home-assistant). | Setup | Address example | | -------------------------------------- | --------------------------------- | | HA on the same LAN, plain HTTP | `http://homeassistant.local:8123` | | HA OS set up since 2026.8 (port 80) | `http://homeassistant.local` | | HA on a fixed IP | `http://192.168.1.100:8123` | | HA behind HTTPS (reverse proxy / Nabu) | `https://ha.example.com` | > **The address must match what HA serves:** If HA is behind HTTPS, use `https://`. If HA is plain HTTP, use `http://`. A mismatch fails silently or returns a confusing CORS error. ## What happens when you connect 1. GlassHome finds Home Assistant, or uses the address you typed. 2. Your browser opens Home Assistant's sign-in page, and you approve GlassHome there. 3. Home Assistant gives GlassHome's server a token. 4. The token is stored in Dash's local SQLite (never sent to Hub). ## The Home Assistant panel In **Settings**, the **Home Assistant** panel shows your address, how many entities GlassHome can see (the things Home Assistant tracks, like lights and sensors), and a diagram of the connection. A sentence appears there only when something is wrong. To move to a different Home Assistant, change the address and tap **Save**. Your dashboards and layouts are stored locally and stay; only the Home Assistant connection is replaced. **Disconnect** removes the connection and stops Home Assistant sign-in until you connect again. Only admins see it. ## Privacy The GlassHome server talks to HA directly over WebSocket; your browser only ever talks to that server. Entity state, your HA URL, and the auth token never leave your network, and never reach Hub. See [How GlassHome Connects](/docs/dash/how-glasshome-connects). ## Troubleshooting | Symptom | Likely cause | Fix | | -------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Welcome screen rejects the address | Missing protocol or wrong port. | Try the address in a browser tab first. Add `http://` or `https://` and confirm the port. | | "That address answers, but it isn't Home Assistant" | Something else lives at that address and port, often GlassHome itself (port 3123) or a NAS page. | Type the address you open Home Assistant with, usually ending in `:8123`. | | Stuck on the welcome screen after Continue with Home Assistant | This device cannot reach Home Assistant, even though the GlassHome server can. | After about ten seconds GlassHome says so and suggests Home Assistant's IP address. Try that address, or use **Code from a phone** on a device that is already signed in. | | Mixed-content / CORS error in console | HTTPS Dash URL + plain HTTP HA URL (or vice versa). | Options: serve HA over HTTPS (Nabu Casa or a reverse proxy), access Dash over plain HTTP on your local network, or use a VPN so both are on the same network. | | Connection drops after restart | HA was rebooted while the WebSocket was open. | Refresh the page. Dash reconnects automatically. | | Connected but entities not loading | Token user has no entity permissions in HA. | Re-authorize with a fully-permitted HA user. | Still stuck? See [Troubleshooting](/docs/dash/troubleshooting) or post in [Discord](https://discord.gg/FJYdeDmrzv) and I'll take a look. ## Related docs - [Home Assistant Addon](/docs/dash/addon) or [Docker](/docs/dash/docker): install Dash first - [Quickstart](/docs/dash/quickstart): what to do once connected - [How GlassHome Connects](/docs/dash/how-glasshome-connects): the three connections behind your dashboard, explained - [Remote Access](/docs/dash/remote-access): reach your dashboards from outside your network --- title: "Invite someone" description: "Add a person who has no Home Assistant account. You pick their rooms, send a link, and they choose a password." slug: dash/guides/invite-someone canonical: https://glasshome.app/docs/dash/guides/invite-someone section: "Guides" updated: 2026-10-08 --- # Invite someone Your partner, a flatmate, the grandparents who visit every Sunday: each of them can get their own GlassHome login. None of them needs a Home Assistant account. ## Before you start - You are an admin. - A way to get a link to them: a message, an email, or your screen for them to scan. - Two minutes on your side. They need a phone or computer and a password they will remember. - The pictures come from the newest version of GlassHome, so yours may look a little different. ## Step 1: Tap Add person (You) Open **Settings**, go to **People & Devices** and tap **Add person**. ![The People and Devices section of Settings with the Add person button highlighted next to the People list](/assets/guides/invite-someone/01-people.webp) ## Step 2: Choose Local account (You) Pick **Local account**. They get an invite link and choose their own password. ![A dialog titled How do they sign in, with Local account highlighted above Home Assistant](/assets/guides/invite-someone/02-how-they-sign-in.webp) ## Step 3: Pick a starting point (You) **Everything**, **Chosen rooms** or **Look, don't touch**. It only fills in the next screen, so pick the closest and fine-tune there. ![A dialog titled What can they do, with the options Everything, Chosen rooms and Look, don't touch; Chosen rooms is highlighted](/assets/guides/invite-someone/03-starting-point.webp) ## Step 4: Type their name (You) Type the name they will see on their screen. Below it, choose which dashboards they see, and whether they can edit them. ![The Name and access step with the name Maya typed in, prefilled from Chosen rooms, and All dashboards switched on](/assets/guides/invite-someone/04-name.webp) ## Step 5: Pick their rooms (You) Pick the rooms they may use and check **Control**. Door locks, alarm, cameras and garage stay off unless you switch them on. Tap **Next**. ![The Rooms section with Living Room chosen, and under Control, Can control devices on and Door locks off](/assets/guides/invite-someone/05-rooms.webp) ## Step 6: Share the link (You) Tap **Copy** and send them the link, or let them scan the QR code. The link uses your dashboard's own address, works once and runs out after 7 days, so treat it like a house key. ![A dialog titled Invite Maya with a QR code, the invite link in a field, and a Copy button highlighted](/assets/guides/invite-someone/06-invite-link.webp) ## Step 7: They open it and join (Them) They open the link, check their name, pick a password and tap **Join**. That's their only chore. ![A phone showing You're invited to Maple House, with Your name and Password fields and a Join button](/assets/guides/invite-someone/07-invite-opened.webp) ## You are done when They land on the dashboards you gave them, and their row shows up in People & Devices. From then on they sign in with **Name and password** on the welcome screen. Want to change what they can reach? [Choose what someone controls](/docs/dash/guides/choose-access). Invites, resends and forgotten passwords are covered in [People & access](/docs/dash/people-and-access#invite-someone-without-a-home-assistant-login). --- title: "Layouts" description: "Responsive grid breakpoints and managing multiple dashboards. Layouts are per breakpoint and per dashboard." slug: dash/layouts canonical: https://glasshome.app/docs/dash/layouts section: "Dashboards" updated: 2026-10-04 --- # Layouts Each dashboard keeps its own independent layout per breakpoint. Rearranging on your phone does not change the desktop layout. > **Layouts are per breakpoint:** Dash stores a separate widget arrangement for each screen-width breakpoint. Changes you make on a phone (small breakpoint) leave the tablet and desktop layouts untouched. ## Responsive Breakpoints The grid adapts columns to the width it has. Up to Desktop it stops growing and sits centered; on a wide screen it stretches from edge to edge with no limit. | Screen | Grid width | Columns | | ----------- | ---------- | ------- | | Wide screen | ≥1480px | 16 | | Desktop | ≥1024px | 12 | | Tablet | ≥768px | 8 | | Phone | \<768px | 4 | Width here is what the page shows after your computer's display scaling and the browser's zoom, so zooming in can move a screen to a smaller layout. A dashboard made before the wide-screen layout existed gets one copied from its desktop layout, centered, the first time the new version starts. ## Editing All editing (moving, resizing, adding, removing widgets) happens in edit mode. Edit mode can also show a smaller screen's layout, so you can arrange your phone from your computer. See [Editing](/docs/dash/editing) for the full gesture reference and step-by-step. ## Multiple Dashboards Create dashboards in **Settings > Dashboards** or with **+** on the dock. Each has its own widget set and independent layout per breakpoint. Moving the dock to the left or right edge never changes which layout a screen shows. Switch between dashboards via the dock, or swipe sideways (one or two fingers on a touchscreen, two on a trackpad) to move to the next or previous one in dock order. Dragging a widget's slider, or holding a widget, stays with the widget. Manage dashboards (rename, delete, reorder) in **Settings > Dashboards**. ![Alternative dashboard layout](/assets/screenshots/home-ocean-breeze-dark-desktop.webp) Each dashboard has its own independent layout --- title: "How GlassHome Connects" description: "The three connections behind your dashboard, and which one to check when something doesn't load." slug: dash/how-glasshome-connects canonical: https://glasshome.app/docs/dash/how-glasshome-connects section: "Getting started" updated: 2026-10-08 --- # How GlassHome Connects Under the hood there are three separate connections. Most problems come down to exactly one of them. Three things follow from this picture: - **Your device only talks to the GlassHome server.** If the dashboard won't load at all, that link is the problem. If it loads but nothing updates, the GlassHome-to-HA link is the problem. - **Sign-in is the one exception.** Your browser visits Home Assistant's own login page once, approves the connection, and comes back. Same pattern as "Sign in with Google", with your HA playing that role. After that, HA hands GlassHome a long-lived token; your device never holds HA credentials. - **Everything live is relayed.** State updates, commands, camera and media content all flow through the GlassHome server, which holds the one token for your home and talks to Home Assistant on your behalf. Your phone, tablet, or laptop never talks to Home Assistant directly and never holds that token. ## Several screens at once If your phone, a wall tablet, and someone else's laptop all have GlassHome open, each one gets its own live connection through the GlassHome server. They don't queue behind a single link: one screen changing a light doesn't make another screen's updates wait. Each connection only carries what that person is allowed to see. If someone's access covers a few rooms, their screen never receives updates for the rest of the house. The server also keeps one shared background connection per home, tracking which rooms and devices exist. So six open screens means six connections to Home Assistant, plus that shared one. A dozen always-on kiosks ask more of Home Assistant than a single phone, worth knowing if HA feels sluggish. ## Which address to give GlassHome - **Use the local address** (usually `http://192.168.x.x:8123`), not your remote URL (DuckDNS, Nabu Casa, your domain). A remote URL sends every tap across the internet and back, and dies with your internet connection. Some routers can't even loop back to it from inside the house. Your remote URL's job is [Remote Access](/docs/dash/remote-access), not this field. - **Prefer the IP over `.local` names** if things are flaky. `homeassistant.local` relies on mDNS discovery, which silently fails on some devices and networks; an IP always resolves. ## Signing in when this device can't reach Home Assistant 1. **At home**: use the Home Assistant sign-in. The green check means the GlassHome server can reach HA; the sign-in itself is where your device has to reach it, and if HA's login page doesn't open within about ten seconds you're brought back with a note to try its IP address instead. 2. **Away, or on a kiosk that can't reach HA, with another device already signed in**: use **Code from a phone**. The new device shows a short code; approve it from any signed-in device. 3. **Away and nothing signed in yet**: the very first setup must happen at home. HA's login page has to load on the device doing the first sign-in; that's an HA requirement. ## Troubleshooting: which connection is failing | What you're seeing | Problem link | What to check | | ------------------------------------ | ------------------------------------- | ------------------------------------------------------------------------------------------------ | | Dashboard won't load at all | Device → GlassHome | Does the GlassHome address load in a plain browser tab? Try the IP address in place of `.local`. | | Loads, but entities never update | GlassHome → HA | Is HA itself reachable and running? Recent restart or network change? | | Stuck on HA's login page | Device → HA (sign-in hop) | Can this device reach HA directly? Otherwise use Code from a phone. | | Camera/media images fail, rest works | GlassHome → HA (media relay) | Does the entity work inside HA itself? | | Works at home, fails away | Device → GlassHome, over the internet | See [Remote Access](/docs/dash/remote-access). | ## Related docs - [Connecting to Home Assistant](/docs/dash/connecting): the sign-in step, URL formats, reconnecting - [Remote Access](/docs/dash/remote-access): reaching GlassHome from outside your home - [Concepts](/docs/dash/concepts): how GlassHome, Home Assistant, and Hub relate --- title: "Docker Deployment" description: "Deploy GlassHome with Docker Compose or standalone container. Multi-arch image, amd64 and aarch64 auto-selected." slug: dash/docker canonical: https://glasshome.app/docs/dash/docker section: "Installation" updated: 2026-10-19 --- # Docker Run GlassHome with Docker Compose or as a standalone container. The image is multi-arch: Docker picks the right build for your machine automatically (amd64 or aarch64). > **VM or older CPU?:** If Dash crashes immediately with `signal 4 / illegal instruction`, your CPU or VM profile is missing SSE4.2. See [Supported CPUs](/docs/dash/installation#supported-cpus) for the fix. ## Docker Compose ```yaml services: glasshome-dash: image: ghcr.io/glasshome/dash:latest container_name: glasshome-dash restart: unless-stopped ports: - "3123:3123" volumes: - glasshome_data:/data volumes: glasshome_data: driver: local ``` The image already listens on `3123` and stores data in `/data`, so there is nothing to configure. Set `PORT` or `DATA_DIR` only if you want a different internal port or data path, and update the right side of the `ports` mapping to match the new port. Behind a reverse proxy, also set `TRUSTED_PROXIES` to the proxy's address or network. See [Remote access](/docs/dash/remote-access). ## Direct Container ```bash docker run -d \ --name glasshome-dash \ -p 3123:3123 \ -v glasshome_data:/data \ --restart unless-stopped \ ghcr.io/glasshome/dash:latest ``` > **Don't skip the volume:** The `glasshome_data:/data` volume stores your SQLite database, dashboards, settings, and connections. All your data lives here. ## Container Image Published to `ghcr.io/glasshome/dash:latest`. Runs on amd64 (PCs, Intel/AMD servers) and aarch64 (Raspberry Pi, Apple Silicon). ## Ports Default `3123`. Override with `-p YOUR_PORT:3123`. ## Updating **Docker Compose:** ```bash docker compose pull && docker compose up -d ``` **Standalone container** (no Compose): ```bash docker pull ghcr.io/glasshome/dash:latest docker rm -f glasshome-dash docker run -d \ --name glasshome-dash \ -p 3123:3123 \ -v glasshome_data:/data \ --restart unless-stopped \ ghcr.io/glasshome/dash:latest ``` Data in the `glasshome_data` volume is not touched by either method. ## Beta builds Test builds for trying new features and reporting what breaks (the same builds the addon's GlassHome Beta (unstable) channel tracks). Features come and go. Beta runs on its own port, container name and volume, so it sits beside a stable install with a separate database and leaves the one you use every day alone. **Docker Compose:** ```yaml services: glasshome-dash-beta: image: ghcr.io/glasshome/dash:beta container_name: glasshome-dash-beta restart: unless-stopped ports: - "3124:3123" volumes: - glasshome_beta_data:/data volumes: glasshome_beta_data: driver: local ``` **Direct container:** ```bash docker run -d \ --name glasshome-dash-beta \ -p 3124:3123 \ -v glasshome_beta_data:/data \ --restart unless-stopped \ ghcr.io/glasshome/dash:beta ``` Open beta at `http://:3124`. It starts empty, so the welcome screen opens and connects it to Home Assistant like a fresh install. To pin a specific build and stop following `beta`, pick a version from the [GHCR tags page](https://github.com/orgs/glasshome/packages/container/package/dash). > **Beta breaks often:** Never make it your only dashboard. Keep the stable `latest` container on port 3123 as your daily driver. Beta dashboards and settings live in `glasshome_beta_data` and do not carry over to stable. A beta build wears a small "beta" ribbon in the bottom-right corner of the dashboard. It cannot be turned off. GlassHome asks once whether you understand it can break, the first time you open the first beta of a new version; tap "I understand this can break" to continue. It asks once more at that version's first release candidate. Settings shows the version with its stage, for example "Beta 1.5.0-beta.3". The `beta` tag moves on every release, stable ones included. New beta builds land on the same `beta` tag, so updating is the usual pull: ```bash docker compose pull && docker compose up -d ``` Standalone, `docker pull ghcr.io/glasshome/dash:beta`, then remove and re-run the container with the command above. Done testing? `docker rm -f glasshome-dash-beta`. Your stable install never noticed. ## Release candidates Before a stable release, one release candidate shows the line is nearly done. It wears an "rc" ribbon and asks once, with its own wording, before you use it. Widget creators check their widgets on it: ```bash docker run -d \ --name glasshome-dash-rc \ -p 3125:3123 \ -v glasshome_rc_data:/data \ --restart unless-stopped \ ghcr.io/glasshome/dash:rc ``` The `rc` tag moves on every release candidate and every stable release, so it never trails `latest`. It runs on port 3125 with its own volume, beside stable and beta. ## Related docs - [Connect Home Assistant](/docs/dash/guides/connect-home-assistant): the welcome screen, step by step - [Connecting to Home Assistant](/docs/dash/connecting): pair Dash with HA after install - [Home Assistant Addon](/docs/dash/addon): one-click install for HAOS users - [Quickstart](/docs/dash/quickstart): first dashboard in five minutes - [Troubleshooting](/docs/dash/troubleshooting): common install issues --- title: "Editing Your Dashboard" description: "Enter edit mode, add and remove widgets, move and resize widgets. Full gesture reference for live and edit mode." slug: dash/editing canonical: https://glasshome.app/docs/dash/editing section: "Dashboards" updated: 2026-10-08 --- # Editing Your Dashboard How to enter edit mode, arrange widgets, and what every gesture does in both live and edit mode. ### Hold the dock Press and hold the dock for about half a second, or press and hold the dashboard background and choose Edit dashboard. A faint grid overlay appears. ### Rearrange Move, resize, add, remove. Every action saves automatically. ### Hold the dock again Returns to the live dashboard. Escape does the same on a keyboard, the background menu offers the same choice, and edit mode leaves itself after three idle minutes. No Save or Discard buttons; changes are already persisted. The Header widget carries your dashboard's name, the time, the weather and what is on. Move it, resize it, or remove it like any other widget, and add a second one with your own title as a heading for a section of the grid. Holding the dock always edits the dock, for everyone. The widgets only move when you may edit that dashboard, so if they stay still, ask someone who manages this home. [Editing the dock](#editing-the-dock) covers the dock itself. ![A dashboard in edit mode: every widget shows a grip in the middle, a resize handle at the corner and an X](/assets/screens/edit-mode-dark.webp) Edit mode. The grip moves a widget, the corner handle resizes it, the X removes it. Editing is something they grant per person, see [People & access](/docs/dash/people-and-access). ## Gestures The same input produces different effects depending on whether you are in live mode or edit mode. | Gesture (desktop) | Gesture (touch) | Live mode | Edit mode | | ---------------------------- | ------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------ | | Click | Tap | Primary action (toggle, run scene) | Select widget | | Click and hold 350 ms | Long-press 350 ms | Open the widget's sheet (see [Holding a widget](#holding-a-widget)) | (n/a) | | Click and hold 300 ms | Long-press 300 ms | (n/a) | Open the widget's settings | | Click and drag inside widget | Slide along the widget | Adjust primary value (brightness, cover) | (n/a) | | Press and drag the widget | Drag the grip in the middle | (n/a) | Move widget; surrounding widgets make room | | Drag corner grip | Drag corner grip, or pinch with two fingers | (n/a) | Resize widget | | (n/a) | Second finger while holding a widget | (n/a) | Scroll the page | ## Holding a widget Hold a widget anywhere, its buttons included, and it fills from your finger, like the dock. When the fill is complete, a sheet grows out of the widget over the blurred dashboard, centred on it and kept on screen near the edges; on a phone it comes up from the bottom. The sheet holds only what the widget has no room for: each light, blind or speaker in a group, colours, modes, sources, the days ahead and history. A widget that already shows everything says so, and a widget you have not set up yet opens its settings. A light's sheet has a row of whites and the colours you used last on this screen, a bar from warm to cool white, and a colour disc when the lamps take colour. If only some lamps in the group take colour, the sheet says so. Hold one lamp's row to set that lamp alone. In edit mode, holding a widget opens its settings directly. With Developer Mode on (an admin switch, see [People & access](/docs/dash/people-and-access)), the sheet and the settings also show Edit, Controls and Debug tabs, and Debug lists each entity's state and attributes. ## Adding While editing, tap **Add widget** above the dock, or choose Add widget from the background menu. Pick a widget from the picker and it lands in the first free spot at the current breakpoint. Drag it where you want, then hold the dock again to leave edit mode. The background menu also shows **Done** while you are editing, next to Add widget. If the dock is hidden, this menu is how you enter and leave edit mode. After you pick a widget, a dialog asks whether it goes on this screen size or every size. ## Editing another screen size Each screen size keeps its own layout. While editing, the phone, tablet, desktop and wide-screen buttons beside **Add widget** switch the dashboard to that layout at its real width, so you can arrange your phone layout from your computer. Only sizes that fit on your screen are offered, and leaving edit mode returns to your own screen. When some of the dashboard's widgets aren't on the size you're looking at, a button next to them says how many, for example **2 not on Phone**. Tap it and pick a widget to put it on this size; the dashboard scrolls to where it landed. For widget types, community widgets, and building your own, see [Widgets](/docs/dash/widgets). ## Moving ### Desktop Press on a widget and drag. Widgets make room as soon as it is a third of the way into their spot, and the marker shows where it will land. ### Mobile Drag the grip in the middle of a widget. Swipes on the rest of the widget scroll the page. While you hold a widget, scroll with a second finger to reach further down. > **Autoscroll while dragging:** Hold a picked widget still near the top or bottom edge of the screen (just above the dock) and the page scrolls automatically. You can place a widget anywhere on a long dashboard without dropping it, and passing by the edge on the way to the dock does not scroll. ### To another dashboard Drag a widget onto a dashboard in the dock. The dock's highlight slides to that dashboard; let go and the widget moves there, into the first free spot. That dashboard opens with the moved widget lit until your next touch, so you can drag it into place. **Undo** on the message puts it back where it was. If the dock has more dashboards than fit, rest the widget on the dots under the dock to turn the page. ## Resizing Drag the small grip at the bottom-right corner of any widget, or pinch it with two fingers: spread sideways to widen it, up and down to make it taller. The touch hit area extends beyond the visible grip so even 1x1 widgets are resizable with a finger. Each widget declares its own min and max size; the widget stops growing when you reach a limit. ## Motion Settings > Grid picks how widgets appear and leave, what marks the spot a moved widget will land on, and whether widgets appear one by one when a dashboard opens. The small dashboard at the top plays each choice as you pick it, and Replay plays it again. Reduce motion, in Settings > General, turns all of it off. ## Removing In edit mode each widget shows an **X** in the top-right corner. Tap it and a dialog asks you to confirm. If the widget is on more than one screen size, the dialog also asks whether to remove it from this screen size or from every size. The widget stays installed locally and can be re-added from the picker. ## Editing the dock Hold the dock and its items wiggle, each with a **−** on its corner and a **+** slot at the end. **Settings > Dock > Edit dock** gets there too, and is the only way in when the dock is hidden. - **Add.** Tap **+** for a new dashboard, started from one of your rooms or typed by name, or for a link to any web address. - **Change.** Tap an item to rename it, pick another icon or choose who sees it. A dashboard made from a room says which room it is linked to. - **Put away.** Tap **−**. Everyone can hide an item from their own dock and bring it back from the **Hidden** tab of the **+** dialog. Deleting is for people who may edit that dashboard, and the dialog counts the widgets and people it affects. Settings stays put. - **Reorder.** Drag an item. Resting on the dots turns the page when the dock has more items than fit. - **Move the dock.** On a tablet or computer, drag the dock to the left or right edge, or use **Settings > Dock > Position**. A phone keeps it at the bottom. - **This home or just me.** Admins get a switch above the dock. **This home** changes the dock everyone starts from, **Just me** changes only theirs. **Reset to home dock** appears when yours differs. [Set up the dock](/docs/dash/guides/set-up-the-dock) walks through it step by step. ## Widget settings (config dialog) To configure a widget's bound entity, display options, size, or color: press and hold the widget while in edit mode. The config dialog opens with fields auto-generated from the widget's schema. Changes save instantly, no apply button. --- title: "Choose what someone controls" description: "Set the dashboards, rooms and controls one person gets. Lights for the kids, the alarm stays yours." slug: dash/guides/choose-access canonical: https://glasshome.app/docs/dash/guides/choose-access section: "Guides" updated: 2026-09-25 --- # Choose what someone controls Everyone in your home can have a different set of keys. You change them on one card, and their screen picks up the change within about a second, even mid-use. ## Before you start - You are an admin, and the person is already in your home. Not yet? [Invite them](/docs/dash/guides/invite-someone) first. - You cannot change your own access, and only the owner can change another admin. - The pictures come from the newest version of GlassHome, so yours may look a little different. ## Step 1: Open their card (You) In **Settings**, under **People & Devices**, tap the person. Their row already sums up what they can reach. ![The People list in Settings with Sofia's row highlighted; it reads Bedroom, Living Room, no locks, no cameras](/assets/guides/choose-access/01-open-person.webp) ## Step 2: Pick their dashboards (You) Leave **All dashboards** on, or switch it off and choose which dashboards they see, and whether they can edit them. ![Sofia's card with All dashboards off and each dashboard set to Off, View or Edit](/assets/guides/choose-access/02-dashboards.webp) ## Step 3: Pick their rooms (You) Turn off **Whole home** and pick rooms. Devices in the other rooms do not exist for them. ![The Rooms section of Sofia's card with Whole home off and 2 rooms chosen in the picker](/assets/guides/choose-access/03-rooms.webp) ## Step 4: Decide what they can switch (You) **Can control devices** lets them switch things; off means look only. Door locks, alarm, cameras and garage each have their own switch. Visiting for a week? Set **Access ends**. ![The Control section with Can control devices on and Door locks, Alarm, Cameras and Garage all off, above Access ends set to Never](/assets/guides/choose-access/04-control.webp) ## You are done when Their row in People & Devices lists the rooms and what is off limits, and their screen has already caught up. Every dashboard you set to View or Edit is in their dock too, with nothing for them to add. Tap **Done** to close the card. What each switch means, and the limits worth knowing, are in [People & access](/docs/dash/people-and-access#give-someone-their-own-access). --- title: "Connect your own phone" description: "Scan one code and your phone opens your dashboard, signed in as you, with your own access." slug: dash/guides/your-phone canonical: https://glasshome.app/docs/dash/guides/your-phone section: "Guides" updated: 2026-10-08 --- # Connect your own phone Already signed in on your computer? Scan one code with your phone and it's signed in too. ## Before you start - You are an admin, signed in on a computer. - Your phone has a camera and can reach your dashboard's address. - One minute. ## Step 1: Tap Connect device (Computer) In **Settings**, go to **People & Devices** and tap **Connect device** above the Devices list. ![The People and Devices lists in Settings, with the Connect device button highlighted above the Devices list](/assets/guides/your-phone/01-people-and-devices.webp) ## Step 2: Choose Me (Computer) Pick **Me**. The phone follows your own access and shows up under your sessions. ![A dialog asking Who is this device for, with Me highlighted above Someone else and Shared device](/assets/guides/your-phone/02-pick-me.webp) ## Step 3: Scan the code with your phone (Computer) Point your phone's camera at the QR code and open the link it offers. The code runs out after a few minutes; reopen the dialog for a fresh one. ![The Now connect it step with a large QR code highlighted under Scan to connect](/assets/guides/your-phone/03-scan-the-code.webp) ## Step 4: Tap Connect this device (Phone) Your phone asks once. You scanned it from your own dashboard, so go ahead and tap **Connect this device**. ![A phone showing Connect this device, with a Connect this device button highlighted](/assets/guides/your-phone/04-phone-confirms.webp) ## Step 5: Your dashboard, on your phone (Phone) Your phone opens on your dashboard and greets you by name. ![A phone showing the Home dashboard greeting Alex, with a clock, music and Living Room widgets](/assets/guides/your-phone/05-phone-dashboard.webp) ## You are done when Your phone shows your dashboard, and your own row in People & Devices counts one more device. Add it to your home screen and it opens like an app. Lost the phone? Sign that one device out from your card, see [People & access](/docs/dash/people-and-access#when-access-ends). --- title: "Themes" description: "9 free theme presets with light/dark mode. Try the creator studio for free; saving a theme needs Pro." slug: dash/themes canonical: https://glasshome.app/docs/dash/themes section: "Dashboards" updated: 2026-10-08 --- # Themes 9 built-in presets, each with light and dark variants, plus the themes people in your home make. Choose **Use** on one in **Settings > Theme** to wear it. Switching is instant. ## Free vs Pro | | Free | Pro | | --------------------------------------------------- | ---- | --- | | All 9 presets | Yes | Yes | | Light / dark mode | Yes | Yes | | Applying custom themes already on your Dash | Yes | Yes | | Creator studio: open it and try everything | Yes | Yes | | Saving themes and materials from the creator studio | | Yes | Presets, switching between themes and the creator studio are free for everyone. Open the studio, change anything, and your whole home wears it as you go. Saving a theme (**Save and use**, or **Save without using**) needs [Pro](/docs/hub/pro), and the studio asks for it at that point. Custom themes are free to use: if one is already on your Dash, anyone can apply it, and it keeps working if Pro lapses. Pro belongs to the home, so everyone in a Pro home can save themes. ## Presets | Preset | Look | Material | | --------------- | ------------------------------------------------------------------------------------- | -------- | | Midnight Glass | A glass house above an infinity pool, morning by day, blue hour at night; the default | Glass | | Monochrome Pro | A grey block city in low sunlight, windows lit at night; the strongest text contrast | Paper | | Tide | Woodblock-print waves, indigo on rice paper | Paper | | Forest Zen | A misty pine forest, sun rays by day, moonbeams at night | Frosted | | Liquid Glass | Folds of clear glass with cyan and pink rim light, pale by day, dark by night | Frosted | | Sunrise Studio | A stacked-paper sunrise between studio arches, a crescent moon at night | Paper | | Lavender Dreams | Pen-drawn lavender on cream, on plum at night, with the ink left on | Paper | | Chalkboard | Chalk doodles on a slate board | Chalk | | Retrowave | A neon sunset grid | Neon | ![Lavender Dreams dark theme](/assets/screenshots/home-lavender-dreams-dark-desktop.webp) Lavender Dreams dark variant with custom background and overlay ## Light, dark, or by the sun Settings, General, **Dark mode**, has three choices. **Off** keeps the light theme and **On** keeps the dark one. **Auto** follows the time of day: **Sunset to sunrise** goes dark at sunset and light at sunrise, using the sun times Home Assistant already knows for your home, and **Custom times** goes dark between the two times you pick. ![Settings, General: the Dark mode switch with Off, On and Auto](/assets/screens/dark-mode-dark.webp) Dark mode sits under Settings, General. ## Creator studio **Settings > Theme > New theme** opens the studio. **Edit** opens one you made, **Duplicate** starts from any preset or from someone else's. The studio opens as a panel beside your dashboard, at the bottom on a phone, and your whole home wears the theme as you change it: cards, widgets, dock and background. The sun and moon at the top flip between light and dark to check both; your home's own dark mode setting stays as it was. On a phone, drag the handle down to see the whole screen. ![The creator studio open beside the dashboard, on its Start tab](/assets/screens/theme-studio-dark.webp) The studio beside your dashboard. The whole home wears the theme as you change it. Four tabs: - **Start.** Pick any built-in theme to begin from, **From your photo** to upload a picture that becomes the background and sets the colors, or **From a color**. - **Background.** Tap a picture, or **Upload** (uploading is an admin job). **Different at night** gives dark mode its own picture; flip to the moon at the top to pick it. **Look** sets how the picture sits behind the cards: **Clear**, **Soft**, **Dim** or **Moody**. **Custom** opens the three sliders: **Visibility** fades the picture toward the theme's background color, **Softness** blurs it, **Vignette** darkens its corners. Geometric Houses pops in when you open the app, then holds still. Abstract Pattern moves for half a minute after you open the app or touch the screen, then holds still. - **Colors.** The **Accent** for buttons, switches and whatever is on, from the swatches or any color. **Glass tint** colors the glass of every card: **Auto** takes it from your picture, **Cool**, **Neutral** and **Warm** set it yourself; each shows a card over your background. **Corners** from Square to Round. **Take colors from the picture** picks an accent and a tint from a photo. **Fine-tune** lists every color for light and dark: each says **Automatic** until you change it, then **Yours**; tap it to send it back. - **Material.** What every card, sheet and control is made of, each shown as a small lamp widget made of it. Glass is the clear glass you know, Frosted adds a fine frost to it, Paper is opaque matte stock with a cut edge, Neon is smoky glass lit from inside in its own color, Chalk draws every card in chalk on a matte board. A row of switches, sliders and buttons under them wears the material as you tune it. **Fine-tune** opens everything a material is made of: the glass (blur, clarity, tint, vibrancy), the light (edge, sheen, shadow, inset, where the light comes from, the rim, how much of it shows in dark mode), effects (glow and where it sits, inner glow, grain, ink), the surface (flat or raised, relief, the tint wash) and the colour (the theme's accent or the material's own, and a fill for widgets that have no color of their own). **Reset** puts the material back the way it came. The material menu, at the top of the tab, has **Share with other homes** (see [Sharing](/docs/dash/sharing)), **Save as a file**, which keeps the material alone as a small `.glasshome-material.json` file, and **Open a file**, which reads one. If text would be hard to read, the Colors tab says so, and Fine-tune offers **Fix it**. Undo and redo sit at the top. The menu under the theme's name holds **Rename**, **Share with other homes**, **Save without using**, **Start over** and **Delete theme**. **Save and use** saves the theme and switches to it: for you, or for the whole home when an admin has **This home** selected in General. **Save without using**, in the name menu, only puts it on your home's shelf. Nothing reaches other screens until you save, and **Cancel** puts your home back as it was. ### What the material settings do | Setting | What it changes | | --------------------- | ------------------------------------------------------------------------------------------- | | Blur | How much the picture behind a card is blurred. | | Clarity | How much of the card is solid color; low lets the picture through. | | Tint | How strongly a card takes the color of what it shows, like a lit lamp's warm glow. | | Vibrancy | How rich and bright the blurred picture looks through the glass. | | Edge | The bright line around each card. | | Sheen | The soft light sweeping across a card. | | Shadow | How far cards seem to float above the picture. | | Inset | How thick the glass looks: a soft shade inside the edge. | | Light from | Where the light comes from; turns the sheen, edge and inset together. | | Rim | The bright line on top only, top and bottom, or all the way around. | | Dark mode | How much of that light stays in dark mode. Lower is calmer at night. | | Glow, Glow sits | A glow in the card's own color, around the card or inside its edge. | | Inner glow | Light falling into the card from the top; its color goes from white to the card's own. | | Grain | A fine frost over each card. | | Ink | Draws every card by hand, like a pen sketch. | | Face, Relief | Flat glass, or raised: buttons stand out and switches sink in, by as much as Relief says. | | Tint wash, Wash angle | The tint as one flat color, fading across the card, or in two tones, and which way it runs. | | Accent | The theme's accent, or the material's own color for what is on and what glows. | | Fill | A wash of the accent on widgets that have no color of their own. | ### Sharing a theme **Import** next to **New theme** opens a `.glasshome-theme.json` file in the studio, so you see it before it joins your shelf. To save a theme as one, open the share dialog from the studio's name menu and choose **Save as a file instead**. It saves the file, or opens the share sheet on a phone. Built-in backgrounds travel by name; an image you uploaded stays home, and the saved theme carries a plain background instead (for dark mode, the light one). ### Who can change a theme A theme belongs to whoever made it. They and the home's admins can edit or delete it; everyone can use it. Right-click or long-press a theme to use, edit or delete it from the shelf; each one shows both its light and dark side and how many screens use it. Deleting one sends anyone using it back to the home's theme. Uploading a new background image is an admin job; everyone can pick from the images already there. A home keeps up to 50 themes. --- title: "Sharing" description: "Browse themes, materials and dashboards from GlassHome and other homes, send one home from glasshome.app, and share your own. Using someone else's needs Pro and a linked account." slug: dash/sharing canonical: https://glasshome.app/docs/dash/sharing section: "Dashboards" updated: 2026-10-21 --- # Sharing Widgets, themes, materials and dashboards all live in one browser. Some come with GlassHome, some are made by us on glasshome.app, and some are shared by other homes. You can bring any of them into your home, and share your own themes, materials and dashboards back. ## Open the browser The browser opens on the tab you came for: - **Widgets**: **Add widget** on a dashboard, or **Settings > Widgets > Browse**. - **Themes**: **Settings > Theme > Browse**, or **See all** under Shared themes in the creator studio's Start tab. - **Materials**: the Materials tab in the same browser. A material is what every card, switch and slider is made of: glass, paper, neon, or something another home tuned. - **Dashboards**: **Settings > Dashboards > Browse**, or **Start from one someone made** when you create a dashboard. Each tab has a search, and chips for where things come from: **Built in** (ships with GlassHome), **Official** (made by us), **Community** (made by other homes) and **Yours** (what you shared). **Popular** and **Newest** change the order. Keep scrolling and more loads. Tap anything to see it beside the list, or full screen on a phone. The Dashboards tab only shows to people who can edit dashboards. ## What you need Built-in themes, built-in materials and starter dashboards need nothing: no account, no Pro. A starter dashboard installs the official widgets it uses after asking you, and only a household admin can install widgets. Keeping a theme or material from another home, adding a shared dashboard and sharing your own all need [Pro](/docs/hub/pro) and a GlassHome account linked to your home ([how to link it](/docs/dash/guides/link-pro)). Sharing also needs a username on that account; what you share goes out under it. The browser says which of these is missing and has a button for it. If you are an owner or admin of an [organization](/docs/hub/organizations), you can share under the organization's name instead: pick it under **Publish as**. Every owner and admin of that organization can then update or take it down. ## Try a theme or material, add a dashboard A built-in theme has **Use**, which wears it straight away, and **Customize**, which opens a copy in the creator studio. A shared theme has **Try on my dashboard**: the studio opens with it on your dashboard, and saving keeps it. A material has **Try on my dashboard** too. The studio opens on a copy of the theme you're wearing, with the material on it, so your colours and picture stay as they are. If whoever made it picked a few things you can adjust, they wait under **Tune** at the top of the Material tab. **Save and use** keeps it as a new theme on your shelf. A dashboard shows what it looks like on a desktop, a tablet and a phone, and which widgets it needs. **Add to my home** creates it as a new dashboard with an empty spot for each widget; you pick your own devices for each one, the same as setting one up from scratch. ## Send to my home from glasshome.app Every shared theme, material and dashboard has its own page on glasshome.app, under [Themes](https://glasshome.app/themes), [Materials](https://glasshome.app/materials) and [Dashboards](https://glasshome.app/dashboards). Widget pages have the same button. Sign in and press **Send to my home**: the next time you open the browser on a dashboard linked to that account, it waits at the top of its tab. Try it or add it, or dismiss it. A send you don't use disappears after 30 days. ## Share your own - **A theme**: open the menu under the theme's name at the top of the creator studio and choose **Share with other homes**. Or right-click (long-press) the theme in **Settings > Theme** and choose **Share with other homes**. - **A material**: open the material menu at the top of the creator studio's Material tab and choose **Share with other homes**. Pick up to three things other people may tune, like the glow or the accent; the rest stays exactly as you made it. - **A dashboard**: right-click (long-press) the dashboard and choose **Share dashboard**, or use the share button on its row in **Settings > Dashboards**. The dialog shows exactly what goes out, and what stays in your home. Once it's shared you get its glasshome.app link to copy or open. A shared theme's entry, and a shared dashboard's row, show how many times it was downloaded. Their menu updates the published copy, copies the link, or takes it down. **Yours** in the browser lists everything you shared, even if you deleted your own copy since. ## What travels, what stays home A shared material carries only the material: no colours, no picture, nothing about your home. A shared theme or dashboard carries its layout on each screen size, which widgets sit where, and their style, on/off and number choices. The wide-screen layout is rebuilt from the desktop one when you add a dashboard. It never carries your devices, rooms or areas, your home's names, anything you typed into a widget (titles, labels), photos, or your home's location. The name and description you give it are public: they are how others find it. A theme with a photo background shares with a plain background instead. ## Updating and taking down Sharing something again updates the copy you shared before. Homes that already added it keep their copy; everyone who finds it from then on gets the new one. Taking something down asks first. Nobody new can find it after that, and homes that already added it keep their copy. --- title: "People & access" description: "Give each person and each shared screen its own access. Rooms, controls, sensitive devices, dashboards, invite links, and what happens when access ends." slug: dash/people-and-access canonical: https://glasshome.app/docs/dash/people-and-access section: "Dashboards" updated: 2026-10-13 --- # People & access One home, many people, and not everyone should be able to unlock the front door from the hallway tablet. **Settings > People & Devices** is where you decide who sees what and who can touch what. Everything below applies in GlassHome, in every widget, on every signed-in device. This page is the reference. For step-by-step with screenshots, follow a guide: [set up a kitchen tablet](/docs/dash/guides/kitchen-tablet), [invite someone](/docs/dash/guides/invite-someone), [choose what someone controls](/docs/dash/guides/choose-access), [connect your own phone](/docs/dash/guides/your-phone), or [remove a person or screen](/docs/dash/guides/remove). ## Who can do what ![Settings, People & Devices: four people with their roles and a tablet waiting to be paired](/assets/screens/people-dark.webp) Everyone in the home, with their role and what they can reach. Every person in your home has a role. Roles are about running the home; access (rooms, controls, dashboards) is set per person on top. | Role | Can | | ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Owner | Everything. Cannot be locked out, not even by themselves. | | Admin | Manage people and devices, household settings, theme and background, install and remove widgets, pair devices and approve codes, turn Developer Mode on. Always edits dashboards. | | Member | Use the dashboards they were given, change their own preferences (like dark mode), see their own row in People & Devices. | A few guardrails so nobody paints themselves into a corner: nobody edits their own access, admins cannot change other admins, and the owner's row is read-only for everyone else. ## Give someone their own access Open a person in **People & Devices** and adjust. Changes apply within about a second, no sign-out needed. Step by step: [Choose what someone controls](/docs/dash/guides/choose-access). ![One person's access: role, and which dashboards they can view or edit](/assets/screens/person-access-dark.webp) Open a person to choose their dashboards, rooms and controls. ### Rooms Whole home, or pick rooms. Devices in rooms they were not given simply do not exist for them. ### Control Can control devices, or look only. Door locks, alarm, cameras, and garage stay off unless you switch them on, even inside their rooms. ### Dashboards Off, View or Edit for each dashboard. View shows it. Edit lets them rearrange and configure it. Off hides it. ### Access ends Never, in a day, in a week, or a date you pick. Same switch for people and for shared screens. When you add a person you pick a starting point first, then adjust: **Everything** (whole home, all controls), **Chosen rooms** (rooms you pick, sensitive devices off), or **Look, don't touch** (view only). Starting points are only a prefill; nothing is stored about them afterwards. > **People who sign in with Home Assistant:** Someone with their own Home Assistant account can be restricted like anyone else, and it holds everywhere in GlassHome. They still have their Home Assistant login though, so they can open Home Assistant's own app and see everything there. Their detail page says so. Restriction with real teeth belongs to people you invite by link and to shared screens, because those never hold a Home Assistant key. ## Sign in with a name and password A person who signs in with Home Assistant can add a sign-in name and password to their own account: in **Settings**, open your home's card and find **Sign in with a name**. A wall tablet that cannot reach Home Assistant then signs in with that name from **Name and password** on the welcome screen. Each account has one name, and the name is chosen once. GlassHome asks you to have signed in within the last five minutes, so after a longer time sign out and back in first; a tablet that stays signed in for good cannot add one. After eight wrong passwords for a name, signing in with it pauses for ten minutes. The name and password keep working until you remove the person (removing them deletes both), and they follow the role you gave that person in GlassHome, not what Home Assistant says later. ## Invite someone without a Home Assistant login Not everyone in a home wants, or should have, a Home Assistant account. **Add person > Local account** creates a GlassHome account for them, with no Home Assistant login. Step by step: [Invite someone](/docs/dash/guides/invite-someone). 1. Choose **Local account**, pick a starting point, then name them and adjust what they can reach. Share the link or let them scan the QR code. 2. They open the link, pick a password, and land on the dashboards you gave them. 3. At the end they see their sign-in name, once. It is the name they type from then on, together with their password, from **Name and password** on the welcome screen. It also shows on their row in People & Devices, so you can remind them. > **The link is the key:** Whoever holds the link can join as that person until it is used. It works once and expires after 7 days. Share it like a house key, not like a party invite. Pending invites show in People & Devices with Resend (makes a fresh link) and Cancel. There is no password reset for invited people. If one of them forgets, remove them and invite them again; their access settings take a minute to redo, their password a second. ## Shared screens and devices **Connect device** asks one question first: who is this device for? - **This device** follows your own access, and shows up under your sessions. - **Someone else** follows that person's access, and shows up under theirs. - **Shared device** (the kitchen tablet, the wall panel by the door) gets its own profile: a name, its own access, the dashboard it **shows on start**, and its own **theme** (or "Same as home"). Shared devices start with nothing ticked; pairing never copies your access onto a screen. Set it up first, then pair last by scanning the code on the screen or typing it in. Step by step: [Set up a kitchen tablet](/docs/dash/guides/kitchen-tablet) and [Connect your own phone](/docs/dash/guides/your-phone). Everything you set applies the moment it connects. Only admins can pair devices and approve a code from a new device. Shared devices sit in the Devices group in People & Devices, with the same Access ends and Unpair controls. Unpair signs the screen out on the spot and it shows the connect screen again; pair it later with a new code. A change to a shared screen's start dashboard or theme shows up the next time that screen reloads. A shared device's **Screen** settings (keep it on, when it sleeps, what it shows asleep) are on its card too, explained in [Make it a wall screen](/docs/dash/guides/kitchen-tablet#make-it-a-wall-screen); a change reaches the tablet the next time it sleeps, wakes or is touched. Each person picks their own theme, main dashboard, dock, blur and dark mode in Settings. A setting nobody has changed follows the home. Once a person sets their own value, **Use home's** on that row clears it and they follow the home again. Admins choose whose settings they are changing with the bar above the dock in Settings: **This home** sets the home's value for everyone, and **Just me** sets a value for the person you are signed in as. Open someone's card in People & Devices to set their values the same way. > **Upgraded from 1.1?:** Screens paired before this release became their own members, with access copied from whoever paired them. Admins see a one-time note asking to review them. Check each one and tighten what it can see and do. If one turns out to be your own phone, unpair it and connect it again as you. ## The dock follows access Every dashboard someone may see is in their dock, in the order the home chose, from the moment they can see it. Nobody adds dashboards to a dock by hand. A new dashboard lands in every dock that may see it, and a dashboard someone loses access to leaves their dock. People can reorder their dock, put dashboards away and add links of their own. GlassHome stores only what they changed, so a dock nobody touched keeps following the home. On a person's card in People & Devices, **Has their own dock** lists what they changed, and **Reset** puts them back on the home's. In **Settings > Dashboards**, admins see how many docks a dashboard is in and who put it away. [Set up the dock](/docs/dash/guides/set-up-the-dock) walks through all of it. ## When access ends - **On a date.** Set **Access ends** on a person or a shared screen. When the date passes, their access ends just like removing them: they are signed out everywhere and see one clear screen, "Access ended", with **Sign in again** and **Sign out**. To bring them back, add them again (people with a Home Assistant login sign in again and you set their access anew; people you invited need a new invite link). - **Remove.** Removing someone signs them out of every device right away. Dashboards and widgets they set up stay; only their access goes. Step by step: [Remove a person or screen](/docs/dash/guides/remove). - **Sign out one device.** Each person's detail page lists where they are signed in. Sign out a single session without touching the rest. ## Good to know Honest limits in this release, so you are not surprised: - **Home Assistant's own app is a side door** for people who sign in with Home Assistant. GlassHome cannot close it; Home Assistant has no per-device permissions. - **Home Assistant's logbook names the linking user** for everything done through GlassHome, because GlassHome talks to Home Assistant with one household login. GlassHome's own audit line ("Emma turned on the lights") is the accurate record. - **Edit on some dashboards lets someone rearrange those.** They cannot create new dashboards. Renaming a dashboard's address is admin only. - **Names are visible, states are not.** Restricted people can still see the names of rooms and devices that exist in the home. The state and controls of anything outside their access never reach them. - **No password reset for invited people.** Remove and re-invite. - **Removed Home Assistant people come back with full access.** Someone who signs in with Home Assistant and was removed (by you, or because their access date passed) gets back in with full access on their next Home Assistant sign-in, until you set their access again. Set it right away, or take away their Home Assistant account. - **Developer Mode and the assistant are admin only.** They read and write every dashboard, so only admins can switch them on. - **A dashboard someone hid comes back when they gain access to it again.** Hiding is personal and does not outlast losing the dashboard. Everything else (rooms, controls, dashboards, expiry) is enforced on the GlassHome server, not in the browser. The app hides what you cannot use, and the server refuses it even if a browser asks. --- title: "Remove a person or screen" description: "Take someone out of your home, or unpair a shared screen. Both sign out on the spot; dashboards and widgets stay." slug: dash/guides/remove canonical: https://glasshome.app/docs/dash/guides/remove section: "Guides" updated: 2026-09-25 --- # Remove a person or screen When a flatmate moves out or an old tablet goes in a drawer, you remove them from Settings in three taps. Dashboards they made stay where they are. ## Before you start - You are an admin. Only the owner can remove another admin, and nobody can remove the owner or themselves. - Only need them gone for a while? Set **Access ends** instead, see [Choose what someone controls](/docs/dash/guides/choose-access). ## Remove a person ### Step 1: Open their card (You) In **Settings**, under **People & Devices**, tap the person you want to remove. ![The People list in Settings with Ben's row highlighted](/assets/guides/remove/01-open-person.webp) ### Step 2: Tap Remove (You) Scroll to the bottom of their card. Under **Danger zone**, tap **Remove Ben…** (with their name, of course). ![Ben's card scrolled to the Danger zone, with Remove Ben highlighted](/assets/guides/remove/02-remove-person.webp) ### Step 3: Confirm (You) GlassHome asks once more. Tap **Remove**. They are signed out of every device right away. ![A confirmation titled Remove Ben, saying they lose access right away and anything they set up stays, with the Remove button highlighted](/assets/guides/remove/03-confirm-remove-person.webp) ## Unpair a shared screen ### Step 1: Open the screen's card (You) Shared screens live in the **Devices** list, under the people. Tap the one you want to unpair. ![The Devices list in Settings with the Kitchen tablet row highlighted](/assets/guides/remove/04-open-screen.webp) ### Step 2: Tap Unpair device (You) Scroll to **Danger zone** and tap **Unpair device…**. ![The Kitchen tablet's card scrolled to the Danger zone, with Unpair device highlighted](/assets/guides/remove/05-unpair-screen.webp) ### Step 3: Confirm (You) Tap **Unpair**. The screen signs out on the spot and goes back to the connect screen. ![A confirmation titled Unpair Kitchen tablet, saying it signs out right away and shows the connect screen again, with the Unpair button highlighted](/assets/guides/remove/06-confirm-unpair-screen.webp) ## You are done when Their row is gone from People & Devices. The dashboards and widgets they set up stay put. Want them back later? [Invite them again](/docs/dash/guides/invite-someone), or [pair the screen](/docs/dash/guides/kitchen-tablet) with a fresh code. What happens to people who sign in with Home Assistant is in [People & access](/docs/dash/people-and-access#when-access-ends). --- title: "Remote Access" description: "Reach your Dash from outside your home with a VPN (WireGuard, Tailscale) or your own address (reverse proxy, Cloudflare Tunnel)." slug: dash/remote-access canonical: https://glasshome.app/docs/dash/remote-access section: "Dashboards" updated: 2026-10-21 --- # Remote Access Dash runs on your hardware and is not published to the internet. To reach it from outside, you pick one of two shapes: 1. **Join your home network** with a VPN. Your device gets a home address, so Dash looks exactly like it does on the couch. 2. **Publish one address** through a reverse proxy or a tunnel you run yourself, and tell Dash to trust it. Both keep GlassHome out of the path. Nothing here is a GlassHome service. > **Nabu Casa does not reach GlassHome:** Nabu Casa remote access covers Home Assistant only. GlassHome is a separate app at its own address, so a Nabu Casa subscription does not bring it with it. Pick one of the options below for GlassHome. ## Pick one | Way | You open | Dash setup | Plan | | ------------------------------- | --------------------------- | --------------- | ---- | | WireGuard | your LAN address | nothing | Free | | Tailscale, subnet routes | your LAN address | nothing | Free | | Tailscale, machine name | a `.ts.net` address | add the address | Pro | | Reverse proxy at home | your domain, resolving home | add the address | Free | | Cloudflare Tunnel, your account | your domain, public | add the address | Pro | Rule of thumb: an address that lands on a home IP (`192.168.x.x`, `10.x.x.x`) is free. A public address is remote access and needs [Pro](/docs/hub/pro). ## Option 1: VPN Your phone joins the home network. The address never changes, so there is nothing to configure in Dash. ### WireGuard Classic VPN. Fast, tiny, and nobody but you is involved. Costs you one open UDP port. 1. Install the **WireGuard** add-on (Home Assistant Community Add-ons), or run WireGuard on your router. 2. Forward **UDP 51820** on your router to the machine running the add-on. UDP, not TCP. 3. In the add-on config, set `host` to a public address for your home (a DuckDNS name works), then add one peer per device and name it. 4. Start the add-on. It writes a config and a QR code per peer; scan it in the WireGuard app. 5. Turn the VPN on, then open `http://:3123`. Dash needs nothing: you arrive on a home IP, which is always trusted. ### Tailscale No port forwarding, no router work. Runs over WireGuard, coordinated by Tailscale. 1. Install the **Tailscale** add-on (or install Tailscale on the machine running Dash, if it is not the Home Assistant box). 2. Start it, open the login URL from the add-on log, and approve the machine in your tailnet. 3. Install Tailscale on your phone and sign in to the same tailnet. 4. Choose how you reach Dash: - **Subnet routes (free).** Set `advertise_routes: local_subnets` in the add-on, approve the route in the Tailscale admin console, and enable subnet routes on your phone. You then open the normal `http://192.168.1.100:3123`, and Dash needs nothing. - **Machine name (Pro).** Open `http://host.tailnet.ts.net:3123` and add that address in Dash. Tailscale addresses (`100.64.0.0/10`, `*.ts.net`) are not home addresses, so Dash counts them as remote access. ## Option 2: Your own address You run the entry point, you own the domain, and only Dash sits behind it. ### Cloudflare Tunnel on your own account No open ports: `cloudflared` dials out to Cloudflare and traffic comes back down that connection. 1. Have a domain on Cloudflare, and a Cloudflare account. 2. Install a `cloudflared` add-on (for example the community **Cloudflared** add-on) or run the `cloudflared` container next to Dash. 3. Point a hostname at Dash. In the add-on that is an `additional_hosts` entry: ```yaml additional_hosts: - hostname: dash.example.com service: http://192.168.1.100:3123 ``` 4. Start it and follow the authorization link once, so the tunnel can create the DNS record on your domain. 5. In Dash, open **Settings → Remote access → Add address** and enter `https://dash.example.com`. Cloudflare terminates HTTPS at its edge here, so Cloudflare can see this traffic. It is your account and your zone, and GlassHome is not involved. ### Reverse proxy If you already run Caddy, nginx, or Traefik, point a hostname at port `3123`. Caddy, which handles certificates and WebSockets on its own: ``` dash.example.com { reverse_proxy 192.168.1.100:3123 } ``` On nginx or Traefik, make sure the route forwards **WebSocket upgrades** (`Upgrade` and `Connection` headers). The dashboard is live over a WebSocket; without it the page loads and then stays empty. A proxy at home is only reachable from home unless you also open a port or combine it with a VPN. Its value is the tidy HTTPS address, and it is free as long as the hostname resolves to a home IP. ## What Dash needs, whatever you pick - **Expose Dash only, port `3123`.** Never publish Home Assistant. Dash talks to HA locally and forwards live state, camera images, and media on its own address. - **Declare the address.** **Settings → Remote access → Add address**, household admins only. Without it, sign-in is refused from that address. Local addresses are trusted automatically. - **The address must resolve.** A domain that does not exist yet fails the check. `localhost` and `127.0.0.1` are rejected on purpose. - **Pass `X-Forwarded-Proto: https`** if your proxy terminates HTTPS, so Dash builds its links with the scheme your browser used. - **Name your proxy.** Set `TRUSTED_PROXIES` to the address your proxy connects from (for example `192.168.1.50/32`), so Dash tells visitors apart. The Home Assistant addon needs nothing. - **Set it up at home first.** Go through the welcome screen on the local address; add the remote one after. > **Signing in while away:** Use your **Hub account**, **Code from a phone** (a code you approve from a device already signed in), or **Name and password** if someone in the home gave you one. Signing in with Home Assistant is a home-network flow: it redirects to your HA login page, which is not reachable from outside. ## What works while you are away Remote sessions route everything through your Dash at home, so the dashboard behaves the same as on your couch: live entity updates, controls, and media. Camera snapshots and album art work remotely too; Dash forwards them from Home Assistant itself, so no extra camera configuration is needed. ## Troubleshooting See [Troubleshooting](/docs/dash/troubleshooting#remote) for remote-access issues. ## Related docs - [How GlassHome connects](/docs/dash/how-glasshome-connects): why Dash wants your local Home Assistant address even when remote access is set up - [Connecting to Home Assistant](/docs/dash/connecting): local pairing comes first - [Concepts](/docs/dash/concepts): how Dash, HA, and Hub relate - [FAQ](/docs/dash/faq): privacy and account questions --- title: "Make your own theme" description: "Start from a theme or a photo, set a background for day and night, pick the colors and material, then save it and use it. Trying is free, and saving needs Pro." slug: dash/guides/make-your-own-theme canonical: https://glasshome.app/docs/dash/guides/make-your-own-theme section: "Guides" updated: 2026-10-08 --- # Make your own theme Start from a theme or from a photo of your own, and the whole home takes on your colors, your picture and your material. You can try every control for free. Pro is only asked for when you save. ## Before you start - A dashboard you can open Settings on. - Optional: a photo on your computer or phone to start from. - About ten minutes. Nothing reaches the other screens until you save. - Pro, for saving. [What Pro includes](/docs/hub/pro). ![The creator studio open beside the dashboard, on its Start tab](/assets/screens/theme-studio-dark.webp) The studio beside your dashboard. The whole home wears the theme as you change it. ## Step 1: Open the studio (Computer) Go to **Settings**, open **Theme** and tap **New theme**. The creator studio opens beside your dashboard, and your home wears the theme as you change it. ![Settings with the Theme section open and the New theme button highlighted](/assets/guides/make-your-own-theme/01-open-studio.webp) ## Step 2: Pick a starting point (Computer) On **Start**, tap a theme under **Start from a theme**. Or tap **From your photo** to make a picture the background, which sets the colors from it, or **From a color**. Themes from other homes wait under **Shared themes**. ![The studio on its Start tab, with Start from a theme and the Midnight Glass theme highlighted](/assets/guides/make-your-own-theme/02-start.webp) ## Step 3: Set the background (Computer) On **Background**, tap a picture. **Look** sets how the picture sits behind the cards, from **Clear** to **Moody**. ![The studio with the Background tab highlighted](/assets/guides/make-your-own-theme/03-background.webp) ## Step 4: Give night its own picture (Computer) **Different at night** gives dark mode its own picture. Switch it on, then choose the picture under **Night picture**. ![The Background tab with Different at night switched on and the Night picture row below it](/assets/guides/make-your-own-theme/04-different-at-night.webp) ## Step 5: Pick the colors (Computer) On **Colors**, choose the **Accent** for buttons and switches, the **Glass tint** for the cards, and the **Corners**. **Take colors from the picture** picks an accent and a tint from a photo. **Fine-tune every color** lists every color for light and dark, and each one goes back to automatic when you tap it. ![The Colors tab with the Accent colors, the Glass tint and the Corners](/assets/guides/make-your-own-theme/05-colors.webp) ## Step 6: Choose a material (Computer) On **Material**, pick **Glass**, **Frosted**, **Paper**, **Neon** or **Chalk**. A row of switches and sliders under them shows the material as you tune it. **Fine-tune** opens every setting, and **Reset** puts the material back the way it came. ![The Material tab with Frosted selected among Glass, Frosted, Paper, Neon and Chalk](/assets/guides/make-your-own-theme/06-frosted.webp) ## Step 7: Check both modes (Computer) The sun and the moon at the top of the studio flip the preview between light and dark. If text would be hard to read, the **Colors** tab says so, and **Fix it** offers a fix. ![The studio previewing the light mode, with the sun selected at the top](/assets/guides/make-your-own-theme/07-both-modes.webp) ## Step 8: Save and use (Computer) Tap **Save and use**. The theme joins your shelf and your home switches to it. To keep it on the shelf without switching, choose **Save without using** from the name menu at the top. Saving is where Pro is asked for. ![The studio with Frosted selected and the Save and use button highlighted](/assets/guides/make-your-own-theme/08-save-and-use.webp) > **If something looks off:** Closing the studio with changes you have not saved brings them back the next time you open it. To drop them, choose **Start over** in the name menu. **Cancel** puts your home back as it was. ## Save a theme as a file A theme file moves a theme to another GlassHome without going through glasshome.app. - To save one, open **Share with other homes** from the theme's menu and choose **Save as a file instead**. - To open one, go to **Settings**, **Theme** and tap **Import**. The studio opens with the theme, so you see it before it joins your shelf. An image you uploaded stays home. The file carries a plain background instead. ## You are done when The theme is on your shelf under **Settings > Theme**, and your home wears it. To share it with other homes, see [Find and share](/docs/dash/guides/find-and-share). For every control in the studio, see [Themes](/docs/dash/themes). --- title: "Rearrange your dashboard" description: "Enter edit mode, add, move, resize and remove widgets on a phone or a computer, add section headings, and arrange the phone layout from your computer." slug: dash/guides/rearrange-your-dashboard canonical: https://glasshome.app/docs/dash/guides/rearrange-your-dashboard section: "Guides" updated: 2026-10-08 --- # Rearrange your dashboard Everything on your dashboard can move, grow, shrink or go. Every change saves as you make it, so there is no Save button to find. ## Before you start - Permission to edit this dashboard. If holding the dock moves only the dock and the widgets stay put, ask someone who manages this home. [People & access](/docs/dash/people-and-access) says who can edit. - A phone, tablet or computer. A computer also works for the phone layout, see the last part of this guide. ## Step 1: Enter edit mode (Phone) Press and hold the dock for about half a second. Each widget shows a grip in the middle, a corner handle and an **X**. ![The phone dashboard with the dock at the bottom, about to be pressed and held](/assets/guides/rearrange-your-dashboard/01-phone-enter.webp) ## Step 2: Add a widget (Phone) Tap **Add widget**, above the dock, and pick one. It lands in the first free spot for this screen size. A dialog then asks whether it goes on this screen size or every size. ![The phone in edit mode with the 1 not on Phone button and the Add widget button above the dock](/assets/guides/rearrange-your-dashboard/02-phone-add-widget.webp) ## Step 3: Leave edit mode (Phone) Hold the dock again. **Done** in the background menu does the same. Edit mode also leaves on its own after three minutes without a touch. ![The phone in edit mode, with the dock pressed to leave it](/assets/guides/rearrange-your-dashboard/03-phone-leave.webp) ## Step 4: Edit the dashboard (Computer) Press and hold the background of the dashboard and choose **Edit dashboard**. Then the steps are the same, except that you press on a widget and drag it, and the corner handle works with the mouse. ![The dashboard background menu open, with Edit dashboard at the top](/assets/guides/rearrange-your-dashboard/04-desktop-enter.webp) ## Step 5: Pick a screen size (Computer) Each screen size keeps its own layout, so a change on your phone never moves the desktop layout. While you are editing, the four screen-size buttons beside **Add widget**, for phone, tablet, desktop and wide screen, switch the dashboard to that size at its real width. Only the sizes that fit on your screen are offered. Leaving edit mode brings you back to your own screen. ![Edit mode on the desktop with the screen-size buttons beside Add widget, the desktop size selected](/assets/guides/rearrange-your-dashboard/05-screen-sizes.webp) ## Step 6: See what is missing (Computer) When some widgets are not on the size you are looking at, a button beside them says how many, for example **2 not on Phone**. ![The phone size selected in edit mode, with the 1 not on Phone button beside Add widget](/assets/guides/rearrange-your-dashboard/06-not-on-phone.webp) ## Step 7: Place it on this size (Computer) Tap it, pick a widget, and the widget lands on this size. The dashboard scrolls to where it went. ![The 1 not on Phone menu open, listing the missing widget as Header](/assets/guides/rearrange-your-dashboard/07-place-widget.webp) ## Move, resize and organize In edit mode: - **Move a widget.** Drag the grip in its middle; the widgets around it make room. To reach further down while you hold one, scroll with a second finger. - **Resize it.** Drag the corner handle, or pinch the widget with two fingers. Each widget stops at its own largest size. - **Add a section heading.** Add a second **Header** widget with your own title, and it heads the widgets under it. - **Send it to another dashboard.** Drag it onto a dashboard in the dock and let go. That dashboard opens with the widget lit, and **Undo** on the message puts it back. ![A dashboard in edit mode: every widget shows a grip in the middle, a resize handle at the corner and an X](/assets/screens/edit-mode-dark.webp) Edit mode. The grip moves a widget, the corner handle resizes it, the X removes it. > **If something looks off:** A widget missing from one size is still on the others. Look for the **not on** button beside the widgets for that size, and pick the widget there. ## You are done when Your dashboard is laid out the way you want it on each screen. [Editing](/docs/dash/editing) has every gesture, the widget settings, and how to remove a widget. [Layouts](/docs/dash/layouts) explains the screen sizes. --- title: "Find and share" description: "Browse widgets, themes, dashboards and materials, try one on, send one home from glasshome.app, share your own with other homes, and take it down again." slug: dash/guides/find-and-share canonical: https://glasshome.app/docs/dash/guides/find-and-share section: "Guides" updated: 2026-10-08 --- # Find and share Bring in a theme, a material or a dashboard that someone else made, and share your own back with other homes. Everything you find lives in one browser. ## Before you start - Built-in themes, built-in materials and starter dashboards need nothing: no account and no Pro. - Using something from another home, adding a shared dashboard, sending from glasshome.app and sharing your own need [Pro](/docs/hub/pro) and a GlassHome account linked to your home. Sharing also needs a username on that account. ## Step 1: Open the browser (Computer) Tap **Add widget** on a dashboard, or go to **Settings** and choose **Browse** under **Theme** or **Dashboards**. The browser has four tabs: **Widgets**, **Themes**, **Dashboards** and **Materials**. The Dashboards tab only shows to people who can edit dashboards. ![A dashboard with its background menu open, showing Add widget](/assets/guides/find-and-share/01-open-browser.webp) ## Step 2: Open the Themes tab (Computer) Tap the palette to browse themes. The other tabs work the same way. ![The browser on its Widgets tab, with the Themes tab about to be tapped](/assets/guides/find-and-share/02-themes.webp) ## Step 3: Find something (Computer) Search, or use the chips: **Built in** ships with GlassHome, **Official** is made by us, **Community** is made by other homes, and **Yours** lists what you shared. **Popular** and **Newest** change the order. Keep scrolling for more. ![The Themes tab with the chips All, Built in, Official, Community and Yours above the theme grid](/assets/guides/find-and-share/03-chips.webp) ## Step 4: Try it on (Computer) A built-in theme has **Use**, which wears it straight away, and **Customize**, which opens a copy in the creator studio. A shared theme or material has **Try on my dashboard**: the studio opens with it, and saving keeps it. A shared dashboard has **Add to my home**, which makes a new dashboard with an empty spot for each widget. You pick your own devices for each one. ![A built-in theme open in the browser, with Customize and Use at the bottom right](/assets/guides/find-and-share/04-use.webp) ## Step 5: Look at materials (Computer) The **Materials** tab works the same way: find a material, look at it, and try it on. ![The browser with the Materials tab about to be tapped, beside the Themes tab](/assets/guides/find-and-share/05-materials.webp) ## Step 6: Share your own theme (Computer) Open the menu on the theme's name at the top of the creator studio and choose **Share with other homes**. You can also right-click, or long-press, the theme in **Settings > Theme** and choose the same. ![Settings with the Theme section open, showing My theme under Made here](/assets/guides/find-and-share/06-my-theme.webp) ## Step 7: Choose Share with other homes (Computer) Right-click, or long-press, the theme and choose **Share with other homes**. The menu also has **Use**, **Edit** and **Delete**. ![The menu of My theme open in Settings, with Share with other homes highlighted](/assets/guides/find-and-share/07-share-menu.webp) ## Step 8: See what goes out (Computer) Each share dialog shows exactly what goes out and what stays in your home. Sharing needs a linked GlassHome account, and the dialog says so with a button to **Open Settings**. Your devices, rooms, home name, anything you typed into a widget, photos and location stay home. ![The Share this theme dialog, with a preview, a note that a GlassHome account must be linked, and the Name field](/assets/guides/find-and-share/08-share-dialog.webp) ## More ways to find and share - **Send one home from glasshome.app.** Every shared theme, material and dashboard has its own page on glasshome.app. Sign in there and press **Send to my home**. The next time you open the browser, it waits at the top of its tab, marked **Sent from glasshome.app**. A send you never use goes away after 30 days. - **Share your own material.** In the creator studio's **Material** tab, open the menu beside **Fine-tune** and choose **Share with other homes**. Pick up to three things other homes may tune, like the glow or the accent. - **Share your own dashboard.** Right-click or long-press the dashboard and choose **Share dashboard**, or use the share button on its row in **Settings > Dashboards**. - **Take it down.** Open the menu on the shared item in **Settings > Theme** or **Settings > Dashboards** and choose **Take down**. Nobody new can find it after that; homes that already added it keep their copy. > **If something looks off:** Sharing something again updates the copy you shared before. Homes that already added it keep the copy they have, and everyone who finds it from then on gets the new one. ## You are done when The item is in your home, where you would look for it: themes under **Settings > Theme**, dashboards under **Settings > Dashboards**. For what travels when you share, see [Sharing](/docs/dash/sharing). --- title: "Give each person their own look" description: "Let everyone in the home pick their own theme, main dashboard, dock, blur and dark mode. Admins set the home's starting choices, and each person changes what they like." slug: dash/guides/your-own-look canonical: https://glasshome.app/docs/dash/guides/your-own-look section: "Guides" updated: 2026-10-08 --- # Give each person their own look The kids can have neon, you can have the calm one, and the kitchen tablet can match the wall. Admins set what the home starts with, and every person changes the rest on their own. ## Before you start - Admins set the home's starting choices. Anyone can set their own. - About five minutes. ## Step 1: Open Settings on This home (Computer) Open **Settings**. The bar above the dock reads **Settings for**. With **This home** selected, what you pick applies to everyone who has not picked their own. ![The Settings page with the Settings for bar above the dock and This home selected](/assets/guides/your-own-look/01-settings-for.webp) ## Step 2: Pick the home's look (Computer) In **Theme**, pick the theme the home starts with. In **Dashboards**, set **Main dashboard**. In **Dock**, set **Display mode** to Floating, Fixed or Hidden. In **General**, set **Dark mode**, **Blur** and **Reduce motion**. ![The Theme section of Settings, with its presets and the New theme button](/assets/guides/your-own-look/02-home-theme.webp) ## Step 3: Switch to Just me (Computer) Tap **Just me** in the bar, then change the rows you want. For **Dark mode**, **Auto** follows **Sunset to sunrise**, or **Custom times** you set. Members land here straight away; they have no bar. ![The Settings for bar with Just me about to be tapped, beside This home](/assets/guides/your-own-look/03-just-me.webp) ## Step 4: See Use home's (Computer) A row you changed for yourself shows **Use home's**, on either tab, so you always see why a home change skips your screen. ![The Display mode row in the Dock section, with the Use home's button beside the Fixed value](/assets/guides/your-own-look/04-use-homes.webp) ## Step 5: Bring back the home's choice (Computer) Tap **Use home's**. The row follows the home again. ![The Display mode row with the Use home's button highlighted, beside the Fixed value](/assets/guides/your-own-look/05-bring-back.webp) ## You are done when Each person's screen shows their own theme, dashboard, dock and dark mode. Changing the home's choices later only moves the people who have not picked their own. Admins can also set someone's choices from their card in People & Devices. For who can see and change what, see [People & access](/docs/dash/people-and-access). --- title: "Sign in a tablet with a name and password" description: "Add a sign-in name and password to your account, then sign a wall tablet in without Home Assistant. Eight wrong passwords pause that name for a while." slug: dash/guides/tablet-password-sign-in canonical: https://glasshome.app/docs/dash/guides/tablet-password-sign-in section: "Guides" updated: 2026-10-08 --- # Sign in a tablet with a name and password A wall tablet that cannot reach Home Assistant can still sign in. Give your account a name and password once, then type them on the tablet. ## Before you start - A password of at least 8 characters that you will remember. - The tablet in reach, with its browser open on your dashboard's address. ## Add the name and password ## Step 1: Find your home's card (Computer) Open **Settings**. The card at the top of the left column carries your home's name. ![Settings with the card named after the home at the top of the left column](/assets/guides/tablet-password-sign-in/01-home-section.webp) Under **Sign in with a name**, tap **Add**. In **Name**, keep the name you will type on the tablet; it starts with your display name. Pick something short, because you can only add one name. In **Password**, type at least 8 characters. Tap **Save**. GlassHome says **Sign-in name added**, and the card shows the name with **Use it with your password to sign in**. > **Tip:** The name is set once. To change it later, remove the sign-in name and add it again from the same card. ## Sign the tablet in 1. On the tablet, open your dashboard's address. 2. On the welcome screen, tap **Name and password**. 3. Type the name and password, then sign in. If the name or password is wrong, the tablet says **That name or password is not right.** Check the spelling of the name first, then try again. ## After wrong passwords Eight wrong passwords for one name, within about ten minutes, pause sign-in with that name. The tablet asks you to wait a few minutes. Sign-in with any other name still works, and the name works again once the pause ends. > **Removing a person:** The name and password stop working when you remove that person from **People & Devices**. Removing them deletes both, so you can add a name again later for someone else. ## You are done when The tablet is signed in with your name, and it stays signed in until someone signs it out. Want the tablet to have its own rooms and dashboards too? [Set up a kitchen tablet](/docs/dash/guides/kitchen-tablet). --- title: "Report a problem" description: "Copy diagnostics from Settings, post them in the GlassHome Discord with a short note on what went wrong, and the bug can get fixed faster." slug: dash/guides/report-a-problem canonical: https://glasshome.app/docs/dash/guides/report-a-problem section: "Guides" updated: 2026-10-08 --- # Report a problem One tap collects the recent connection log from your server and this device, so you do not have to dig through logs. Paste it into Discord with a sentence about what went wrong. ## Before you start - You are an admin. Only admins see **Copy diagnostics**, and it is not on demo.glasshome.app. - A GlassHome Discord account. The channel is **#bug-reports**. ## Copy the diagnostics ## Step 1: Open General (Computer) Open **Settings** and tap **General**. ![The General section in Settings, with Dark mode, Blur, Developer Mode and the Version row](/assets/guides/report-a-problem/01-general.webp) Find the row called **Diagnostics** and tap **Copy diagnostics**. The button says **Collecting…** for a moment. On a phone or tablet, the share sheet opens with a text file called `glasshome-diagnostics.txt`. Pick Discord, or save it. On a computer, the report goes to your clipboard and GlassHome says **Diagnostics copied**. ## Post it in Discord 1. Open the [GlassHome Discord](https://discord.gg/FJYdeDmrzv) and go to **#bug-reports**. 2. Write what happened, what you did just before, and what you expected instead. 3. Paste the diagnostics under your note, or attach the file. 4. Add your GlassHome version. It is under **Version** in **Settings > General**, just above **Diagnostics**. > **Tip:** A screenshot helps more than a paragraph. If the problem is on the tablet, take a photo of its screen. The full list of what to include is in [Bug reports](/docs/dash/bug-reports). ## You are done when Your report is in the channel with the logs attached. If it turns out to be a question or a wish, someone will point you the right way. --- title: "FAQ" description: "Frequently asked questions about widget development. Open source, review process, and publishing trust." slug: widgets/faq canonical: https://glasshome.app/docs/widgets/faq section: "Support" updated: 2026-08-10 --- # FAQ Short answers for widget authors. App questions live in the [Dash FAQ](/docs/dash/faq); account and pricing questions in the [Hub FAQ](/docs/hub/faq). ## Is it open source? The widget SDK and CLI are open source. The dashboard is source-available; see the repo for license terms. ## How do widgets get reviewed? Community widgets publish immediately and are flagged with a Community badge. Users see a consent prompt before install. Official widgets go through GlassHome review. See [Publishing → Trust Badges](/docs/widgets/widget-publishing#trust-badges). ## Do I need a Hub account to build widgets? Not to build and test locally; the [CLI](/docs/widgets/widget-cli) dev flow works without one. Publishing to the registry requires an account. See [Publishing](/docs/widgets/widget-publishing). --- title: "Troubleshooting" description: "Fixes for widget development and publishing problems. SDK version mismatches, preview rendering, and publish failures." slug: widgets/troubleshooting canonical: https://glasshome.app/docs/widgets/troubleshooting section: "Support" updated: 2026-09-23 --- # Troubleshooting Author-facing fixes. User-facing dashboard problems (blank UI, entities, tunnels) live in [Dash → Troubleshooting](/docs/dash/troubleshooting). If nothing matches, ask in [Discord](https://discord.gg/FJYdeDmrzv). Users report "incompatible SDK" on install Your widget was built against a newer `@glasshome/widget-sdk` than the user's dashboard supports. - Check the `sdkVersion` range in your manifest; widen it if your widget doesn't actually need the newer APIs. - Or publish a build against the older SDK alongside the new one; the registry serves each dashboard the newest compatible version. - The dashboard-side fix (the user updating Dash) is in [Dash → Troubleshooting](/docs/dash/troubleshooting#widget-sdk). To see which Dash first ships the SDK your range needs, check [which Dash runs your widget](/docs/widgets/widget-development#which-dash-runs-your-widget). A beta Dash may run it before the stable one does. See [Widget SDK](/docs/widgets/widget-sdk) for how `sdkVersion` resolution works. Preview images missing or stale on the Hub page Previews are produced from the `examples` you declare, at publish time. - No images at all: the widget declares no `examples`. See [Widget Previews](/docs/widgets/widget-previews). - Stale images: previews regenerate per published version. Publish a new version after changing example configs; editing metadata alone does not re-render. - A broken render usually means the example config fails validation against your own schema; run `widget preview` locally to reproduce. - `widget preview` cannot start its browser: Playwright's own Chromium is missing or cannot run on your system. Install it with `bunx playwright install chromium`, or point the CLI at a Chromium you already have with `CHROMIUM_PATH=/path/to/chromium`. Publish fails from the CLI - CLI below the enforced floor: Hub rejects old CLIs; the current minimum is served from `/api/widgets/cli-version`. Update with your package manager. See [Widget CLI → Version requirements](/docs/widgets/widget-cli#version-requirements). - Scope errors: publishing under an organization requires membership with the publisher role. See [Organizations](/docs/hub/organizations). - Manifest validation errors print the failing field; fix and re-run. The manifest schema is documented in [Publishing](/docs/widgets/widget-publishing). --- title: "Widget CLI" description: "All CLI commands for creating, building, testing, and publishing GlassHome widgets." slug: widgets/widget-cli canonical: https://glasshome.app/docs/widgets/widget-cli section: "CLI & Publishing" updated: 2026-11-05 --- # Widget CLI The package is `@glasshome/widget-cli`; the binary is `glasshome-widget`. Scaffolded projects pin it in `devDependencies` behind a `"widget": "glasshome-widget"` script alias, so commands below read `bun widget ` (project-local, kept current with `bun update`). Elsewhere use `bunx @glasshome/widget-cli@latest `; without `@latest`, `bunx` can reuse a stale cached version. ## Version requirements Hub enforces a minimum CLI version, currently **0.5.0**, served from `/api/widgets/cli-version`. CLIs **0.4.14** and newer fetch it on `login` and `publish` and hard-stop below the floor with an actionable message instead of a cryptic OAuth or HTTP error; older CLIs lack the check, so the floor only protects clients that can read it. On a "widget CLI is no longer supported" error, update: ```bash # one-off, no install: bunx @glasshome/widget-cli@latest publish # or update the project dev dependency: bun add -D @glasshome/widget-cli@latest ``` ## Two auth flows [`connect`](#connect) authenticates against your local Dash instance for live testing; [`login`](#login) against GlassHome Hub for publishing. Tokens are stored separately and are not interchangeable. ## Commands Scaffolds a widget project: `package.json`, `vite.config.ts`, `tsconfig`, and a starter widget whose details it prompts for (no extra `add` call needed). Run it outside an existing project. Prompts for a name and description, then creates `src/{name}/index.tsx` and `src/{name}/manifest.json`. Builds each widget into a self-contained JS bundle in `dist/` and generates `dist/registry.json` with metadata for all widgets. Checks manifests, bundle sizes, and registry consistency. Pass a name to check one widget, omit for all. Prints the project header, local registry summary, and per-widget metadata + bundle size. Live testing against a running Dash instance; widgets hot-reload as you edit. Full sequence in [Local Testing Workflow](#local-testing-workflow). Auth is an **OAuth device-code flow** against the local Dash instance; approve in the browser and the CLI stores a host-scoped bearer token. Distinct from `login`, which targets GlassHome Hub. Force a fresh device-authorization flow, discarding stored credentials. Screenshots each widget's examples in light and dark into `preview/`, rendered by the same sealed stage a home runs. The CLI downloads that stage from a Dash (`https://demo.glasshome.app` unless you pass `--dash`), checks every file against the stage's manifest, keeps it in `~/.cache/glasshome/stage/`, and serves it to a throwaway Chromium on `127.0.0.1`. Offline, the cached stage is used. Plain `http` is accepted only on loopback (`localhost`, `127.0.0.0/8`, `::1`), and redirects are refused. The Dash whose stage renders the previews. Render at pixel sizes into `preview/sweep/`, with a contact sheet per example. The manifest proves the files are what that Dash served, never who built them. Name a Dash the way you would open a web page: a hostile one can serve a wrong stage. That stage runs in a throwaway Chromium under a content security policy the CLI sets in its own response headers, so the stage page cannot loosen it, and the CLI serves it only the stage files, your built widget bundles and manifests, and icons. It can render anything and read the widget source it was shown. It cannot reach your files, your network or your browser profile. Validates, prompts for scope/widget/version (or takes flags), then builds and uploads to Hub. Runs `login` automatically if no token is found. Scopes come from `GET /api/widgets/scopes`: your personal scope (your username) plus any org scopes you can publish to. See [Publishing Scopes](/docs/widgets/widget-publishing#publishing-scopes). Publish only the named widget. Pre-pick the version bump; updates `version` in the widget's manifest. Pre-pick the publishing scope (e.g. `@my-team`). Authenticates with **GlassHome Hub** via OAuth PKCE (not local Dash): opens a browser, listens on `http://127.0.0.1:9274/callback` (120 s timeout), stores the token locally. The first login on an account shows a screen where you allow the widget CLI; later logins skip it. A login lasts up to 30 days, renewed in the background, then `publish` asks you to log in again. Changing or resetting your GlassHome password ends it at once. `publish` runs it automatically when no token is present. Moves the project to a newer `@glasshome/widget-sdk` and syncs the `sdkVersion` in every `manifest.json` to what is then installed. In a **standalone project**: `bun add`s the SDK at `latest` (or `--to `) into whichever section already declares it, which also pulls in the `@glasshome/ui` it peers, then syncs the manifests and re-runs `bun widget validate`. In a **monorepo workspace** (a `package.json` with a `workspaces` field at or above the project): reads the SDK version from the workspace package, runs `bun install` from the root, syncs every manifest, then re-runs `bun widget validate`. `upgrade` also points your coding agent at the widget guide the new SDK ships ([Building with a coding agent](/docs/widgets/widget-development#building-with-a-coding-agent)). Rewrites widgets' raw-Zod config (`z.object`, `widgetFields`) to the `defineConfig` + `field.*` API. Assistive, not lossy: fields it cannot translate stay raw Zod and are reported as manual TODOs; validation is never dropped. Migrate only the named widget. Preview without writing. > **Global flag:** Use `--dir ` with any project-scoped command (`add`, `build`, `validate`, `info`, `connect`, `publish`, `upgrade`, `migrate`) to point at a different widget project directory. `create` ignores it; it scaffolds into a new directory under the current working directory. ## Local Testing Workflow What `connect` does, in order: - Builds all widgets. - Runs the **OAuth device-code flow** against the Dash URL (browser opens to the Dash approval page). - Uploads each bundle to the Dash API under the `local` scope. - Registers the widgets via the Dash internal tRPC endpoint. Switch on **Developer Mode** in Dash Settings (admins) so the dashboard reloads them on each save. - Watches `src/`; on save, rebuilds and re-uploads the affected widget. - On `Ctrl+C`, unregisters the widgets and exits. No local HTTP server is started; Dash talks to its own API for the bundle bytes. --- title: "Getting Started" description: "Build custom GlassHome widgets with SolidJS and the widget SDK. Scaffold, develop with hot-reload, validate, and publish." slug: widgets/widget-development canonical: https://glasshome.app/docs/widgets/widget-development section: "Build Widgets" updated: 2026-10-19 --- # Getting Started A widget is a SolidJS component + a Zod config schema, wrapped with `defineWidget`. The dashboard renders the component, auto-generates the settings form from the schema, and feeds in entity state. ### Scaffold \`bunx @glasshome/widget-cli\@latest\` (no args). Creates a project and your first widget. ### Hot-reload \`bun widget connect \\` rebuilds on save and re-uploads to a running dashboard. ### Publish \`bun widget publish\` to Hub. Pick personal or organization scope. Inside a scaffolded project, `bun widget ` works (the CLI is pinned in `devDependencies`, with a `widget` script alias to `glasshome-widget`); elsewhere use `bunx @glasshome/widget-cli@latest `. Full command list: [Widget CLI](/docs/widgets/widget-cli). ## Prerequisites | Tool | Version | Notes | | ------- | ------- | ----------------------------------------------------------------------------------------------------------------- | | Bun | 1.0+ | CLI `engines` field requires `bun >=1.0.0` | | Node.js | 18+ | Required by `@glasshome/widget-sdk` (`engines.node >= 18`); Bun's bundled Node compatibility layer satisfies this | Scaffolded projects ship a `.mise.toml` pinning the versions. Install [mise](https://mise.jdx.dev) and run `mise install`. ## Quickstart 1. **Scaffold a project** ```bash bunx @glasshome/widget-cli@latest cd ``` Generates `package.json`, `vite.config.ts`, `tsconfig.json`, the `widget` script alias, and your first widget (prompts for name + description). 2. **(Optional) add more widgets** ```bash bun widget add ``` Prompts for name and description, creates `src//index.tsx` and `src//manifest.json`. 3. **Connect to a running Dash instance** ```bash bun widget connect http://homeassistant.local:3123 ``` Builds, runs an OAuth **device-code flow against your local Dash instance** (not Hub), uploads each bundle to the Dash API under the `local` scope, then watches `src/`, re-uploading on save. With **Developer Mode** on in Dash Settings, widgets refresh without a page reload. 4. **Publish** ```bash bun widget publish ``` `publish` runs `login` automatically the first time. See [Publishing](/docs/widgets/widget-publishing). ## Project layout ``` my-widgets/ ├── package.json ├── vite.config.ts ├── tsconfig.json └── src/ ├── my-widget/ │ ├── index.tsx # Component + defineWidget │ └── manifest.json # Widget metadata └── another-widget/ ├── index.tsx └── manifest.json ``` One widget per directory under `src/`. Build outputs one self-contained JS bundle per widget plus a `registry.json` in `dist/`. ## Mental model - The dashboard handles rendering, gestures, theming, entity subscriptions, settings forms, and layout. Your widget supplies how the bound entities are visualized and what the primary tap does. - No settings UI to write: define a Zod schema; the dashboard renders the form. - No WebSocket state to manage: `useEntity` / `useEntities` read the entity ids the user picked in config and stay reactive; `useWidgetEntityGroup` aggregates them and supplies an empty state. - No Home Assistant connection or token to hold: all reads and service calls go through SDK hooks, checked against your declared [capabilities](/docs/widgets/widget-capabilities). ## Versions at a glance | Version type | Where it lives | Who bumps it | What breaks without it | | -------------------------------- | -------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | | SDK version (`sdkVersion`) | `manifest.json`, as a semver range (e.g. `^1.0.0`) | `bun widget publish` derives it from the built bundle (CLI 0.19 and later; older CLIs had `bun widget upgrade` rewrite it) | Dash refuses to load a widget whose range excludes its SDK and asks the home to update; a range floored too low lets an older Dash install a widget that crashes | | Widget version (`version`) | `manifest.json` | `--bump` flag on `bun widget publish` | Re-publishing the same version is rejected (409) | | Config version (`configVersion`) | `manifest.json`, integer | You, when config shape has breaking changes | Without a bump, users' saved configs aren't migrated and may fail Zod parse | | CLI minimum (Hub-enforced) | Served by Hub at `/api/widgets/cli-version` | Hub (I bump it on protocol changes) | `login`/`publish` hard-stop if CLI is below the floor | ### Which Dash runs your widget Each Dash release ships one widget SDK. A widget whose `sdkVersion` range is above that SDK installs on a later Dash. The Hub serves this table at `/api/widgets/dash-releases`, and `widget publish` uses it to say which Dash versions a widget reaches. A beta or release candidate Dash can run a widget before the stable one does. Homes on the stable channel get it once that Dash is released. Known limits: - The table lists releases, so a home on an older Dash has to update before it gets your widget. - The derived `sdkVersion` is a minimum. It proves every name your widget imports exists on that Dash; a prop or behavior that changed since then can still differ, so try your widget on the oldest Dash its range admits. ## Building with a coding agent Claude Code, Codex, Cursor and other coding agents build widgets that match the official ones when they read the widget guide. It ships inside `@glasshome/widget-sdk` at `node_modules/@glasshome/widget-sdk/guide/widgets.md`, so it always describes the SDK your project builds against. `bun widget create` points your agent at it: a Claude skill in `.claude/skills/glasshome-widget/` and a section in `AGENTS.md`. Both only point at the guide, so a new SDK brings new guidance without touching them. In an existing project, `bun widget upgrade` adds them; it adds one marked section to an `AGENTS.md` you already have and leaves the rest alone. `bun widget build` tells you when a newer SDK is out. Run `bun widget upgrade` and your agent reads the new guide on its next task. ## Auth flows: connect vs. login Both flows open a browser, but they authenticate against different hosts, and the resulting tokens are stored separately, never interchangeable: ## Where to go next ### [Widget SDK guide](/docs/widgets/widget-sdk) defineWidget, Widget components, hooks, the HA data layer, entity helpers. ### [API Reference](/docs/widgets/widget-api-reference) Every public export across the SDK, /schemas, and /vite entry points. ### [Capabilities & Permissions](/docs/widgets/widget-capabilities) Declare the Home Assistant access your widget needs and how the user approves it. ### [Styling & Animation](/docs/widgets/widget-styling) Per-widget CSS bundles, Tailwind, your own CSS files, theme variables, container queries, animation. ### [CLI reference](/docs/widgets/widget-cli) Every \`bun widget \\` and what it does. ### [Publishing](/docs/widgets/widget-publishing) Auth, scopes, versioning, trust badges. ### [Config migrations](/docs/widgets/widget-migrations) Handle breaking config changes without breaking users. --- title: "Widget SDK" description: "The GlassHome widget SDK API. defineWidget, Widget components, hooks, entity bindings, and theming." slug: widgets/widget-sdk canonical: https://glasshome.app/docs/widgets/widget-sdk section: "SDK" updated: 2026-11-01 --- # Widget SDK `@glasshome/widget-sdk` (on npm) provides `defineWidget`, the [Config API](/docs/widgets/widget-sdk/config) (`defineConfig` + `field.*`), composable UI components, reactive hooks, the Home Assistant data layer, and theming utilities for SolidJS widgets. The runtime constant `SDK_VERSION` equals the installed package version; the host compares it against each widget's `manifest.sdkVersion` range. Each Dash release ships one SDK version, so a widget built for a newer SDK installs on the Dash that ships it or a later one. [Getting Started](/docs/widgets/widget-development#which-dash-runs-your-widget) lists the pairs. This page is the **guide**. For every public export across the three entry points, see the [API Reference](/docs/widgets/widget-api-reference). ## On this page - [`defineWidget`](#definewidget) and [manifest fields](#manifest-fields) - [`widgetFields`](#widgetfields) and the [complete widget example](#complete-widget-example) - [``](#widget-component): [variants](#variants) and [slot subcomponents](#slot-subcomponents) - The [``](#widgetdialog-component) settings dialog - [Hooks](#hooks), [Home Assistant data & services](#home-assistant-data--services), the [`EntityView`](#the-entityview-shape) shape - [Errors and empty states](#errors-and-empty-states), [theming](#theming), [entity utilities](#entity-utilities), [build tooling](#build-tooling) ## defineWidget The entry point for every widget: a manifest (metadata), an optional Zod config schema, an optional `migrate` function, and a SolidJS component. ```ts function defineWidget>( definition: WidgetDefinition ): WidgetDefinition ``` `WidgetDefinition` shape: ```ts interface WidgetDefinition> { manifest: WidgetManifest; configSchema?: ZodType; migrate?: (config: Record, fromConfigVersion: number) => Record; component: (props: { config: C }) => any; } ``` Providing `configSchema` auto-populates `manifest.schema` (JSON Schema) and `manifest.defaultConfig`. Types derive via `z.infer`; the dashboard renders the edit form from the schema. ## Manifest fields The runtime loads the inline `manifest` in `defineWidget`; the CLI reads `src//manifest.json` for build and publish metadata (`bun widget publish` writes the derived `sdkVersion` back to that file; before CLI 0.19, `bun widget upgrade` did). Keep the two in sync: the build step warns on schema drift. | Field | Type | Required | Description | | --------------- | ------------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `name` | `string` | yes | Display name and identifier | | `description` | `string` | no | Short description shown in the widget picker | | `icon` | `string` | no | Iconify icon, e.g. `"mdi:lightbulb"` | | `minSize` | `{w, h}` | yes | Minimum grid size | | `maxSize` | `{w, h}` | yes | Maximum grid size. Dashboards are 4, 8, 12 or 16 columns wide (phone to wide screen), so a widget meant to span the whole width sets `w: 16` | | `defaultSize` | `{w, h}` | no | Initial size when added to a dashboard | | `sdkVersion` | `string` | yes | Required SDK version range, e.g. `"^1.0.0"` | | `capabilities` | `CapabilityGrant[]` | yes (1.x) | Home Assistant domains the widget reads or controls; approved by the user; service calls are enforced by the host, reads are shown at install and checked at runtime in a later release. Empty array for widgets that touch no HA data. See [Capabilities & Permissions](/docs/widgets/widget-capabilities). | | `configVersion` | `number` | no | Bump when config shape changes; used with `migrate` | | `schema` | `object` | no | Auto-populated from `configSchema`. Do not set manually. | | `defaultConfig` | `object` | no | Auto-populated from Zod `.default()` calls. | | `cssUrl` | `string` | no | Set by the build when the widget emits a stylesheet. Do not set manually. | ## widgetFields > **Deprecated in 1.4.0:** `widgetFields.*` and building `configSchema` with raw `z.object({ ... })` still > work, but they're deprecated and will be removed in a future major release. Use > the [Config API](/docs/widgets/widget-sdk/config) (`defineConfig` + `field.*`) instead, or > run `bun widget migrate config`. `bun widget build` warns on each use. Pre-built Zod field helpers; each attaches metadata so the dashboard renders the right form control. | Helper | Renders as | Replacement | | ----------------------------------- | ------------------------------------------------------------------ | ------------------------ | | `widgetFields.title()` | Text input labelled "Title", hint "Optional display name override" | `field.title()` | | `widgetFields.entityIds(domain)` | Multi-select entity picker filtered by domain | `field.entities(domain)` | | `widgetFields.singleEntity(domain)` | Single-select entity picker filtered by domain | `field.entity(domain)` | | `widgetFields.areaId()` | Area picker dropdown | `field.area()` | See the [Config API](/docs/widgets/widget-sdk/config) for the full `field.*` surface (`field.text`, `field.number`, `field.toggle`, `field.choice`, `field.stringList`, `field.group`) and type inference with `Infer`. ## Complete widget example A working example mirroring the official `@glasshome` widgets: config schema, entities bound from config via `useEntities`, group aggregation via `useWidgetEntityGroup`, a tap-to-toggle gesture, and a schema-driven settings dialog. Note that **you bind entities yourself** from the ids the user picked in config; there is no hidden injection. ```tsx // src/my-lights/index.tsx // Dialog chrome is injected into WidgetDialog as props, and the SDK re-exports it // from @glasshome/ui so the imports stay gated by sdkVersion. import { Button, defineConfig, defineWidget, field, Icon, type Infer, type LightGroupResult, ResponsiveDialog, ResponsiveDialogContent, ResponsiveDialogDescription, ResponsiveDialogHeader, ResponsiveDialogTitle, SchemaForm, Widget, WidgetDialog, useEntities, useService, useWidgetContext, useWidgetDialog, useWidgetEntityGroup, useWidgetGestures, } from "@glasshome/widget-sdk"; import { onCleanup } from "solid-js"; const configSchema = defineConfig({ title: field.title(), entityIds: field.entities("light"), }); type Config = Infer; function MyLightsWidget(props: { config: Config }) { const ctx = useWidgetContext(); const { setShowDialog, dialogProps } = useWidgetDialog(); const { toggle } = useService(); // Bind the entities the user picked in config. Reactive: updates when state changes. const entities = useEntities(() => props.config.entityIds); const { aggregatedData, emptyState, hasEntities } = useWidgetEntityGroup({ entities, aggregationMode: () => "light", emptyStateConfig: { icon: , title: "No lights", message: "Hold to configure", }, }); // aggregatedData is typed for every mode; narrow it to the one you asked for. const light = () => aggregatedData() as LightGroupResult | undefined; const isOn = () => light()?.isOn ?? false; const onCount = () => light()?.onCount ?? 0; const gestures = useWidgetGestures(() => ({ tap: () => toggle(entities().map((e) => e.id)), })); onCleanup(gestures.dispose); return ( <> { ctx.updateConfig(config); setShowDialog(false); }} /> ); } export default defineWidget({ manifest: { name: "My Lights", description: "Toggle a group of lights", icon: "mdi:lightbulb-group", minSize: { w: 1, h: 1 }, maxSize: { w: 8, h: 8 }, sdkVersion: "^1.17.0", capabilities: [{ domain: "light", access: "control" }], }, configSchema, component: MyLightsWidget, }); ``` > **Binding entities from config:** `useEntities(() => props.config.entityIds)` resolves the ids the user picked (via the `field.entities` picker) into live `EntityView[]`. Pass that accessor straight into `useWidgetEntityGroup`. A single-entity widget uses `field.entity(domain)`, which also stores `string[]`, so read the first id: `useEntity(() => props.config.entityIds[0] ?? "")`. The scaffold template ships this exact wiring. > **The dialog needs UI components:** `` renders no chrome of its own. It takes `ResponsiveDialog`, `Button`, `SchemaForm`, and friends as props so your widget controls the look. Import them from @glasshome/widget-sdk, which re-exports them behind `sdkVersion`; keep `@glasshome/ui` installed, since the build reads its styles. See [WidgetDialog component](#widgetdialog-component) for the full prop list. ## Widget component `` is the main container: context, gesture handling, theming, and base styling. ### Props ```ts interface WidgetProps { variant?: string | WidgetVariantConfig; tone?: Tone; // semantic color: resolves to --widget-color color?: string; // CSS color override for --widget-color (overrides tone) colorTo?: string; // second gradient stop (--widget-color-to) gradient?: string; // full CSS gradient (overrides auto-shell) loading?: boolean; class?: string; isEditMode?: boolean; onDelete?: () => void; emptyState?: { icon?: JSX.Element; title?: string; message?: string }; gestures?: GestureHandlers; // return value of useWidgetGestures(...) children?: JSX.Element; } ``` Pass the return value of `useWidgetGestures(...)` to `gestures`, not a plain object. ### Variants `variant` picks a pre-built look for the shell (padding, blur, background): a built-in id string or a `WidgetVariantConfig` object whose `styles` set the container class, inline style and CSS variables. The SDK ships three: | `variant` id | Look | | ---------------------- | ------------------------------------------------------------------------------------------------------- | | `"classic-glass"` | Default glass: blurred translucent shell, roomy padding. What every official `@glasshome` widget uses. | | `"minimal"` | No glass: transparent shell, tighter padding. | | `"compact-horizontal"` | Lighter blur, tighter padding and a larger icon, for short, wide tiles. It does not change your layout. | ```tsx … ``` > **No variant means no shell styling:** If you omit `variant`, no variant styling is applied (you get a bare shell). For the standard GlassHome look, pass `variant="classic-glass"`. The scaffold and every built-in widget do. `WidgetVariantConfig` is exported from the SDK for fully custom looks. Only its `styles` field takes effect; `layout`, `elements`, `plugins`, `interactions` and `extends` are deprecated and removed in 2.0. Tone and color props ([Theming](#theming), [Styling](/docs/widgets/widget-styling#coloring-the-shell)) layer on top of whichever variant you choose. ### Slot subcomponents | Slot | Key props | Purpose | | ------------------- | -------------------------------------------------------- | --------------------------------------------- | | `Widget.Icon` | `icon: JSX.Element`, `color?`, `dimmed?`, `entityCount?` | Entity icon with adaptive color | | `Widget.Title` | `children`, `badge?` | Primary label | | `Widget.Status` | `children`, `dimmed?`, `isUnavailable?` | State text (On, Off, etc.) | | `Widget.Value` | `value: number \| string`, `unit?`, `interpret?` | Numeric or formatted value. Takes no children | | `Widget.Content` | `children`, `class?` | Freeform content area | | `Widget.SliderFill` | `value: number` (0–100), `color?`, `isDragging?` | Background fill for slider widgets | `Widget.SliderFill` is also exported standalone as `WidgetSliderFill` (same component). Pass `isDragging` so the fill tracks the finger 1:1 while dragging (drops the transition). See [Animation](/docs/widgets/widget-styling#animation). ### Component props Every widget component receives one prop, `{ config: C }`, where `C` is the type passed to `defineWidget`. The host parses, migrates, and validates the saved config first, so `config` always matches your current schema type. ## Hooks ### `useWidgetContext()` Returns `ReactiveWidgetContext`. Must be called inside the `` render tree. ```ts interface ReactiveWidgetContext { isEditMode: () => boolean; updateConfig: (config: Record) => void; dimensions: () => { width: number; height: number }; // CSS px, (0,0) before first layout registerDialogOpener?: (open: ((tab?: string) => void) | null) => void; } ``` ### `useWidgetEntityGroup(options)` Aggregates one or many entities with built-in aggregation presets and empty-state support. ```ts function useWidgetEntityGroup( options: UseWidgetEntityGroupOptions ): UseWidgetEntityGroupResult ``` **Options:** | Field | Type | Description | | -------------------- | ------------------------------------------ | -------------------------------------------------------------------------------------- | | `entities` | `Accessor` | Reactive entities array (required) | | `emptyStateConfig` | `WidgetEmptyStateConfig` | Shown when `hasEntities` is false (required) | | `aggregationMode` | `Accessor` | `"light"`, `"sensor"`, `"switch"`, `"binary-sensor"`, `"none"` | | `sensorGroupType` | `Accessor` | For `"sensor"` preset: `"min"`, `"max"`, `"mean"`, `"median"`, `"sum"`, `"last"`, etc. | | `calculateGroupData` | `(entities: EntityView[]) => TData` | Custom aggregation function (alternative to `aggregationMode`) | | `allEntitiesMode` | `boolean` | All entities must be on for group to be "on" (light/switch presets) | | `minEntities` | `number` | Minimum entities required; default `1` | **Return value:** | Field | Type | Description | | ---------------- | -------------------------------------------------------------- | ----------------------------------------- | | `entities` | `Accessor` | All entities | | `groupData` | `Accessor` | Result of `calculateGroupData`, or `null` | | `aggregatedData` | `Accessor` | Result of preset aggregation | | `emptyState` | `Accessor` | Defined when entities are missing | | `hasEntities` | `Accessor` | Whether minimum entities are present | | `count` | `Accessor` | Entity count | `LightGroupResult` includes: `isOn`, `isUnavailable`, `brightness` (0-255), `brightnessPercent` (0-100), `color`, `onCount`, `totalCount`, `description`. ### `useWidgetDialog(defaultTab?)` Controls the widget settings dialog. `defaultTab` defaults to `"controls"`. ```ts interface WidgetDialogReturn { showDialog: () => boolean; setShowDialog: (open: boolean) => void; openDialog: (tab?: string) => void; closeDialog: () => void; activeTab: () => string; setActiveTab: (tab: string) => void; dialogProps: { open: boolean; onOpenChange: (open: boolean) => void; activeTab: string; onActiveTabChange: (tab: string) => void; }; } ``` Spread `dialogProps` onto `` to wire open/close and tab state automatically. ## WidgetDialog component `` is the settings/detail dialog: a tabbed panel that can host device controls, a schema-driven config editor, and a debug view. It renders **no chrome of its own**; you inject the dialog/button/form components as props. ### Injected UI components (required) These have no defaults; the dialog will not render without them. Import them from `@glasshome/widget-sdk`, which re-exports them behind `sdkVersion`: | Prop | Component | | ----------------------------- | ------------------------------------------------------------------------------------------ | | `ResponsiveDialog` | Dialog/drawer wrapper | | `ResponsiveDialogContent` | Body | | `ResponsiveDialogHeader` | Header region | | `ResponsiveDialogTitle` | Title | | `ResponsiveDialogDescription` | Subtitle/description | | `Button` | Buttons (save, delete, tab controls) | | `SchemaForm` | Form renderer for schema-driven config editing. Required only when you use `configSchema`. | > **Info:** The official `@glasshome` widgets bundle these into a single `widgetDialogProps` object and spread it (``). Do the same in your project to keep call sites short. ### Content props | Prop | Type | Purpose | | ------------------------------------------------ | --------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `title` | `string` | Dialog title (required) | | `sheet` | `() => JSX.Element` | What holding the tile opens: only what the tile cannot show. A render function, built on open (SDK 1.17 and up). See [Tiles & Sheets](/docs/widgets/widget-sheets). | | `tile` | `{ icon?, tone?, backdrop? }` | Overrides for the sheet's look; it already wears the widget's icon and colour, so usually only `backdrop` (SDK 1.17 and up) | | `controlsContent` | `JSX.Element` | Device-controls tab (sliders, buttons for the bound entities) | | `configSchema` | `ZodType` | Enables the schema-driven config editor tab. Pair with `config` + `onConfigSave`. | | `config` | `Record` | Current config to seed the editor | | `onConfigSave` | `(config) => void` | Called with the new config; typically `ctx.updateConfig(config)` then close | | `editContent` | `JSX.Element` | Custom config UI, used **instead of** the schema editor when `configSchema` is absent | | `debugContent` | `JSX.Element` | Debug tab body | | `debugData` | `string \| Record` | Raw debug payload (rendered if no `debugContent`) | | `tabs` | `WidgetDialogTab[]` | Fully custom tabs: `{ id, label, icon, content }[]` | | `defaultTab` / `activeTab` + `onActiveTabChange` | `string` / controlled pair | Initial or controlled active tab | | `headerActions` | `JSX.Element` | Extra buttons in the header | | `onDelete` | `() => void` | Renders a delete action | | `maxWidth` | `"sm" \| "md" \| "lg" \| "xl" \| "2xl" \| "3xl" \| "4xl"` | Dialog max width | Config-only widgets pass just `configSchema` + `config` + `onConfigSave`; control widgets add a `sheet` (SDK 1.17 and up), which also makes the tile hold to open it, or `controlsContent`. The tab row shows only with Developer Mode on. See the [complete example](#complete-widget-example) for the wiring. ### `useWidgetGestures(config, orientation?)` Tap, hold, and slide gestures on any pointer type. ```ts function useWidgetGestures( config: () => GestureConfig, orientation?: () => "horizontal" | "vertical" | "square" ): GestureHandlers ``` Both arguments are SolidJS accessors; orientation is optional and defaults to horizontal. ```ts interface GestureConfig { tap?: () => void; hold?: { action: () => void; delay?: number }; // delay in ms, default 550 slide?: { value: number; onChange: (value: number) => void; min?: number; max?: number; orientation?: "auto" | "horizontal" | "vertical"; activationDelay?: number; }; } ``` `GestureHandlers` (returned value) carries `onPointerDown`, `onPointerMove`, `onPointerUp`, `onPointerCancel`, `onPointerEnter`, `bindElement`, `touchAction`, and `dispose`. Pass the whole object to ``. Call `dispose()` in `onCleanup`. ### `useReducedMotion()` Reactive accessor, `() => boolean`: true when the device asks for reduced motion (`prefers-reduced-motion`) or the home's Reduce motion setting is on (from **1.26.0**); `false` when `matchMedia` is unavailable (SSR-safe). ### `useIntersectionPause(elAccessor)` Returns `() => boolean`: `true` while the element (passed as an accessor) is off-screen; `false` when `IntersectionObserver` is unavailable (SSR-safe). ## Home Assistant data & services Import all Home Assistant hooks from `@glasshome/widget-sdk`, never from `@glasshome/sync-layer` directly (a direct import fails the build and would bundle a second, disconnected store). Read hooks are SolidJS accessors backed by the host's live store, so UI stays reactive with no WebSocket state to manage. Service calls are checked against your declared [capabilities](/docs/widgets/widget-capabilities); declare your reads too, since read checks are coming. ### Reading entities | Hook | Returns | Purpose | | ---------------------------------- | --------------------------------------------- | ------------------------------------------------------------------ | | `useEntity(id)` | `Accessor` | One entity by id (`id` may be a string or accessor) | | `useEntities(ids)` | `Accessor` | Many entities; pass an accessor returning the id array | | `useArea(id)` | `Accessor` | An area and its entities | | `useEntityHistory(id)` | `Accessor` | Recent state history for an entity | | `useEntityStatistics(id, options)` | `Resource` | Long-term statistics; the resource exposes `.loading` and `.error` | | `useForecast(id)` | `Accessor` | Weather forecast for a weather entity | | `useCamera(id)` | `{ stream, refresh }` | Reactive camera stream data | | `useStore(selector)` | `Accessor` | Escape hatch for direct store access when no specific hook fits | ```tsx import { useEntity, useEntities } from "@glasshome/widget-sdk"; function Thermostat(props: { config: Config }) { const climate = useEntity(() => props.config.entityIds[0] ?? ""); const temp = () => climate()?.attributes.current_temperature; return ; } ``` ### The `EntityView` shape Every read hook returns `EntityView` objects. The most-used fields: | Field | Type | Notes | | ----------------------------- | --------------------- | ------------------------------------------------------------------------------------------------------ | | `id` | `string` | Entity id, e.g. `"light.kitchen"` | | `domain` | `string` | `"light"`, `"sensor"`, … | | `state` | `string` | Current state value (`"on"`, `"22.5"`, …) | | `attributes` | `Record` | HA attributes, **minus** the four surfaced below. Read those from the canonical fields, not from here. | | `friendlyName` | `string` | Display name | | `icon` | `string \| null` | Resolved icon (registry → attribute → domain default) | | `deviceClass` | `string \| null` | Resolved device class | | `unitOfMeasurement` | `string \| null` | Resolved unit | | `areaId` / `deviceId` | `string \| null` | Placement / device | | `lastChanged` / `lastUpdated` | `Date` | Timestamps | `EntityView` is exported as a type from the SDK for your own annotations. ### Connection & locale | Hook | Returns | | ---------------------- | ----------------------------------- | | `useConnection()` | `{ status, isConnected }` accessors | | `useHassConfig()` | `Accessor` | | `useUnitSystem()` | `Accessor` | | `useTemperatureUnit()` | `Accessor` (e.g. `"°C"`) | | `useLocale()` | `Accessor` (BCP 47) | | `useCurrency()` | `Accessor` (ISO 4217) | ### Calling services `useService()` returns a capability-routed service caller plus shortcuts that take an entity id (or array) and optional service data: ```tsx import { useService } from "@glasshome/widget-sdk"; function LightToggle(props: { config: Config }) { const { toggle, turnOn, callService } = useService(); return ( ({ tap: () => toggle(props.config.entityId) }))}> {/* turnOn("light.x", { brightness_pct: 80 }) */} {/* callService("light", "turn_on", { brightness_pct: 80 }, { entity_id: "light.x" }) */} ); } ``` | Hook | Returns | | ---------------------------------------------- | ------------------------------------------ | | `useService()` | `{ callService, turnOn, turnOff, toggle }` | | `useTurnOn()` / `useTurnOff()` / `useToggle()` | The single shortcut function | `callService(domain, service, data?, target?)` is the general form; it resolves to `Promise`. The host validates the call against your granted capabilities before forwarding it. ## Errors and empty states - **Config schema parse failure.** If the stored config fails Zod validation after migration, the dashboard falls back to `configSchema.parse({})` (all-defaults), then to `{}`. No error is shown to the user; handle missing/default config gracefully. - **Missing entities.** Pass an `emptyStateConfig` to `useWidgetEntityGroup`. When `hasEntities()` is false, `emptyState()` returns the config object; pass it to `` to render the built-in empty state UI. - **Component throw.** A render throw is caught by an `ErrorBoundary`: after one crash, a retryable error card with a Retry button; after three crashes (configurable in the Dash host), a permanent "disabled" card until the page is refreshed. ## Theming Widgets inherit the dashboard theme automatically and render in an isolated shadow root with their own CSS bundle. The essentials: - Use the `tone` prop on `` for semantic color (`tone="accent"`), or `color`/`colorTo`/`gradient` for a custom shell. - Style dark mode with `dark:` Tailwind variants and theme variables. `isDark()` returns the home's mode for logic, reactive inside a memo or effect from **1.26.0**. `prefers-color-scheme` is the device's setting, which can differ from the home's mode. - The SDK also exports `injectTokens`, `Tone`, and `ToneSchema`. The full styling model (Tailwind, your own CSS, theme variables, container queries, animation): **[Styling & Animation](/docs/widgets/widget-styling)**. ## Entity utilities | Function | Description | | --------------------------------------------------------------- | ----------------------------------------------------- | | `isEntityActive(entity)` | `true` for active states | | `getEntityAttribute(entity, key)` | Read a specific attribute | | `countActiveEntities(entities)` | Count of currently active entities | | `calculateLightGroup(entities, allEntitiesMode?)` | Aggregate brightness/color/state across a light group | | `calculateSensorGroup(entities, groupType?, ignoreNonNumeric?)` | Aggregate numeric sensors | ## Build tooling The scaffolded `vite.config.ts` wires this up automatically. Two entrypoints for custom setups: ### `@glasshome/widget-sdk/vite` | Export | Purpose | | ---------------------------------- | ---------------------------------------------------------------- | | `glasshomeWidget(options?)` | Single-widget plugin: dev preview + library build | | `glasshomeWidgets(options?)` | Multi-widget project plugin: per-widget builds + `registry.json` | | `buildWidgets(options?)` | Programmatic build of all widgets (used by `bun widget build`) | | `discoverWidgets(srcDir)` | Scan `src/` for subdirs containing `index.tsx` + `manifest.json` | | `generateRegistry(srcDir, outDir)` | Write a `registry.json` from discovered manifests | | `isWidgetExternal(id)` | `true` for host-provided packages (not bundled) | ### `@glasshome/widget-sdk/schemas` Zod schemas for validating manifests and publish payloads. Used by the CLI and Hub. Re-exported from the canonical [`@glasshome/widget-contract`](/docs/widgets/widget-capabilities) package shared by the SDK, CLI, Hub, and Dash, so the same schema validates a manifest everywhere. | Export | Purpose | | --------------------------------------------------------------------- | ------------------------------------------------- | | `widgetManifestSchema` (alias `WidgetManifestSchema`) | Validate a complete widget manifest | | `publishManifestSchema` | Validate the manifest subset sent at publish time | | `capabilitiesSchema` | Validate a `capabilities` array | | `capabilityGrantSchema` | Validate a single `{ domain, access }` grant | | `GridSizeSchema` | Validate `{ w, h }` | | `parseGridSize` / `serializeGridSize` | Parse from / serialize to the stored JSON form | | `formatSchemaError` | Turn a Zod error into a readable message | | `PublishRequestSchema` / `PublishConfirmSchema` / `PublishBodySchema` | Publish-flow request bodies | | `CapabilityGrant` (type) | TypeScript type for one grant | `formatSchemaError` and `WidgetManifestSchema` are also available from the SDK main entry (`@glasshome/widget-sdk`) for convenience. --- title: "Widget Config API" description: "Declare a widget's settings form with defineConfig and field.* — field kinds, type inference, and raw schemas." slug: widgets/widget-sdk/config canonical: https://glasshome.app/docs/widgets/widget-sdk/config section: "SDK" updated: 2026-08-25 --- # Widget Config API Declare a widget's settings form with `defineConfig` and the `field.*` builders. Pass the result to `defineWidget` as `configSchema`; the dashboard renders the edit form automatically. ```tsx import { defineConfig, field, type Infer } from "@glasshome/widget-sdk"; const configSchema = defineConfig({ title: field.title(), entityIds: field.entities("light"), showBrightness: field.toggle({ title: "Show brightness", default: true }), }); type Config = Infer; ``` `Infer` is your config type — use it for `props.config`. ## Field kinds | Field | Renders | Config type | | -------------------------------------------------------------------------- | --------------------------------------------------------------------- | ------------------------------------- | | `field.title()` | Text input ("Title", optional) | `string \| undefined` | | `field.text({ title, description?, default? })` | Text input | `string` (optional without a default) | | `field.number({ title, description?, min?, max?, default? })` | Number input | `number` | | `field.toggle({ title, description?, default? })` | Switch | `boolean` | | `field.choice(values, { title, description?, default?, labels?, icons? })` | Select, or icon cards when `icons` is set | the literal union of `values` | | `field.choices(values, { title, description?, default?, labels? })` | Multi-select toggle row | an array of `values` | | `field.entities(domain, { title?, description?, deviceClass? })` | Multi entity picker | `string[]` | | `field.entity(domain, { title?, description?, deviceClass? })` | Single entity picker | `string[]` | | `field.area({ title? })` | Area picker | `string \| undefined` | | `field.icon({ title?, default? })` | Icon picker | `string` (optional without a default) | | `field.image({ title?, description?, default?, presets? })` | Image picker, with your built-in pictures first when `presets` is set | `string` (optional without a default) | | `field.stringList({ title, description? })` | String list | `string[]` | | `field.group(shape, { title })` | Nested group | the nested object | A `default` makes the property required (it always fills in); omit it to make the property optional. `field.choice` keeps the exact string-literal union, so `props.config` stays fully typed. `labels` names each option for the homeowner (`{ floor: "Floor lamp" }`); without one the raw value shows. `icons` gives each option an Iconify name (SDK 1.17 and up), and the form draws the choice as a grid of icon cards instead of a dropdown. An older dashboard ignores `icons` and keeps the dropdown. ```tsx const configSchema = defineConfig({ mode: field.choice(["auto", "heat", "cool"], { title: "Mode", default: "auto" }), target: field.number({ title: "Target °C", min: 5, max: 35, default: 21 }), sensors: field.entities("sensor", { deviceClass: "temperature" }), icon: field.icon({ title: "Icon", default: "mdi:thermostat" }), photo: field.image({ title: "Photo" }), }); // Config = { mode: "auto" | "heat" | "cool"; target: number; sensors: string[]; icon: string; photo?: string } ``` > **Icons are names, not imports:** `field.icon()` stores an Iconify name like `mdi:lightbulb`. Render it with > `` from `@glasshome/widget-sdk` (SDK 1.15 > and up): the host provides it, so a widget never bundles an icon set. > GlassHome serves icon data from its own origin and caches it, which is what > keeps a widget's CSP free of third-party hosts. The older > `@iconify-icon/solid` import still renders but is deprecated and goes away > in SDK 2.0; `bun widget build` points at each remaining use. > **Images are ids, not URLs:** `field.image()` stores an opaque id for a picture the homeowner uploaded to > their dashboard, never a URL. Turn it into something an `` can load with > `imageUrl(id)` from `@glasshome/widget-sdk`: > > ```tsx > import { imageUrl } from "@glasshome/widget-sdk"; > > const src = () => imageUrl(props.config.photo); > ``` > > The resolver's general name is `mediaUrl`; `imageUrl` is the image-flavoured > alias, and the two are the same function. Either one reads fine here. > > `undefined` is a normal answer, not an error: the homeowner may not have picked > anything yet, and a preview or render host may have no media store at all. Draw > your own empty state or your own bundled art when it comes back undefined, and > handle `onError` on the `` for the picture that was deleted after it was > picked. > > There is no plural field. A carousel is `field.list` of an object wrapper > holding a `field.image` and a `field.text` caption. > **Built-in pictures:** A widget that ships its own pictures offers them in the same picker through > `presets` (SDK 1.17 and up). Each preset has a `label`, a small `thumb` for > the picker and the full `src`; only the label and thumb travel in the > manifest. Resolve the stored value with `imageSrc`, which returns the preset's > picture or the uploaded image: > > ```tsx > import { field, imageSrc } from "@glasshome/widget-sdk"; > import coast from "./coast.webp"; > import coastThumb from "./coast-thumb.webp"; > > const PHOTOS = { coast: { label: "Coast", src: coast, thumb: coastThumb } }; > const configSchema = defineConfig({ photo: field.image({ title: "Photo", presets: PHOTOS }) }); > > const src = () => imageSrc(props.config.photo, PHOTOS); > ``` > > Keep thumbs small (about 128px, a few KB): the manifest carries them. An > example can pick a preset with `presetValue("coast")`, which is what the > picker stores. > **Keep the form shallow:** The settings form is a flat list of fields. `field.group`, `field.list` and > `field.variants` below are the structured exceptions; a list never holds > another list. ## Repeating and branching fields Two field kinds build shapes the flat list can't (SDK 1.9.0+). `field.list(item, opts)` renders an add / remove / reorder list of sub-forms: ```tsx const configSchema = defineConfig({ nodes: field.list( { label: field.text({ title: "Label" }), entity: field.entity("sensor"), }, { title: "Nodes", max: 8, labelField: "label" }, ), }); // Config = { nodes: { label: string; entity: string }[] } ``` `max` is required and caps at 24. Every item is a rendered subtree and usually its own entity subscription, so an uncapped list is a performance cliff you'd hand to the user. `labelField` names the field shown on each collapsed row, and it has to exist in the item shape. A list inside a list throws when the schema is defined, including one hidden inside a `variants` branch. `field.variants(discriminator, variants, opts)` builds a tagged union, for when a config means different things depending on a kind: ```tsx const configSchema = defineConfig({ source: field.variants( "kind", { entity: { entity: field.entity("sensor") }, fixed: { value: field.number({ title: "Value", default: 0 }) }, }, { title: "Source", labels: { entity: "From an entity", fixed: "A fixed value" }, shared: { unit: field.text({ title: "Unit" }) }, }, ), }); ``` `shared` fields are merged into every branch, and `labels` name the branches in the form's kind selector. > **Adopting either is a config shape change:** Moving existing settings into a `list` or `variants` changes the stored shape, > so bump `configVersion` in `defineWidget` and write the migration. Old configs > still parse, which is exactly why the build guard, not the type checker, is > what catches a missing bump. ## Advanced: raw schemas For validation `field.*` can't express (custom checks, unions), import `z` and use it directly — `defineConfig` accepts raw schemas alongside fields: ```tsx import { defineConfig, field, z } from "@glasshome/widget-sdk"; const configSchema = defineConfig({ title: field.title(), webhook: z.string().url().meta({ title: "Webhook URL" }), }); ``` Leave zod's global settings alone: `z.config(...)` is unavailable in the sealed engine, where every widget runs from Dash 1.5, so a widget that calls it fails there. ## Migrating to 1.4.0 1.4.0 replaced the old config helpers (`widgetFields.*` and raw `z.object`) with `defineConfig` + `field.*`. Existing widgets keep working; migrate when convenient. New widgets can skip this section. > **widgetFields is deprecated:** `widgetFields.*` and building `configSchema` with raw `z.object({ ... })` still > work, but they're deprecated and will be removed in a future major release. > `bun widget build` warns on each use, so you can migrate when convenient. > > The same applies to naming a field `areaId` to get an area picker. The host > used to infer one from the property name, so any other name silently rendered > a text input. Declare `field.area()` instead — it works under any name. Run the codemod from your widget project: ```bash bun widget migrate config # migrate every widget bun widget migrate config --dry # preview without writing bun widget migrate config --name clock ``` Anything it can't safely rewrite is left in place and reported, so nothing breaks silently. | Before | After | | ------------------------------------------ | ------------------------------- | | `widgetFields.title()` | `field.title()` | | `widgetFields.entityIds(domain, opts?)` | `field.entities(domain, opts?)` | | `widgetFields.singleEntity(domain, opts?)` | `field.entity(domain, opts?)` | | `widgetFields.areaId()` | `field.area()` | | `z.object({ ... })` | `defineConfig({ ... })` | | `z.infer` | `Infer` | --- title: "Materials" description: "Make the parts your widget draws itself match the home's material, with the --material-* variables and useMaterial()." slug: widgets/widget-sdk/materials canonical: https://glasshome.app/docs/widgets/widget-sdk/materials section: "SDK" updated: 2026-10-04 --- # Materials Each home picks a material in its theme: Glass, Frosted, Paper, Neon, Chalk, or one somebody made in the creator studio. It decides what every card and control looks like. A widget built from `` and the SDK's parts already matches it. This page is for the parts you draw yourself, like a key, a slot or a glow, so they match too. > **SDK 1.21 and up:** The variables and useMaterial() on this page need SDK 1.21. Raise your manifest's sdkVersion floor to it. Dashboards have them from GlassHome 1.4.0-beta.11. ## The material variables Every `--material-*` variable is yours to read. Every material sets them, in light and dark mode. | Variable | What it is | | -------------------------- | ------------------------------------------------------------------------------ | | `--material-accent` | The color for what is on. The theme's accent, unless the material has its own. | | `--material-face` | The background of a part that stands out: a key, a knob. | | `--material-well` | The background of a part that sits in: a track, a slot. | | `--material-raised` | The `box-shadow` for a part that stands out. | | `--material-pressed` | The inset `box-shadow` for a part that sits in. | | `--material-control-track` | An empty control, like a switch that is off. | | `--material-control-fill` | The lit part of a control, like a switch that is on. | | `--material-control-knob` | The knob on a lit control. | | `--material-blur` | How much the glass blurs what is behind it, as a length. | | `--material-clarity` | How much of the card color the glass keeps, as a percentage. | | `--material-tint` | How strongly a card takes its own color, as a number. | | `--material-glow` | How far the glow reaches, as a length. | Two more belong to your widget rather than the material: `--surface-tone` is your widget's own color, and `--surface-wash` is how strongly it tints the card. ```css .key { background: var(--material-face); box-shadow: var(--material-raised); } .key[data-on] { background: var(--material-control-fill); color: white; } .slot { background: var(--material-well); box-shadow: var(--material-pressed); } ``` On Glass and Paper the two shadows are faint. On a material with a raised face they carry the whole look, so the same CSS fits both. ## Changing what you draw by material `useMaterial()` tells you which material the home has, with every setting filled in. Use it for decisions, like leaving out a glow on a material without one, and keep the colors in CSS. ```tsx import { useMaterial } from "@glasshome/widget-sdk"; function Meter() { const material = useMaterial(); return (
0 }}> {/* ... */}
); } ``` | Field | Meaning | | -------------- | ---------------------------------------------- | | `id` | Which material it is. | | `terms.face` | `"flat"` or `"raised"`. | | `terms.glow` | How far the glow reaches, in px; 0 means none. | | `terms.accent` | `"theme"`, or the material's own color. | | `terms.*` | Every other setting the creator studio shows. | On a dashboard older than GlassHome 1.4.0-beta.11, it gives you Glass. ## Names not to read - `--glass-*` are the knobs you set on a `.glass` element, like `--glass-base`. Setting them is fine; reading them is not, because they change whenever the glass does. - Names that start with `--_`, like `--_material-edge`, are how the material is drawn inside. Leave them alone. - A few older `--material-*` names are retired: `--material-depth`, `--material-hue`, `--material-reach`, `--material-ink`, `--material-ink-level`, `--material-ink-lift`, `--material-edge-width`, `--material-edge-ink` and `--material-edge-accent`. Some widgets read them before 1.21, and they still work. SDK 2.0 will remove them (see [Coming in 2.0](/docs/widgets/changelog#coming-in-20-breaking)). `bun widget build` warns about each of these reads and names the replacement: | If you read | Use | | ---------------------------------------------------------- | --------------------------------------------------------------------------------- | | `--glass-tone`, `--material-hue` | `--surface-tone`, or `--material-accent` when your widget has no color of its own | | `--glass-wash`, `--glass-wash-2` | `--surface-wash` | | `--glass-rim-shine`, `--glass-lift`, `--material-depth` | `--material-raised` or `--material-pressed` | | `--material-reach`, `--material-edge-*`, `--material-ink*` | `useMaterial().terms` | --- title: "API Reference" description: "The complete public API of the GlassHome widget SDK. Every export across the main entry, /schemas, and /vite, with signatures." slug: widgets/widget-api-reference canonical: https://glasshome.app/docs/widgets/widget-api-reference section: "SDK" updated: 2026-11-06 --- # API Reference Every public export of `@glasshome/widget-sdk`, with signatures, by entry point. The [Widget SDK guide](/docs/widgets/widget-sdk) walks the important APIs with worked examples. Anything not listed here is internal and may change without notice. ## Entry points | Import | Use it for | | ---------------------------------------- | ----------------------------------------------------------------------------------------------------- | | `@glasshome/widget-sdk` | Everything you use at runtime: `defineWidget`, components, hooks, the data layer, utilities, theming. | | `@glasshome/widget-sdk/schemas` | Zod schemas for validating manifests and publish payloads. Used by the CLI and Hub. | | `@glasshome/widget-sdk/vite` | Build plugins and helpers for `vite.config.ts`. The scaffold wires these for you. | | `@glasshome/widget-sdk/tailwind-sources` | A CSS file the build feeds to Tailwind. Referenced by the scaffold; not imported in widget code. | Most types named below are exported too. SolidJS conventions apply: `Accessor` is `() => T`, and an argument typed `Accessor | X` accepts a plain value or an accessor. > **Always import the data layer from the SDK:** Home Assistant hooks (`useEntity`, `useService`, …) are re-exported from the SDK on purpose. Importing them from @glasshome/sync-layer directly fails the build and would bundle a second, disconnected store. See Capabilities. --- ## `@glasshome/widget-sdk` (main entry) ### Core ```ts function defineWidget>( definition: WidgetDefinition ): WidgetDefinition ``` Declares a widget. When `definition.configSchema` is present, it auto-populates `manifest.schema` (JSON Schema) and `manifest.defaultConfig`. See [the guide](/docs/widgets/widget-sdk#definewidget). ```ts const SDK_VERSION: string // the installed package version, e.g. "1.2.0" ``` The host compares `SDK_VERSION` against each widget's `manifest.sdkVersion` range. ### Components `Widget` carries its slots as static members (`Widget.Icon`, `Widget.Title`, …); each is also exported standalone. | Export | Props (key) | What it is | | ---------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Widget` | `variant`, `tone`, `color`, `colorTo`, `gradient`, `loading`, `emptyState`, `gestures`, `confirmed` (SDK 1.17), `class` | The container: shell, gestures, theming. See [Widget component](/docs/widgets/widget-sdk#widget-component). | | `WidgetContent` / `Widget.Content` | `children`, `accent?`, `class?` | Layout wrapper; with a `Widget.Head` inside, the tile layout (SDK 1.17). | | `WidgetHead` / `Widget.Head` | `name`, `icon?`, `eyebrow?`, `aside?`, `active?`, `count?` | Icon, small line, name, chips (SDK 1.17). | | `WidgetHero` / `Widget.Hero` | `value`, `unit?`, `sub?`, `art?` | The big reading and the tile's art (SDK 1.17). | | `WidgetControls` / `Widget.Controls` | `children` | The control row (SDK 1.17). | | `WidgetStepper` / `Widget.Stepper` | `label`, `onStep(-1 \| 1)` | Minus and plus (SDK 1.17). | | `WidgetChoice` / `Widget.Choice` | `label`, `value`, `options`, `onChange`, `tone?` | Icon options (SDK 1.17). | | `WidgetAction` / `Widget.Action` | `icon`, `run`, `children?`, `aria-label?`, `confirm?`, `id?` | Ticks after an action that leaves no state (SDK 1.17). | | `WidgetChip` / `Widget.Chip` | `children`, `icon?`, `tone?` | Small badge (SDK 1.17). | | `WidgetBackdrop` / `Widget.Backdrop` | `children` | Full-bleed picture under a scrim (SDK 1.17). | | `WidgetLayer` / `Widget.Layer` | `children`, `class?` | Your own full-tile layer, edge to edge (SDK 1.17). | | `WidgetGlyph` / `Widget.Glyph` | `icon` | Faint corner icon (SDK 1.17). | | `WidgetIcon` / `Widget.Icon` | `icon`, `color?`, `dimmed?`, `entityCount?` | Entity icon tile with adaptive color. | | `WidgetTitle` / `Widget.Title` | `children`, `badge?` (number) | Primary label. `badge` renders a count pill when above 0. | | `WidgetStatus` / `Widget.Status` | `children`, `dimmed?`, `isUnavailable?` | State text. | | `WidgetValue` / `Widget.Value` | `value` (number \| string), `unit?`, `interpret?` | Numeric/formatted value. Takes no children: it formats `value` and appends `unit` itself, and renders `--` when `value` is missing. | | `WidgetSliderFill` / `Widget.SliderFill` | `value` (0–100), `color?`, `isDragging?` | Animated background fill for slider widgets. | | `WidgetDialog` | see [WidgetDialog component](/docs/widgets/widget-sdk#widgetdialog-component) | Settings/detail dialog. Renders no chrome of its own; inject UI via props. | | `CameraStream` | `entityId`, `kind` (`"webrtc"` \| `"hls"`), `muted`, `poster?`, `fit?` (`"cover"` \| `"contain"`), `fullscreen?`, `class?`, `onLive?`, `onAudio?(has)`, `onError?(reason)`, `onStale?(reason)` | A camera's live video, played by the dashboard. `fullscreen` adds a full screen control. Works in the [sealed engine](/docs/widgets/widget-sealed-engine) (SDK 1.31). | ### Widget hooks ```ts function useWidgetContext(): ReactiveWidgetContext ``` Reactive widget context. Must be called inside the `` tree. ```ts interface ReactiveWidgetContext { updateConfig: (config: Record) => void; dimensions: () => { width: number; height: number }; // deprecated since 1.9.0, use useWidgetDimensions() registerDialogOpener?: (open: ((tab?: string) => void) | null) => void; callService?: ServiceCallFn; // present when capability-routed by the host } ``` `isEditMode` was removed in 1.9.0 (nothing read it; the host provided a constant `false`). ```ts function useWidgetDashboard(): () => { name: string; icon: string; areaId: string | null } ``` The dashboard the widget is on. Updates live if someone renames it. Hosts that predate this field return empty values, so treat `name` and `icon` as possibly empty and `areaId` as possibly `null`. ```ts function useMaterial(): () => { id: string; terms: MaterialTerms } ``` Which material the home has (Glass, Frosted, Paper, Neon, Chalk or one made in the creator studio), with every setting filled in. Updates when the home changes material. Use it for decisions, like leaving out a glow when `terms.glow` is 0; keep the colors in CSS with the [material variables](/docs/widgets/widget-sdk/materials). On a dashboard older than GlassHome 1.4.0-beta.11, it gives you Glass. ```ts function useWidgetDimensions(): () => { width: number; height: number } ``` Measured shell size in CSS px. Call it in a component **inside** ``; it throws anywhere else. `ctx.dimensions()` is deprecated (removed in 2.0.0): outside `` it silently read the host's stub, which returns `(0,0)` forever, locking a widget into its smallest layout. This hook throws instead. ```ts function useConfirm(): { has(key: string): boolean; any(): boolean; run(keys: string[], action: () => unknown): Promise } ``` Confirms actions that leave no state: `run` calls the action and marks `keys` for a moment when it succeeds, resolving whether it did. Share one with `Widget.Action` (`confirm`) and `` (SDK 1.17). ```ts function useWidgetEntityGroup( options: UseWidgetEntityGroupOptions ): UseWidgetEntityGroupResult ``` Aggregate one or many entities with presets + empty state. Options: reactive `entities: Accessor`, an `aggregationMode` (`"light" \| "sensor" \| "switch" \| "binary-sensor" \| "none"`) or a custom `calculateGroupData`, plus `emptyStateConfig`, `sensorGroupType`, `allEntitiesMode`, and `minEntities`. Returns `entities`, `groupData`, `aggregatedData`, `emptyState`, `hasEntities`, and `count` accessors. Full tables in [the guide](/docs/widgets/widget-sdk#usewidgetentitygroupoptions). ```ts function useWidgetDialog(defaultTab = "controls"): WidgetDialogReturn ``` Open/close + active-tab state for `WidgetDialog`. Returns `showDialog`, `setShowDialog`, `openDialog`, `closeDialog`, `activeTab`, `setActiveTab`, and a `dialogProps` bag to spread onto ``. ```ts function useWidgetGestures( config: () => GestureConfig, orientation?: () => "horizontal" | "vertical" | "square" ): GestureHandlers ``` Tap, hold, and slide gestures for any pointer. `GestureConfig` = `{ tap?, hold?: { action, delay? }, slide?: { value, onChange, min?, max?, orientation?, activationDelay? } }`. Pass the returned `GestureHandlers` to ``; call `.dispose()` in `onCleanup`. ```ts function useReducedMotion(): Accessor // device or home asks for reduced motion; false if unavailable (SSR-safe) function useIntersectionPause(el: Accessor): Accessor // true while off-screen ``` | Export | Kind | What it is | | ----------- | --------------- | ------------------------------------------------------------------------ | | `WidgetCtx` | SolidJS context | The context object behind `useWidgetContext`. Advanced; prefer the hook. | ### Config schema helpers Since 1.4.0 the config surface is `defineConfig` + `field.*` (see the [Config API](/docs/widgets/widget-sdk/config)): ```ts function defineConfig(shape: S): ConfigSchema; const field: { title(): Field; text(o): Field; number(o): Field; toggle(o): Field; choice(values: readonly T[], o): Field; entities(domain: string, o?): Field; entity(domain: string, o?): Field; area(o?): Field; stringList(o): Field; group(shape: S, o): Field>; }; type Infer; // config type from a schema, without naming zod ``` `z` is re-exported from the SDK as a permanent escape hatch for schemas `field.*` can't express. ```ts // Deprecated — use field.* / defineConfig (removed in a future major). const widgetFields: { title(): ZodType; // → field.title() entityIds(domain: string, opts?: { deviceClass?: string }): ZodType; // → field.entities(domain, opts) singleEntity(domain: string, opts?: { deviceClass?: string }): ZodType; // → field.entity(domain, opts) areaId(): ZodType; // → field.area() } ``` `widgetFields` and raw `z.object` config are deprecated. Run `bun widget migrate config`. See the [Config API](/docs/widgets/widget-sdk/config). ### Home Assistant data hooks Reactive accessors over the host's live store. Each `entityId` arg accepts a string or an accessor. Declare every domain you read in your [capabilities](/docs/widgets/widget-capabilities): that declaration is what the user sees and approves when they install your widget. | Export | Signature | What it is | | --------------------- | ---------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `useEntity` | `(id: Accessor \| string) => Accessor` | One entity by id. | | `useEntities` | `(ids: Accessor) => Accessor` | Many entities from an id-array accessor. | | `useArea` | `(id: Accessor \| string) => Accessor` | An area and its entities. | | `useEntityHistory` | `(id) => Accessor` | Recent state history. | | `useEntityStatistics` | `(id, options) => Resource` | Long-term statistics; resource exposes `.loading` / `.error`. | | `useForecast` | `(id) => Accessor` | Weather forecast for a weather entity. | | `useCamera` | `(id) => { stream: Accessor; refresh: () => void }` | Reactive camera stream. | | `useCalendarEvents` | `(id, options?: { daysBehind?: number; daysAhead?: number }) => Accessor` | Live events for a calendar entity, pushed by Home Assistant. Window defaults to 7 days behind and 35 ahead. Data carries `events`, `loading`, `error` and the subscribed `start`/`end`. Since SDK 1.10.0. | | `useStore` | `(selector: (s) => T) => Accessor` | Direct store selector. Escape hatch. | | `byDomain` | `Accessor>` | All entity ids grouped by domain. | ### Connection & locale hooks | Export | Signature | What it is | | -------------------- | ------------------------------------------- | ----------------------- | | `useConnection` | `() => { status; isConnected }` (accessors) | Live connection status. | | `useHassConfig` | `() => Accessor` | Home Assistant config. | | `useUnitSystem` | `() => Accessor` | Unit system. | | `useTemperatureUnit` | `() => Accessor` | e.g. `"°C"`. | | `useLocale` | `() => Accessor` | BCP 47 locale. | | `useCurrency` | `() => Accessor` | ISO 4217 currency. | ### Services ```ts function useService(): { callService: ServiceCallFn; turnOn: (entityId: string | string[], data?: Record) => Promise; turnOff: (entityId: string | string[], data?: Record) => Promise; toggle: (entityId: string | string[], data?: Record) => Promise; } type ServiceCallFn = ( domain: string, service: string, data?: Record, target?: { entity_id?: string | string[] }, options?: { returnResponse?: boolean } ) => Promise; ``` Host-mounted widgets route these through the host's capability check (a `control` grant is required); preview/tests fall back to direct sync-layer calls. `useTurnOn()`, `useTurnOff()`, and `useToggle()` each return just the one shortcut. Pass `{ returnResponse: true }` for services that return data, such as `todo.get_items`; the promise then resolves to Home Assistant's service response instead of `undefined`. Only set it for services that support a response, since HA errors otherwise. The capability check is unchanged. Since SDK 1.10.0, and the host forwards the response from **Dash 1.1.0-beta.5** onward — on older hosts the call still runs but resolves `undefined`. ### Entity utilities | Export | Signature | What it is | | ---------------------- | -------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | | `isEntityActive` | `(entity: EntityView \| null \| undefined) => boolean` | `true` for active states. | | `getEntityAttribute` | `(entity, name: string, fallback?: T) => T \| undefined` | Read one attribute with a fallback. | | `hassMediaUrl` | `(path: string \| null \| undefined) => string \| undefined` | Resolve an HA media path (album art, camera image) to a loadable URL. See [Media URLs](#media-urls). | | `countActiveEntities` | `(entities: EntityView[]) => number` | Count active entities. | | `calculateLightGroup` | `(entities: EntityView[], allEntitiesMode?= false) => LightGroupResult` | Aggregate on/off, brightness, color across a group. | | `calculateSensorGroup` | `(entities: EntityView[], groupType?: SensorGroupType = "mean", ignoreNonNumeric?= true) => SensorGroupResult` | Aggregate numeric sensors. | `LightGroupResult`: `isGroup`, `state`, `isOn`, `isUnavailable`, `brightness` (0–255), `brightnessPercent` (0–100), `color`, `onCount`, `totalCount`, `description`. `SensorGroupResult`: `isGroup`, `state`, `numericValue` (`number \| null`), `isUnavailable`, `unit?`, `description`, `memberValues?`. `SensorGroupType`: `"min" \| "max" \| "mean" \| "median" \| "sum" \| "last" \| "range" \| "product" \| "std_dev"`. ### Media URLs Home Assistant exposes media references (album art `entity_picture`, camera proxy paths) as origin-relative paths like `/api/media_player_proxy/...?token=...`, which a bare `` resolves against the dashboard's own origin and fails to load. `hassMediaUrl` resolves them through the host's same-origin media proxy, so the image loads both **at home and over remote access** (no extra permissions, the path keeps Home Assistant's own signed token). ```tsx import { hassMediaUrl, useEntity, getEntityAttribute } from "@glasshome/widget-sdk"; const entity = useEntity(entityId); const albumArt = () => { const e = entity(); if (!e) return undefined; return hassMediaUrl(getEntityAttribute(e, "entity_picture")); }; ; ``` - Absolute `http(s)://` URLs pass through unchanged. - Missing or empty input returns `undefined`, so `` handles "nothing playing" for free. - No external service (cover-art API etc.) is needed for media Home Assistant already serves: read `entity_picture` and wrap it. - Available since widget-sdk **1.3.0**. `imageUrl` and `mediaUrl` do a different job: they resolve a household media-library id, which is what [`field.image()`](/docs/widgets/widget-sdk/config) stores, through the host's media store. Both are re-exported from `@glasshome/ui` since **1.12.0**. ### Theming & charts | Export | Signature | What it is | | ------------------- | ---------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | | `isDark` | `() => boolean` | The home's mode as a boolean; reactive inside a memo or effect from **1.26.0**. | | `injectTokens` | `(root?: Document \| ShadowRoot) => void` | Attach SDK CSS tokens to a root the host did not set up. | | `svgColors` | `Record` | Energy chart colors. Keys: `solar`, `grid`, `battery`, `ev`, `home`, `positive`, `negative`. See [Charts](/docs/widgets/widget-styling#charts). | | `ToneSchema` | Zod enum | Validates a `Tone`. | | `monotoneCubicPath` | `(points) => string` | Smooth SVG path string from a list of points. | `Tone`: `"success" \| "warning" \| "danger" \| "info" \| "neutral" \| "accent"`. ### Validation re-exports Convenience re-exports also available from [`/schemas`](#glasshomewidget-sdkschemas). | Export | Kind | What it is | | ---------------------- | ----------------- | ----------------------------------------- | | `WidgetManifestSchema` | Zod schema | Validate a complete widget manifest. | | `formatSchemaError` | `(err) => string` | Turn a Zod error into a readable message. | ### Deprecation registry The single source of truth for deprecated APIs, driving warn-once runtime notices, the CLI lint, and the deprecation docs table. | Export | Kind | What it is | | ------------------- | ------------------------------------- | ------------------------------------------------------- | | `deprecations` | `DeprecationEntry[]` | The registry of deprecated APIs and their replacements. | | `formatDeprecation` | `(entry: DeprecationEntry) => string` | Render one entry as a readable warning message. | | `DeprecationEntry` | type | One deprecation record. | ### Lower-level data exports Building blocks under the hooks; most widgets never touch these. | Export | Kind | What it is | | --------------------------------------------- | ----------------------- | ----------------------------------------------------------------------------------------- | | `state` | `Store` | The raw reactive store. | | `getForecasts` | function | Imperative forecast fetch. | | `trackEntityHistory` / `untrackEntityHistory` | `(entityId) => void` | Start / stop history tracking for an entity. | | `getStream` | function | Camera stream descriptor. Deprecated since SDK 1.31: use `CameraStream`. | | `getWebRtcClientConfig` | function | WebRTC client config for camera streaming. Deprecated since SDK 1.31: use `CameraStream`. | | `startWebRtcSession` | function | Begin a WebRTC camera session. Deprecated since SDK 1.31: use `CameraStream`. | | `sendWebRtcCandidate` | function | Send an ICE candidate during a session. Deprecated since SDK 1.31: use `CameraStream`. | ### Types (main entry) ```ts interface WidgetDefinition> { manifest: WidgetManifest; configSchema?: ZodType; migrate?: (config: Record, fromConfigVersion: number) => Record; component: (props: { config: C }) => any; } interface WidgetManifest { name: string; description?: string; minSize: GridSize; // { w, h } maxSize: GridSize; defaultSize?: GridSize; sdkVersion: string; icon?: string; capabilities?: CapabilityGrant[]; configVersion?: number; schema?: object; // auto-populated from configSchema; do not set defaultConfig?: Record; // auto-populated; do not set cssUrl?: string; // set by the build } interface GridSize { w: number; h: number } ``` Other exported types: `WidgetContext` (deprecated since **1.26.0**, removed in 2.0.0: no host provides it; read the theme with `isDark()`), `ReactiveWidgetContext`, `EntityView` (see [the shape](/docs/widgets/widget-sdk#the-entityview-shape)), `AreaView`, `WidgetVariantConfig`, `WidgetStyles`, `Tone`, `SvgColorKey`, `GestureHandlers`, `AggregationPreset`, `SensorGroupType`, `LightGroupResult`, `SensorGroupResult`, `UseWidgetEntityGroupOptions`, `UseWidgetEntityGroupResult`, `WidgetDialogProps`, `WidgetDialogTab`, `WidgetDialogReturn`, `ServiceCallFn`. --- ## `@glasshome/widget-sdk/schemas` Zod schemas re-exported from the canonical `@glasshome/widget-contract` package, the single source of truth shared by the SDK, CLI, Hub, and Dash, so the same definitions validate a manifest everywhere. | Export | Kind | What it is | | --------------------------------------------------------------------- | ----------------- | -------------------------------------------------- | | `widgetManifestSchema` (alias `WidgetManifestSchema`) | Zod schema | Validate a complete widget manifest. | | `publishManifestSchema` | Zod schema | Validate the manifest subset sent at publish time. | | `capabilitiesSchema` | Zod schema | Validate a `capabilities` array. | | `capabilityGrantSchema` | Zod schema | Validate one `{ domain, access }` grant. | | `GridSizeSchema` | Zod schema | Validate `{ w, h }`. | | `parseGridSize` / `serializeGridSize` | functions | Convert grid size to/from the stored JSON form. | | `PublishRequestSchema` / `PublishConfirmSchema` / `PublishBodySchema` | Zod schemas | Publish-flow request bodies. | | `formatSchemaError` | `(err) => string` | Turn a Zod error into a readable message. | | `CapabilityGrant` | type | One capability grant. | --- ## `@glasshome/widget-sdk/vite` Build plugins and helpers for `vite.config.ts`. The scaffolded config wires these; reach for them only in custom setups. See [Build tooling](/docs/widgets/widget-sdk#build-tooling). | Export | Signature | What it is | | ------------------ | -------------------------------------------------- | --------------------------------------------------------------- | | `glasshomeWidget` | `(options?: GlasshomeWidgetOptions) => Plugin[]` | Single-widget plugin: dev preview + library build. | | `glasshomeWidgets` | `(options?: GlasshomeWidgetsOptions) => Plugin[]` | Multi-widget plugin: per-widget builds + `registry.json`. | | `buildWidgets` | `(options?: BuildWidgetsOptions) => Promise` | Programmatic build of all widgets (used by `bun widget build`). | | `discoverWidgets` | `(srcDir: string) => DiscoveredWidget[]` | Scan `src/` for subdirs with `index.tsx` + `manifest.json`. | | `generateRegistry` | `(srcDir: string, outDir: string) => void` | Write a `registry.json` from discovered manifests. | | `isWidgetExternal` | `(id: string) => boolean` | `true` for host-provided packages (kept out of the bundle). | Option shapes (all exported): - `GlasshomeWidgetsOptions`: `{ srcDir?, outDir? }` only. - `BuildWidgetsOptions`: `{ srcDir?, outDir?, plugins?, viteConfig?, only? }` (`plugins`, `viteConfig`, and `only` are `buildWidgets`-only; `glasshomeWidgets` does not accept them). - `GlasshomeWidgetOptions`: `{ entry? }` (defaults to `"src/index.tsx"`). --- ## UI primitives (re-exported from `@glasshome/ui`) Import these from `@glasshome/widget-sdk`, not from `@glasshome/ui/solid`. The SDK re-export is the one `sdkVersion` gates; direct imports are deprecated since **1.9.0** and removed in **2.0.0**. `WidgetDialog` takes its chrome as props and renders none of its own. Pass `ResponsiveDialog`, `ResponsiveDialogContent`, `ResponsiveDialogHeader`, `ResponsiveDialogTitle`, `ResponsiveDialogDescription` and `Button`; add `SchemaForm` when you use `configSchema`. See [WidgetDialog component](/docs/widgets/widget-sdk#widgetdialog-component). Keep `@glasshome/ui` installed either way, since the build reads its styles. The full re-export set, with the version each one arrived in, is in [Styling](/docs/widgets/widget-styling#importing-ui-components). --- title: "Capabilities & Permissions" description: "How a widget declares the Home Assistant access it needs. The capability grammar, access levels, narrowing, user consent, and host enforcement." slug: widgets/widget-capabilities canonical: https://glasshome.app/docs/widgets/widget-capabilities section: "Build Widgets" updated: 2026-09-03 --- # Capabilities & Permissions A widget runs sandboxed: an isolated shadow root, no Home Assistant connection or token, no network beyond Home Assistant and the Hub. To read or control anything in the home, it **declares the access it needs** in its manifest. The user approves that list at install, and the host enforces it on every service call. Control is **deny-by-default**: a service call you don't declare is blocked at runtime. Reads are shown to the user at install but not yet checked at runtime, so declare every domain you read: the consent screen is only as honest as your manifest, and read checks will block undeclared reads once they ship. > **Info:** This is the developer's view. For the homeowner-facing explanation of the sandbox, see Widget Security. ## How access works Home Assistant interaction goes only through the SDK's [data and service hooks](/docs/widgets/widget-sdk#home-assistant-data--services): importing `@glasshome/sync-layer` directly fails the build, and `fetch`/WebSocket to Home Assistant is blocked. The host checks every service call against your declared capabilities before touching Home Assistant. **Reads** (entity state, history, forecasts) require a `read` grant for the domain; **service calls** require `control`. ## Declaring capabilities 1. **List what the widget needs, minimally** Decide which Home Assistant domains the widget touches and whether it only *shows* them (`read`) or also *operates* them (`control`). Ask for the least that works. 2. **Add a capabilities array to the manifest** Each grant is `{ domain, access }`, plus optional narrowing: ```jsonc // manifest.json "capabilities": [ { "domain": "light", "access": "control" }, { "domain": "sensor", "access": "read" } ] ``` The same array goes in the inline `manifest` passed to `defineWidget`. A widget that touches no Home Assistant data (a clock, say) declares an empty array: ```jsonc "capabilities": [] ``` Targeting SDK 1.x **without** a `capabilities` array is rejected at publish. A manifest may declare at most 32 grants. 3. **Use the data layer** Read and control through the SDK hooks: ```tsx import { useEntity, useService } from "@glasshome/widget-sdk"; const light = useEntity(() => props.config.entityId); // needs read/control on "light" const { toggle } = useService(); // toggle(props.config.entityId) // needs control on "light" ``` ## Access levels | `access` | Grants | Use it for | | --------- | ------------------------------------------------------------ | ---------------------------- | | `read` | Reading state, attributes, history, forecasts for the domain | Widgets that only display | | `control` | Read **and** calling services on the domain | Widgets that operate devices | `control` implies `read` on the same domain, so you never need both. ## Narrowing a grant A grant covers a whole domain by default; tighten it when the widget needs only part of one. ### To specific entities `entities` lists entity-id patterns. The domain part stays literal and `*` globs only the object id, so a pattern can never widen a grant past its domain. ```jsonc { "domain": "light", "access": "control", "entities": ["light.living_*", "light.kitchen"] } ``` An entity-scoped grant cannot reach **domain-wide** services (a service call with no entity target). Leave `entities` off if the widget needs the whole domain. ### To specific services `services` restricts a `control` grant to named services; calls outside the list are rejected. ```jsonc { "domain": "media_player", "access": "control", "services": ["media_play", "media_pause"] } ``` `entities` and `services` must be non-empty when present. A service-narrowed grant covers its entities for its own domain's services only, so keep it off any grant an integration service has to reach through (see below). ## Integration services Some integrations add services that act on **another domain's entities**. Music Assistant and Sonos own no entities of their own: their speakers appear as `media_player.*`, and services like `music_assistant.get_queue` or `sonos.snapshot` are aimed at those entities. A call like that names two domains, and each needs a grant: ```jsonc "capabilities": [ { "domain": "media_player", "access": "control" }, // the speaker it acts on { "domain": "music_assistant", "access": "control" } // the service it calls ] ``` The host checks both: the service's own domain must be granted, and every entity the call targets must be covered by some grant. Granting `media_player` alone does not let a widget call Music Assistant services; granting `music_assistant` alone reaches no speaker. Narrowing still applies. With `{ "domain": "media_player", "access": "control", "entities": ["media_player.kitchen"] }`, integration services reach the kitchen speaker and nothing else. > **Info:** Services that take no entity at all (`music_assistant.get_library` takes a `config_entry_id`) act on the integration itself. Those need an un-narrowed grant on the integration's domain, the same rule as any other domain-wide service. ## What the user approves The install consent screen renders each grant as a plain-language sentence, generated from the same object the host enforces, so the prompt cannot drift from what is allowed: | Grant | Shown to the user | | --------------------------------------------------------------------------------------- | ---------------------------------------------------------- | | `{ domain: "light", access: "control" }` | Control your lights | | `{ domain: "sensor", access: "read" }` | Read your sensors | | `{ domain: "light", access: "control", entities: ["light.living_*"] }` | Control your lights (light.living\_\*) | | `{ domain: "media_player", access: "control", services: ["media_play","media_pause"] }` | Control your media players — only: media play, media pause | ## Enforcement and updates - **Deny-by-default for control.** Every service call is checked against your grants at runtime; anything unmatched is blocked and the user is notified. Widget code cannot opt out. - **Reads are declared, checked later.** Read grants appear on the consent screen today; runtime read checks are coming, and will block any read your manifest does not declare. - **Widening re-prompts.** An update asking for more than the user approved (a new domain, broader access, removed narrowing) must be re-approved before it runs. Narrowing or unchanged grants install silently. - **Verified on publish.** The Hub validates your capability grammar and the bundle hash before a version goes live. ## See also ### [Data & service hooks](/docs/widgets/widget-sdk#home-assistant-data--services) The SDK hooks every capability gates: useEntity, useService, and the rest. ### [Widget Security](/docs/dash/widget-security) The homeowner-facing view of the sandbox and what it guarantees. --- title: "Publishing Widgets" description: "Publish your GlassHome widgets to Hub. Login, validate, version, select scope, and publish." slug: widgets/widget-publishing canonical: https://glasshome.app/docs/widgets/widget-publishing section: "CLI & Publishing" updated: 2026-10-19 --- # Publishing Widgets Share your widgets with the GlassHome community by publishing them to Hub. ## Publish Flow 1. **(Optional) Log in to GlassHome Hub** You only need to run this explicitly if you want to authenticate before publishing. The `publish` command auto-runs login if no token is found, so this step is optional in practice. ```bash bun widget login ``` This runs an OAuth PKCE flow against Hub. A browser opens; the first time, Hub asks you to allow the widget CLI on your account. The callback lands on `http://127.0.0.1:9274/callback`. The resulting token is stored locally, renewed in the background and reused on subsequent publishes for up to 30 days. This is separate from `bun widget connect`, which authenticates against your local Dash instance using a device-code flow. 2. **Validate your widgets** Checks manifests, bundle sizes, and SDK version compatibility. Fix any issues before publishing. ```bash bun widget validate ``` 3. **Publish** The CLI validates first, then prompts you to select which widget to publish, choose a scope, and pick a version bump. It then builds and uploads the bundle to Hub, which checks it before it goes live. ```bash bun widget publish ``` Use flags to skip prompts: - `--name `: publish only the named widget. - `--bump keep|patch|minor|major`: pre-pick the version bump. This updates the `version` field in `src//manifest.json`. - `--scope `: pre-pick the publishing scope. ## Publish lifecycle The gate checks in the diagram above are enforced server-side, with precise failures: - **Bundle > 2 MB, or stylesheet > 1 MB** → rejected with `400`. - **A file that is not what it claims** → rejected with `422`: the bundle must parse as a JavaScript module and the stylesheet as CSS, each matching the size and hash the CLI declared. - **Duplicate version** → `409`; published versions are immutable. A version whose publish never finished can be published again. - **Scope you don't own** → rejected. Org scopes require the `owner` or `admin` role. - **A name removed by moderation** → `403`; it stays blocked until I lift the removal. ## Versioning The `version` field lives in `src//manifest.json`. The `--bump` flag increments it automatically. Versions follow semver: - **Patch (0.1.0 → 0.1.1).** Bug fixes, no config changes. - **Minor (0.1.0 → 0.2.0).** New features, backward-compatible config. - **Major (0.2.0 → 1.0.0).** Breaking config changes (bump `configVersion` too and add a `migrate` function; see [Config Migrations](/docs/widgets/widget-migrations)). > **On SDK 1.0:** Widgets must target `@glasshome/widget-sdk` 1.x and declare a `capabilities` block, or publish is rejected. See [Upgrading to SDK 1.0](/docs/widgets/widget-sdk-1-0). ## Publishing Scopes When you publish, the CLI prompts you to select a publishing scope if you belong to any organizations: ``` ? Select publishing scope: ❯ @your-username (personal) @my-team (organization) ``` Your **personal scope is your username** (`@username`). Organization scope uses the org slug. You can create organizations on [GlassHome Hub](/docs/hub/organizations). The CLI learns which scopes you can publish to from `GET /api/widgets/scopes`, which returns your personal scope plus any org scopes you have permission to publish under. ### How your username is determined Your username is assigned automatically at signup by slugifying your display name (lowercased, with non-alphanumeric runs collapsed to dashes, so "Alice Test" becomes `alice-test`). It is unique per account: if someone already has that slug, later accounts get a numbered suffix (`alice-test-2`). The username is decoupled from your display name. Renaming your display name later does **not** change your scope, so widgets you have already published stay reachable at the same `@username/widget-name` ID. You can change your username in your [account dashboard](/dashboard) settings, but **not while you have widgets published** under your current scope (changing it would orphan them). Yank or remove those widgets first, or publish future versions under a new scope. `@glasshome` is the reserved official scope and cannot be claimed by users or organizations. ## Yank, deprecation, and release notes The database schema tracks `yanked`, `yankedReason`, `deprecationMessage`, and `releaseNotes` per version. There is no user-facing mechanism to yank or deprecate a version yourself yet. If you publish a broken version and need it pulled, contact me directly and I'll yank it. `releaseNotes` will be shown in the widget detail view once that UI is built. ## When I restrict a widget Anyone can report a widget from its page on the Hub. If I unlist, remove or yank one of yours for breaking the [terms](/terms) or the law, after a report or on my own, you get an email (to whoever published it, and for an organization's widget also its owners and admins) saying what I restricted, the facts, the law or section of the terms it rests on, whether a report led to it, how long and where it applies, and how to contest it: reply within six months and I look at it again. A widget I unlisted stays unlisted until I relist it, even if you delete it and publish it again under the same name; you can still edit its name and description. A widget I removed can't be published again under the same name until I lift the removal. Yanking a version because it's broken (a defect, a bad build, an SDK floor it can't meet) isn't a restriction, so it comes without a statement. ## After Publishing Your widget appears in the Widget Browser, installable in one click. To ship an update, bump the version and run `publish` again. If your widget declares `examples`, its preview images are produced for this version and appear on its Hub page and in the Widget Browser. See [Widget Previews](/docs/widgets/widget-previews). ## Trust Badges - **Official.** Maintained by GlassHome. Installed without a confirmation dialog. - **Community.** Published by users. Users see a consent dialog before installing. > **Bundle size:** Keep your widget bundles small. The hard limit is 2 MB (rejected at publish time). The CLI shows bundle sizes during `validate` and `info`. Large bundles slow down dashboard loading for everyone. --- title: "Sealed Engine" description: "Widgets run in a sealed space with no page, network or storage of their own. What changes for your code, the limits, and how to read what GlassHome refused." slug: widgets/widget-sealed-engine canonical: https://glasshome.app/docs/widgets/widget-sealed-engine section: "Build Widgets" updated: 2026-11-06 --- # Sealed Engine From Dash 1.5, widgets run in a JavaScript engine (QuickJS, compiled to WebAssembly) with no access to the page. The official GlassHome widgets share one engine, and display-only widgets share an engine with the same publisher's display-only widgets; a widget installed from your own machine, and any widget that can control the home or read sensitive data, gets an engine of its own. What your widget draws is copied onto the dashboard through an allowlist, and Home Assistant is reached only through the SDK, checked against your [capabilities](/docs/widgets/widget-capabilities). It is the only engine; there is no setting to run a widget in the page. > **Info:** This is the developer's view. For what it means for a homeowner, see Widget Security. To test your own code, run `bun widget connect ` against a Dash 1.5 dashboard as usual. Hot reload keeps the sealed engine. `bun widget preview` and the Hub's preview images run in the sealed engine too, so a preview shows what a dashboard shows. The preview takes its engine from the dashboard you name with `--dash `, or from the demo at `https://demo.glasshome.app` ([Widget CLI](/docs/widgets/widget-cli#preview)). ## What your code can use Write the widget as you do today, with the SDK. A widget that only uses `@glasshome/widget-sdk` parts and hooks usually works unchanged. Import only these modules; the engine provides no other package: - `@glasshome/widget-sdk` - `solid-js`, `solid-js/store`, `solid-js/web` Entity state, `callService` and icons come through the host. A widget only receives the entities its read capabilities cover. These globals are stand-ins: | Global | In the sealed engine | | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `window` | A plain object holding `document` and every HTML and SVG element class | | `document` | A private document; your changes are copied to the dashboard through the allowlist | | `localStorage`, `sessionStorage` | Two in-memory stores per widget, shared by every copy of that widget on the dashboard and empty again after every reload. They keep widgets apart, but they are no wall: widgets that share an engine share its memory. Your module's top level reads and writes your widget's store; a callback it schedules there, such as a timer, runs for no widget, so storage throws `SecurityError` in it, which you can catch, and nothing else stops. Keep what must last in the widget's config with `updateConfig` | | `location` | `about:blank` | | `navigator` | A fixed `userAgent`; `language`, `languages` and `maxTouchPoints` are the dashboard's | | `devicePixelRatio` | The dashboard's | | `document.hasFocus()` | The dashboard's | | `document.documentElement` | Carries the dashboard's `dark` and `reduce-motion` classes and its `lang` and `dir`, kept current. `getComputedStyle` on it answers theme variables, never layout | | `document.hidden`, `visibilityState` | The dashboard's; `visibilitychange` fires on `document` | | `setTimeout`, `setInterval`, `requestAnimationFrame`, `requestIdleCallback` | Run by the host; intervals are at least 16 ms apart | | `ResizeObserver`, `IntersectionObserver`, `innerWidth`, `innerHeight`, `documentElement.clientWidth`, `clientHeight` | Answered by the host; observers count toward the observer limit, and a `rootMargin` takes pixels or percent, as in a browser | | `matchMedia` | Answered by the host; a `change` listener fires and counts toward the observer limit | | `Math.random` | Seeded per widget | These do not exist: `fetch`, `XMLHttpRequest`, `WebSocket`, `RTCPeerConnection`, cookies, Capacitor (`window.Capacitor`, so no haptics yet), and any route into the dashboard's own code. Camera video and its full screen come through the SDK's `CameraStream`, which the dashboard plays for your widget. Built-in objects are frozen, so `z.config(...)` and other global patches throw. ## What reaches the dashboard Your widget's DOM is mirrored onto the dashboard, change by change. Anything outside the allowlist is dropped and recorded as a refusal: - **Elements.** Ordinary HTML and SVG elements. `