Beacon Docs

Edit this page on GitHub

Configuration Reference

Beacon can be configured through the Home Assistant add-on options panel, Docker environment variables, or Vite environment variables during development. All configuration is ultimately resolved at runtime through the getConfig() function.


Complete add-on options reference

These options are set in Settings > Add-ons > Beacon > Configuration when running as an HA add-on.

OptionTypeDefaultDescriptionExample
family_namestring"My Family"Your family name. Appears in the dashboard greeting (“Good morning, Sachs”) and the calendar header."Sachs"
save_config_in_browserbooleantrueAllows the General settings option to keep a local browser copy of Beacon settings. Set to false to disable browser storage; add-on server storage remains available. This configuration takes precedence over the in-app option.false
themestring"skylight"The color theme to use. Options: skylight, midnight, nord, dracula, monokai, rose, forest. The theme selector in the sidebar overrides this value."midnight"
auto_dark_modebooleantrueWhen true and theme is set to auto, Beacon switches between Skylight (day) and Midnight (night) based on time of day.true
weather_entitystring"weather.home"The Home Assistant weather entity ID to use for temperature and forecast data. Leave empty to disable weather."weather.forecast_home"
photo_directorystring"/media/beacon/photos"The path to the photo directory on the Home Assistant server. Photos in this directory are displayed in the Photo Frame view."/media/family-photos"
photo_intervalinteger30Seconds between automatic photo transitions in the Photo Frame slideshow.15
screen_saver_timeoutinteger5Minutes of inactivity before the screen dimming phase activates. The clock screensaver activates at 2x this value.10

Example add-on configuration

family_name: "Sachs"
save_config_in_browser: true
theme: "midnight"
auto_dark_mode: true
weather_entity: "weather.home"
photo_directory: "/media/beacon/photos"
photo_interval: 30
screen_saver_timeout: 5

Environment variables (Docker and development)

When running Beacon as a standalone Docker container or in development mode, configuration is provided through environment variables.

Docker environment variables

Changed in 1.50.1. A standalone container uses HA_URL and HA_TOKEN. Do not set SUPERVISOR_TOKEN on a standalone container. See Deployment.

VariableMaps ToDefault
HA_URLHome Assistant base URL the container calls (no /api path; a trailing slash is stripped). Beacon builds the websocket URL by changing http to ws or https to wss and appending /api/websocket.(required)
HA_TOKENLong-lived access token (Profile → Long-Lived Access Tokens). Stays on the server; it is not written into the page.(required)
HA_API_BASE_OVERRIDEAdvanced: REST base URL. When set, it takes precedence over the URL built from HA_URL.(none)
HA_WS_URL_OVERRIDEAdvanced: websocket URL. When set, it takes precedence over the URL built from HA_URL.(none)
FAMILY_NAMEfamily_nameMy Family
SAVE_CONFIG_IN_BROWSERsave_config_in_browsertrue
THEMEthemeskylight
AUTO_DARK_MODEauto_dark_modetrue
WEATHER_ENTITYweather_entityweather.home
PHOTO_DIRECTORYphoto_directory/media/beacon/photos
PHOTO_INTERVALphoto_interval30
SCREEN_SAVER_TIMEOUTscreen_saver_timeout5

Vite environment variables (development)

Create a .env file in the project root:

VariableMaps ToDefault
VITE_HA_URLha_urlhttp://supervisor/core
VITE_HA_TOKENha_token(none)
VITE_FAMILY_NAMEfamily_nameMy Family
VITE_THEMEthemeskylight
VITE_AUTO_DARK_MODEauto_dark_modetrue (set to false to disable)
VITE_HA_WEATHER_ENTITYweather_entityweather.home
VITE_PHOTO_DIRECTORYphoto_directory/media/beacon/photos
VITE_PHOTO_INTERVALphoto_interval30
VITE_SCREEN_SAVER_TIMEOUTscreen_saver_timeout5

Example .env file

VITE_HA_URL=http://192.168.1.100:8123
VITE_HA_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
VITE_FAMILY_NAME="Sachs"
VITE_THEME=midnight
VITE_AUTO_DARK_MODE=true
VITE_HA_WEATHER_ENTITY=weather.home
VITE_PHOTO_DIRECTORY=/media/beacon/photos
VITE_PHOTO_INTERVAL=30
VITE_SCREEN_SAVER_TIMEOUT=5

Runtime config system

Beacon uses a runtime configuration injection system that works across all deployment methods.

