Skip to content
trick77Public

About

The Philips Hue Bridge Pro breaks the built-in Ambilight+Hue integration in older Philips TV's; relume-tv bridges the gap so the TV can discover and drive your Hue lights again.

Topics

Resources

Stars

7 stars

Watchers

1 watching

Forks

Latest commit

 

History

279 Commits

Folders and files

Repository files navigation

relume-tv

⚠️ Disclaimer — read this first

This is an experimental hobby project, built for fun and scratching my own itch. It works on my machine, on my network, with my hardware — and that's all I can vouch for. I can't help debug why it doesn't work for you, and I make no promises that it ever will. Running an old gen-2 bridge and a new Bridge Pro side by side is finicky by Philips' own design, so expect rough edges. Use it at your own risk; no support, no warranty, no guarantees.

The problem

A Philips Ambilight TV's built-in Ambilight+Hue feature mirrors the on-screen colours onto your Hue lights by pairing with the bridge. The new Hue Bridge Pro (BSB003) dropped the discovery paths and v1 HTTP API surface that feature expects, so the TV can no longer find or pair with it directly — and because Philips Hue (Signify) and the TV division (TP Vision) don't coordinate, there is no official fix.

Developed and tested against a Philips 65OLED806 (Android TV 11). The rest of the OLED806 series (48/55/65/77") shares the same platform and firmware and should behave the same; other pre-2023 Ambilight models are untested but may work. Note that 2025/2026 TVs ship the new AmbiScape feature, which talks to bulbs directly over Matter and bypasses the Hue Bridge entirely — those TVs neither need nor work with relume-tv.

What this does

relume-tv sits between the TV and the Bridge Pro: to the TV it impersonates an old gen-2 bridge (BSB002) speaking the v1 HTTP API, and it proxies every request to the real Bridge Pro over HTTPS/CLIP v2. See docs/DESIGN.md for identity, pairing, and the two control modes.

Requirements

  • A Philips Ambilight TV with the built-in Ambilight+Hue feature (the older integration, roughly pre-2023 models) — the TV is what discovers and drives the bridge.
  • A Hue Bridge Pro (BSB003), already set up with your lights and reachable on the LAN.
  • A Linux host to run relume-tv on. Discovery uses multicast (mDNS/SSDP), so the container needs network_mode: host — Docker Desktop on macOS/Windows won't work, its host-networking mode doesn't reliably carry the multicast traffic.
  • TV, relume-tv host, and Bridge Pro on the same L2 network / VLAN, with multicast allowed (no client/AP isolation between them).
  • Wired Ethernet for all three (TV, relume-tv host, and Bridge Pro) — strongly recommended. Wi-Fi adds latency and jitter to the entertainment stream, which can show up as visible color lag or stutter in the bulbs following the Ambilight. Cable everything you can.
  • TCP port 80 free on the host — relume-tv emulates a gen-2 bridge, which the TV reaches on :80. The TV hardcodes this port and ignores any port advertised over mDNS/SSDP, so :80 is effectively mandatory — don't move it. Under rootless Docker, binding :80 also requires sysctl net.ipv4.ip_unprivileged_port_start=80 (or run the container with the privilege to bind low ports).

Quick start (Docker)

  1. Start the service:

    docker compose up -d
  2. Open the web UI at http://<host>:33100 and follow the guided setup wizard. It walks through pairing the Bridge Pro (a brief TAP of its link button when prompted — do not hold it), rebooting the TV, the TV's Ambilight+Hue scan, and assigning the bulbs.

    relume-tv setup wizard

    Once running, the dashboard shows live status:

    relume-tv status dashboard

Data & secrets

State (bridge identity, TV tokens, Bridge Pro app key + client key) lives in ./data/relume-tv.json. This file holds secrets.

Usage

Commands

Command Purpose
serve Run the service (discovery + bridge emulation). Default.
avahi-service Emit an Avahi service file (for hosts where a system Avahi daemon owns mDNS).
version Print the version.

Flags (serve)

  • -mode  ·  default entertainment — Control mode: entertainment (low-latency DTLS stream to the Pro; auto-falls back to REST if the TV never opens its stream) or rest (per-light REST-follow). See docs/DESIGN.md.
  • -advertise-ip  ·  default auto — IP advertised via mDNS/SSDP; set it on a multi-homed host.
  • -tv-ip  ·  default auto-detect by User-Agent — Identify the TV by source IP if its User-Agent is not recognized. Use a stable address for the TV.
  • -idle-off-timeout-rest  ·  default 30s — Rest mode: when the TV stops driving the lights for this long, turn them off (the TV sends no off signal, it just goes silent). REST writes are sparse and pause on static scenes, so this is longer than the entertainment timeout. 0 disables.
  • -idle-off-timeout-entertainment  ·  default 5s — Entertainment mode: same as above but for the DTLS stream path (~50 Hz, stops cleanly when the TV goes off), so a short timeout is safe. While entertainment mode sits on the REST fallback, the rest timeout applies instead. 0 disables.
  • -entertainment-dtls-timeout  ·  default 5s — Entertainment mode: how long to wait, after confirming the TV's stream activation, for the TV to open its DTLS stream before reverting to REST-follow. Raise it if a TV opens its stream slower.
  • -entertainment-fallback-recovery  ·  default 90s — Entertainment mode: how long a latched REST fallback persists before the next TV stream activation may recover it (so a transient DTLS failure no longer pins the TV to REST until restart). Set 0 to disable (fallback stays sticky until restart).
  • -entertainment-smooth-tau  ·  default 40ms — Entertainment mode: exponential-smoothing time constant for easing the TV's hard scene cuts on the DTLS send path. Lower is snappier but flickers more, higher is smoother but laggier. Set 0 to disable smoothing (frames forwarded verbatim).
  • -entertainment-median-window  ·  default 1 (off) — Entertainment mode: gated median spike filter on the DTLS send path — the number of recent TV frames the per-channel median is taken over. It drops crass, single-frame flicker spikes the TV emits, while passing normal content through verbatim with no trailing latency (the complement to -entertainment-smooth-tau, and composable with it — run the median alone by also setting the tau to 0). 3 catches single-frame spikes, 5 catches two-frame ones. The "Jitter-reduction" dashboard card shows how many spikes it dropped per window.
  • -entertainment-median-threshold  ·  default 8000 — Entertainment mode: the per-component "crass" magnitude (of 65535) above which the median filter may suppress a change; smaller changes always pass through untouched. Only active when -entertainment-median-window is greater than 1. Tune it against the bri_max_jump / col_max_jump values in the -debug stream stats.
  • -skip-tls-verify  ·  default off — Skip Bridge Pro certificate pinning (fallback).
  • -headless  ·  default off — Disable the web UI. The web UI (setup assistant + live status dashboard) is on by default on the predefined port 33100. ⚠️ No authentication: with network_mode: host the dashboard is reachable by anyone on the LAN out of the box. Pass -headless to turn it off on untrusted networks.
  • -ui-port  ·  default 33100 — Web UI port. Pass 0 to use the predefined port 33100, or any other value to override it. Must differ from the HTTP port (80). Ignored when -headless is set.
  • -debug  ·  default off — SSDP/HTTP diagnostics + mDNS observer. Independent of -log-level.
  • -log-level  ·  default info, or $LOG_LEVEL — debug, info, warn or error. An unknown value fails startup.
  • -healthcheck  ·  — Probe the running instance's /healthz on -http-port and exit 0 (healthy) or 1. The image's and compose's healthcheck; pass the same -http-port as serve.

Health

Both HTTP servers answer GET /healthz (liveness) and GET /readyz (readiness, no checks: relume-tv is useful before the Bridge Pro is paired), to callers on the same host only (loopback, no forwarding header); anyone else gets 404. With host networking a probe of 127.0.0.1 on the Docker host works too; a monitor on another machine cannot reach them. The image is distroless: there is no shell inside the container.

Development

make build   # copies ui/ into backend/web/dist, then builds ./relume-tv
make test

The full gate is ship (ship.yaml): build, lint, tests with coverage, commit subjects in Go style (area: what):

make hooks   # once per clone: the pre-push hook runs ship check on every push
make check

Documentation

  • docs/DESIGN.md — how relume-tv works: identity, pairing, control modes.

About

The Philips Hue Bridge Pro breaks the built-in Ambilight+Hue integration in older Philips TV's; relume-tv bridges the gap so the TV can discover and drive your Hue lights again.

Topics

Resources

Stars

7 stars

Watchers

1 watching

Forks

Packages

Contributors

Languages