Photos
Beacon can display your family photos as a digital photo frame with automatic slideshow, crossfade transitions, a clock/date overlay, and music controls layered on top.
Setting up the photo directory
Beacon loads photos from Home Assistant’s media browser. You need to place your photos in a directory that HA can access.
Step 1: Create a photo directory
On your Home Assistant server, create a directory for photos:
mkdir -p /media/beacon/photos
If you are using Home Assistant OS, the /media directory is accessible through the Samba or SSH add-ons.
Step 2: Add photos
Copy your family photos (JPEG, PNG) into the directory:
cp ~/family-photos/*.jpg /media/beacon/photos/
Beacon reads the images in the chosen folder. Nested folders are not included; point the setting at the folder that holds the pictures.
Step 3: Configure the photo directory
Set the photo_directory option to point to your photos:
- Add-on: Configuration tab >
photo_directory: "/media/beacon/photos" - Docker: Environment variable
PHOTO_DIRECTORY=/media/beacon/photos - Development:
.envfile >VITE_PHOTO_DIRECTORY=/media/beacon/photos
In Settings > Photos, the same field accepts either that filesystem path or any Home Assistant media-source id (media-source://...). Use Browse to walk the media browser and pick a folder, including one exposed by another integration such as Immich or a NAS share. Beacon reads the images in that folder (not nested folders).
Step 4: Verify in Home Assistant
- Go to Media > Media Browser in Home Assistant
- Navigate to your photo directory
- You should see your photos listed as thumbnails
Adding photos through the HA media browser
You can also use Home Assistant’s built-in media management:
- In Home Assistant, go to Media > Media Browser
- Navigate to the Local Media section
- Upload photos using the upload button
- These photos will be available to Beacon through the HA media API
Photo frame mode
Open the photo view by clicking the image icon in the sidebar.
What you see
- Full-screen photo: The current photo fills the entire view
- Crossfade transition: When the photo changes, a smooth crossfade animation plays
- Clock overlay (bottom): The current time, date, and optionally weather text
- Music overlay (bottom bar): If music is playing, the Now Playing bar appears over the photo
Controls
The photo frame is tap-to-interact:
- Tap once to show controls (previous, play/pause, next)
- Tap again to hide controls
- Controls auto-hide after 5 seconds of inactivity
When controls are visible:
- Left arrow: Previous photo
- Play/Pause: Toggle automatic slideshow cycling
- Right arrow: Next photo
- Back arrow (top left): Return to the previous view (dashboard)
No photos available
If no photos are found, the view shows:
- “No photos available”
- A hint: “Add photos to your Home Assistant media directory”
- A back button to return to the dashboard
Slideshow settings
Interval
The slideshow auto-advances every N seconds. The default is 30 seconds.
Configure it:
- Add-on:
photo_interval: 30(value in seconds) - Docker:
PHOTO_INTERVAL=30 - Development:
VITE_PHOTO_INTERVAL=30
Transition
Photos transition with a crossfade effect. Each photo change increments a fade key that triggers a CSS animation on the image wrapper.
Photo order
Photos are loaded from both the HA media browser API and the configured local directory, then shuffled randomly using the Fisher-Yates algorithm. The order changes each time the photo view is opened.
Preloading
Beacon preloads the next photo in the background so transitions are smooth. When the current photo changes, an Image() object is created for the next photo in the queue, ensuring it is cached in the browser before it is displayed.
Clock and weather overlay
When the controls are hidden, a gradient overlay appears at the bottom of the photo with:
- Time: Current time in localized format (e.g., “2:45 PM”)
- Date: Full date (e.g., “Wednesday, March 28”)
- Weather (optional): Weather text if configured
The clock updates every 30 seconds (not every second, to minimize UI updates during photo viewing).
The overlay is semi-transparent so it does not obscure the photo.
Music overlay while viewing photos
If music is playing when you open the photo view, the Now Playing bar appears at the bottom of the photo frame. This gives you:
- Album art thumbnail
- Track title and artist
- Play/pause, skip forward, skip back controls
- Volume slider
The music overlay is always visible (it does not auto-hide with the photo controls).
Photo sources
Beacon combines three sources, then shuffles them:
| Source | Description |
|---|---|
ha_media | Photos from HA’s media browser root directory |
local | Photos from the folder chosen in Settings (a /media path or any media-source:// id) |
google_photos | Photos already downloaded from link-shared Google Photos albums |
Google Photos shared albums
Google’s Photos Library API no longer lets an app read an existing album. Beacon does not sign in to Google. Instead, paste a link-shared album URL in Settings > Photos:
https://photos.app.goo.gl/...https://photos.google.com/share/...
The album must have link sharing turned on. Anyone with that link can open it, including the Beacon add-on. Beacon does not see the rest of the Google Photos library, and it does not live-sync the album.
The add-on, not the browser, fetches the public album page and saves the pictures under:
/data/photo-cache/google/<album-hash>/
<album-hash> is the first 16 hex characters of the SHA-256 of the album URL. Files are named from Google’s photo id, so a refresh replaces the same file instead of duplicating it. Pictures are requested at a maximum width of 2560 pixels. Videos are skipped. A refresh runs about 15 seconds after the add-on starts, then every 6 hours, and whenever you press Refresh now.
This depends on the HTML Google embeds in the public share page. That format is unofficial and can change. If a refresh cannot fetch or parse the page, Beacon keeps the last successful download and shows a warning in Settings with the time of that download. The slideshow does not go blank.
Photos that disappear from the album are removed from the cache on the next successful refresh. A single album is capped at 2000 photos so /data cannot fill without a bound. Up to 8 albums can be saved.
Troubleshooting
”No photos available”
- Verify photos exist in your configured directory on the HA server
- Check that the
photo_directoryconfig option matches the actual path - Verify the HA media browser can see the photos: go to Media > Media Browser in HA
- Check the browser console for “Failed to fetch” errors — this may indicate an authentication issue
A Google Photos album shows a warning
The last good download is still on screen. Check that link sharing is still on, then press Refresh now. If Google has changed the share page, the refresh keeps failing until Beacon’s parser is updated. Copying the pictures into photo_directory is the fallback that does not depend on that page.
Photos load slowly or do not transition smoothly
- Large photo files (10MB+) take time to download. Consider resizing photos to 1920x1080 or smaller.
- Beacon preloads the next photo, but on slow networks this may not complete before the interval expires.
- Increase the
photo_intervalto give more time for preloading.
Clock overlay does not appear
The clock overlay only appears when showClock is true (it is true by default) and controls are hidden. Tap the photo to hide controls, and the overlay should appear.
Music controls do not appear on photos
The music overlay requires:
- An active media player in the
playingstate - The music hooks (play, pause, next, previous, volume) must be available
If no media player is playing, the music bar will not appear.