How it works

  1. Add-on mode: The run.sh script reads options from /data/options.json (populated by HA Supervisor) and generates a runtime-config.js file that sets window.__BEACON_CONFIG__. This script tag is injected into index.html. From Beacon 1.54.3, runtime-config.js holds only the family name, theme and auto dark mode setting; every other setting is served after pairing (or through the Home Assistant sidebar panel, or with an access token).

  2. Development mode: Vite reads VITE_* variables from .env and makes them available via import.meta.env.*.

  3. Resolution order: For each config value, Beacon checks:

    1. window.__BEACON_CONFIG__ (runtime injection, highest priority)
    2. import.meta.env.VITE_* (build-time environment variables)
    3. Hard-coded defaults

The getConfig() function

import { getConfig } from './config';

const config = getConfig();
// config.ha_url       - Home Assistant URL (empty in the add-on; the page uses Beacon)
// config.ha_token     - Empty unless a local dev build set VITE_HA_TOKEN or onboarding saved one
// config.family_name  - Family name
// config.theme        - Theme ID
// config.auto_dark_mode - Auto dark mode flag
// config.weather_entity - Weather entity ID
// config.photo_directory - Photo directory path
// config.photo_interval  - Photo interval in seconds
// config.screen_saver_timeout - Screen saver timeout in minutes

The config is cached after the first call — subsequent calls return the same object.

window.__BEACON_CONFIG__

In add-on mode, run.sh generates this JavaScript object:

window.__BEACON_CONFIG__ = {
  ha_url: "",
  family_name: "Sachs",
  theme: "midnight",
  auto_dark_mode: true,
  weather_entity: "weather.home",
  photo_directory: "/media/beacon/photos",
  photo_interval: 30,
  screen_saver_timeout: 5
};

ha_url is empty in the add-on so the page calls this Beacon server. There is no ha_token field. Home Assistant tokens stay on the server. HA_BROWSER_TOKEN, if set in the environment, is ignored and a startup warning is logged. It is deprecated from Beacon 1.54.0, so remove it from your configuration. See Pairing a device.

This is injected as a <script> tag in index.html before the main application bundle loads.


Advanced: Custom CSS injection

You can inject custom CSS to override any Beacon styles by adding a <style> tag to the runtime-config.js mechanism or through a browser extension.

Example: Override the clock font size

.dashboard-clock {
  font-size: 120px !important;
}

Example: Hide the weather widget

.dashboard-weather {
  display: none !important;
}

Example: Change the sidebar width

.sidebar--desktop {
  width: 80px !important;
}

All Beacon styles use CSS custom properties (see Themes for the complete list), so most visual customizations can be achieved by overriding the --* properties on :root rather than targeting specific class names.


config.yaml reference (add-on manifest)

The only add-on manifest is beacon/config.yaml. Supervisor globs every config.yaml in the repository, so there is no second copy at the repo root.

name: Beacon
version: "1.43.1"
slug: beacon
description: "Family command center for wall-mounted displays"
url: "https://github.com/asachs01/beacon"
image: ghcr.io/asachs01/beacon
arch:
  - amd64
  - aarch64
init: false
startup: application
boot: auto
ingress: true
ingress_port: 3000
panel_icon: mdi:calendar-clock
panel_title: Beacon
homeassistant_api: true
auth_api: true
FieldDescription
imagePrebuilt multi-arch image. Supervisor pulls this instead of building on the device
initfalse so the base image’s s6-overlay stays PID 1
archamd64 and aarch64. Home Assistant has deprecated armv7. This release still publishes a linux/arm/v7 image; future releases may drop it
ingress: trueBeacon is accessible through HA’s ingress proxy (sidebar panel)
ingress_port: 3000The internal port Beacon listens on
panel_iconThe icon shown in HA’s sidebar (mdi:calendar-clock)
panel_titleThe label shown in HA’s sidebar (“Beacon”)
homeassistant_api: trueBeacon has access to the HA API
auth_api: trueBeacon uses HA’s authentication system

Troubleshooting

Configuration changes do not take effect

  1. Add-on: After changing configuration, click Save and then Restart the add-on. Some changes require a container restart to regenerate runtime-config.js.
  2. Development: After changing .env, restart the Vite dev server (npm run dev)
  3. Theme changes: The theme selector saves to localStorage, which overrides the config value. Clear the beacon-theme localStorage key to revert to the configured theme.

”No HA token configured” warning

This appears in the browser console when:

  1. No VITE_HA_TOKEN is set in .env (development mode)
  2. HA_TOKEN is missing on a standalone container (Docker or Kubernetes). HA_URL must be set as well. Do not use SUPERVISOR_TOKEN outside the Home Assistant add-on.
  3. The runtime-config.js script did not generate correctly (add-on mode)

Without a token, Beacon runs in demo mode — no data is fetched from Home Assistant.

Weather entity not found

If the weather widget does not appear:

  1. Verify the entity ID in your configuration matches exactly (case-sensitive)
  2. Check that the entity exists in Developer Tools > States
  3. Some weather integrations create entities with different naming patterns (e.g., weather.forecast_home vs weather.home)

Was this page helpful?

Give Feedback