Skip to content

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LR3 Stream — Home Assistant Add-on

English · Čeština

Add repository to Home Assistant

A rock-solid local radio stream for Home Assistant. Built on Icecast + Liquidsoap, so the stream never drops. Spotify Connect feeds the audio in (via librespot); when nothing is playing it stays alive and, after a configurable delay, an online-radio fallback kicks in (e.g. Evropa 2). Any player (VLC, in-wall radios, a browser…) can tune in and nothing kicks it off.

That's the key difference from MPD's "HTTPd output", which stops when idle — players don't understand that and disconnect.

Do you control ELKO EP "LARA" radios? Automatically switching LARA radios onto this stream via a Slim server (SlimProto) is handled by a separate project, LR3-AudioZone. LR3 Stream is a pure "stable stream + Spotify Connect"; it doesn't actively switch anything.


Installation

  1. Click the button above (or in HA: Settings → Add-ons → Add-on Store → ⋮ → Repositories and paste https://github.com/vlioscz/LR3-stream-addon).
  2. Find LR3 StreamInstall (the first build takes a while — it downloads the Debian base, Liquidsoap and librespot).
  3. Configuration → set the port and streams → Start.

Spotify Connect

After start, a device named after the stream (e.g. "Living room") appears in the Spotify app (same network, Premium account). Pick it as the speaker — the music flows into that stream. When you stop playback, the online-radio fallback kicks in after fallback_delay seconds. No Spotify password is entered into the add-on — it uses Spotify Connect discovery (zeroconf).

Configuration

Option Default Description
port 8121 Port of the local stream (Icecast).
source_password changeme Internal Icecast password (source/admin). Listeners don't need it.
bitrate 192 Output MP3 stream bitrate (kbps).
spotify_bitrate 320 Spotify quality (96 / 160 / 320).
fallback_enabled true Enable the fallback radio. Off → silence after the delay.
fallback_url …fm-evropa2-128 Online radio used as fallback when Spotify isn't playing.
fallback_delay 15 Seconds of silence before the fallback kicks in.
zones Default Streams you create (add or delete freely). Each = one Spotify Connect device + one Icecast mount.

Streams

Streams come only from the zones option — nothing is created automatically. Each stream has:

  • a name = the Spotify Connect device name shown in the Spotify app,
  • a mount = the last part of the URL: http://<HA-IP>:<port>/<mount>.

The default config ships one stream "Default" (mount /default); rename it, add more, or delete it as you like. At least one stream is required.

Multi-room

Spotify only ever plays to one Connect device. To "play everywhere", use a single shared stream: tune all players to the same mount (e.g. /default) and play to that one device in Spotify. For separate rooms, create distinctly named streams and tune each player to its own mount.

Where the stream lives

http://<HA_IP>:<port>/<mount>      e.g.  http://192.168.88.10:8121/default

The exact addresses are printed to the add-on log at start — just copy them into VLC / a radio / a browser.

How it works

Spotify Connect (librespot) ─┐
online radio (fallback) ─────┼─► Liquidsoap ──► Icecast ──► players / VLC / …
silence ─────────────────────┘   (never drops)     (:port)

Icecast is the server players connect to. Liquidsoap is the "studio" that feeds it one continuous stream and switches the content (Spotify → fallback → silence) without dropping the connection, so listeners never get kicked off.

Status

  • Stable stream + online-radio fallback, never drops.
  • Spotify Connect input per stream.
  • 🎯 v1.0 — final "stable stream + Spotify Connect + manual streams". LARA radio control has moved to a separate project, LR3-AudioZone.

About

Home Assistant add-on — a rock-solid local Icecast/Liquidsoap radio stream with Spotify Connect input and online-radio fallback; the mount never drops.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages