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.
| Option | Type | Default | Description | Example |
|---|---|---|---|---|
family_name | string | "My Family" | Your family name. Appears in the dashboard greeting (“Good morning, Sachs”) and the calendar header. | "Sachs" |
save_config_in_browser | boolean | true | Allows 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 |
theme | string | "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_mode | boolean | true | When true and theme is set to auto, Beacon switches between Skylight (day) and Midnight (night) based on time of day. | true |
weather_entity | string | "weather.home" | The Home Assistant weather entity ID to use for temperature and forecast data. Leave empty to disable weather. | "weather.forecast_home" |
photo_directory | string | "/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_interval | integer | 30 | Seconds between automatic photo transitions in the Photo Frame slideshow. | 15 |
screen_saver_timeout | integer | 5 | Minutes 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.
| Variable | Maps To | Default |
|---|---|---|
HA_URL | Home 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_TOKEN | Long-lived access token (Profile → Long-Lived Access Tokens). Stays on the server; it is not written into the page. | (required) |
HA_API_BASE_OVERRIDE | Advanced: REST base URL. When set, it takes precedence over the URL built from HA_URL. | (none) |
HA_WS_URL_OVERRIDE | Advanced: websocket URL. When set, it takes precedence over the URL built from HA_URL. | (none) |
FAMILY_NAME | family_name | My Family |
SAVE_CONFIG_IN_BROWSER | save_config_in_browser | true |
THEME | theme | skylight |
AUTO_DARK_MODE | auto_dark_mode | true |
WEATHER_ENTITY | weather_entity | weather.home |
PHOTO_DIRECTORY | photo_directory | /media/beacon/photos |
PHOTO_INTERVAL | photo_interval | 30 |
SCREEN_SAVER_TIMEOUT | screen_saver_timeout | 5 |
Vite environment variables (development)
Create a .env file in the project root:
| Variable | Maps To | Default |
|---|---|---|
VITE_HA_URL | ha_url | http://supervisor/core |
VITE_HA_TOKEN | ha_token | (none) |
VITE_FAMILY_NAME | family_name | My Family |
VITE_THEME | theme | skylight |
VITE_AUTO_DARK_MODE | auto_dark_mode | true (set to false to disable) |
VITE_HA_WEATHER_ENTITY | weather_entity | weather.home |
VITE_PHOTO_DIRECTORY | photo_directory | /media/beacon/photos |
VITE_PHOTO_INTERVAL | photo_interval | 30 |
VITE_SCREEN_SAVER_TIMEOUT | screen_saver_timeout | 5 |
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
-
Add-on mode: The
run.shscript reads options from/data/options.json(populated by HA Supervisor) and generates aruntime-config.jsfile that setswindow.__BEACON_CONFIG__. This script tag is injected intoindex.html. From Beacon 1.54.3,runtime-config.jsholds 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). -
Development mode: Vite reads
VITE_*variables from.envand makes them available viaimport.meta.env.*. -
Resolution order: For each config value, Beacon checks:
window.__BEACON_CONFIG__(runtime injection, highest priority)import.meta.env.VITE_*(build-time environment variables)- 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
| Field | Description |
|---|---|
image | Prebuilt multi-arch image. Supervisor pulls this instead of building on the device |
init | false so the base image’s s6-overlay stays PID 1 |
arch | amd64 and aarch64. Home Assistant has deprecated armv7. This release still publishes a linux/arm/v7 image; future releases may drop it |
ingress: true | Beacon is accessible through HA’s ingress proxy (sidebar panel) |
ingress_port: 3000 | The internal port Beacon listens on |
panel_icon | The icon shown in HA’s sidebar (mdi:calendar-clock) |
panel_title | The label shown in HA’s sidebar (“Beacon”) |
homeassistant_api: true | Beacon has access to the HA API |
auth_api: true | Beacon uses HA’s authentication system |
Troubleshooting
Configuration changes do not take effect
- Add-on: After changing configuration, click Save and then Restart the add-on. Some changes require a container restart to regenerate
runtime-config.js. - Development: After changing
.env, restart the Vite dev server (npm run dev) - Theme changes: The theme selector saves to localStorage, which overrides the config value. Clear the
beacon-themelocalStorage key to revert to the configured theme.
”No HA token configured” warning
This appears in the browser console when:
- No
VITE_HA_TOKENis set in.env(development mode) HA_TOKENis missing on a standalone container (Docker or Kubernetes).HA_URLmust be set as well. Do not useSUPERVISOR_TOKENoutside the Home Assistant add-on.- 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:
- Verify the entity ID in your configuration matches exactly (case-sensitive)
- Check that the entity exists in Developer Tools > States
- Some weather integrations create entities with different naming patterns (e.g.,
weather.forecast_homevsweather.home)