HUB
Sign inSign up
js-matter-roon-bridge logo

smangelsen/js-matter-roon-bridge

By smangelsen

โ€ขUpdated 9 days ago

js-matter-roon-bridge

Image
0

974

smangelsen/js-matter-roon-bridge repository overview

โ Matter Bridge for Roon Audio Zones

Control your Roonยฎ music zones directly from Apple Home, Google Home, Shelly Wall Display, or Home Assistant using the native Matter smart home standard.

โš ๏ธ Project Status & Early Testing:

  • Testing Phase: We are currently in an early testing phase. Your feedback is very valuable!
  • Hardware Verification: Verified with Flic smart buttons over Matter.
  • Planned Testing: Verification on Shelly Wall Display is actively planned.
  • Roon Compatibility: Tested and running against the latest version of Roon Core.
  • Report Issues: Please share your feedback or report any issues in the Roon Community Forum threadโ .
  • Support Development: If you enjoy using this bridge, please consider buying me a coffeeโ  to support ongoing development!

โ ๐ŸŽฏ What This Does

  • Exposes your local Roon audio zones as native smart home media players.
  • Control play, pause, volume, mute, and track skipping from your phone, watch, or wall tablet.
  • Presets & Sleep Timers: Map up to 10 favorite playlists or radio stations to quick-access presets, with an automated sleep timer that gently fades out the volume before stopping.
  • Easy browser setup with a pairing QR code.

โ ๐Ÿš€ Quick Setup on your NAS (Synology, QNAP, Unraid, Portainer)

Most users run this bridge on a home server or NAS using Docker Compose or Container Manager.

โ docker-compose.yml
services:
  roon-matter-bridge:
    image: smangelsen/js-matter-roon-bridge:latest
    container_name: roon-matter-bridge
    network_mode: host
    restart: unless-stopped
    volumes:
      - ./data:/data
    environment:
      - WEB_PORT=5580

Important Note on "Host Network":
Selecting network_mode: host is required so the bridge can automatically discover your Roon Core and broadcast Matter smart-home signals across your home Wi-Fi.


โ ๐Ÿ“‹ 3-Step Setup Guide

โ Step 1: Start the Container

Deploy the docker-compose.yml file on your NAS or run:

docker compose up -d
โ Step 2: Enable in Roon
  1. Open your Roon Remote app (phone, tablet, or desktop).
  2. Go to Settings $\rightarrow$ Extensions.
  3. Find Matter Bridge for Roon and click Enable.
โ Step 3: Pair with Apple Home or Google Home
  1. In your web browser, open the bridge setup page:
    http://<your-nas-ip>:5580
  2. Open your smart home app:
    • Apple Home: Tap + $\rightarrow$ Add Accessory $\rightarrow$ scan the QR code shown on screen.
    • Google Home: Tap + $\rightarrow$ Set up a device $\rightarrow$ Matter-enabled device.
    • Shelly Wall Display: Scan the QR code during device setup.
  3. Your Roon zones will appear as controllable speakers and media players in your home!

โ โ“ Frequently Asked Questions

โ How do I access the pairing screen again?

Just visit http://<your-nas-ip>:5580 in your web browser at any time. It displays bridge status, connected zones, and the pairing code.

โ What if my NAS is running on a different network than Roon?

If automatic discovery doesn't find your Roon Core, you can specify your Core's IP address directly by adding this environment variable:

    environment:
      - ROON_CORE_HOST=192.168.1.100  # Replace with your Roon Core IP
โ Where are my pairing settings saved?

Your pairings and settings are safely stored in the ./data folder on your NAS so they persist across updates.

โ How do presets and sleep timers work?

You can map up to 10 favorite playlists or radio stations to preset slots in the bridge Web UI. Each slot generates a preset URL (e.g. https://roon.preset/1?sleep=30).

To trigger a preset from your smart home system or automations (e.g. Home Assistant, Apple Shortcuts, Shelly Wall Display):

  1. Click Copy URL for the configured preset slot in the bridge Web UI.
  2. Paste the URL into your Matter controller's ContentLauncher / LaunchURL action (if exposed by the controller).
  3. When triggered, playback starts automatically with an optional gentle acoustic volume fade-out when the sleep timer expires.

โ ๐Ÿ› ๏ธ Advanced Setup: Traefik Reverse Proxy

If you run Traefik as a reverse proxy on your NAS/home lab to access services via friendly local domains (e.g. http://roon.local):

services:
  traefik:
    image: traefik:v3.1
    container_name: traefik
    restart: unless-stopped
    command:
      - "--providers.docker=true"
      - "--providers.docker.exposedbydefault=false"
      - "--entrypoints.web.address=:80"
    ports:
      - "80:80"
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro
    networks:
      - proxy

  roon-matter-bridge:
    image: smangelsen/js-matter-roon-bridge:latest
    container_name: roon-matter-bridge
    restart: unless-stopped
    ports:
      # Expose Matter operational UDP port directly to host/LAN
      - "5540:5540/udp"
    volumes:
      - ./data:/data
    environment:
      - WEB_PORT=5580
      - ROON_CORE_HOST=192.168.1.100  # Specify Roon Core IP when using bridge network
    networks:
      - proxy
    labels:
      - "traefik.enable=true"
      - "traefik.docker.network=proxy"
      - "traefik.http.routers.roon-bridge.rule=Host(`roon.local`)"
      - "traefik.http.routers.roon-bridge.entrypoints=web"
      - "traefik.http.services.roon-bridge.loadbalancer.server.port=5580"

networks:
  proxy:
    driver: bridge

Traefik Setup Notes:

  • traefik.docker.network=proxy: Tells Traefik which network to use when routing to the container.
  • traefik.http.services.roon-bridge.loadbalancer.server.port=5580: Directs Traefik to forward HTTP traffic to the Web UI port 5580.
  • ROON_CORE_HOST: When using a Docker bridge network rather than host networking, specify your Roon Core's LAN IP because bridge networks do not route UDP autodiscovery broadcasts.

โ ๐Ÿ“„ License & Community Support

  • Personal Use: Free for personal home use under the PolyForm Noncommercial License 1.0.0.
  • Integrator License: For custom AV integrators, commercial smart-home installers, or multi-client installations, an Integrator License is available. Please reach out via the Roon Community Forumโ  for more information.
  • Support & Feedback: Connect with other users or ask questions on the Roon Community Forum threadโ  or visit our GitHub Repositoryโ .

Tag summary

Content type

Image

Digest

sha256:c66f428bcโ€ฆ

Size

44.9 MB

Last updated

9 days ago

docker pull smangelsen/js-matter-roon-bridge