HDHomeRun smart home integration, free and open source

Your HDHomeRun TV tuners in Gladys: tuners in use, channel watched, signal, scenes.
HDHomeRun network TV tuners by SiliconDust receive the TV (ATSC, ATSC 3.0, DVB-T/T2, DVB-C, cable cards) and stream it on your network to TV apps, Plex, Emby, Jellyfin, Kodi or Channels. This integration brings your boxes into Gladys: which tuners are in use, the channel each one plays and for which device, the signal, the lineup, a firmware update offered, and scenes that react to a tuner that starts or to the last free tuner being taken.
Developed without the hardware: feedback welcome on the issues. It was tested against a simulated box that follows the SiliconDust documentation (an ATSC model with 2 tuners and a DVB-T model with 4), in a container with the restrictions of the Gladys sandbox, without a real Gladys.
What you need
- Gladys Assistant 5.2.0 or later.
- An HDHomeRun of the 4th generation or later (CONNECT, EXTEND, PRIME, FLEX, CONNECT 4K, SERVIO, SCRIBE…), with a firmware from 2018 or later. The older models (HDHR3 and before) have no HTTP API and are not supported.
- The box and Gladys on the same local network. Nothing goes to the internet: the integration reads the local API of the box (port 80), without account.
Getting started
1. Install the integration
In Gladys, Integrations → Install from GitHub, then the address
https://github.com/guim31/gladys-hdhomerun. The install screen shows the
discovery permission (UDP port 65001): Gladys broadcasts the HDHomeRun
request on your network for the integration.
2. Configure
- Automatic discovery: on by default, the boxes are found by themselves.
- Addresses (optional): the IP address of each box, separated by commas, if the discovery does not find it (another subnet, a VLAN). Give the box a fixed address in your router to be safe.
- Refresh interval: 10 seconds, 30 seconds (default) or 1 minute.
- Allow channel scans: off by default. A scan stops the TV on every tuner for a few minutes.
- Language of the names: the language of the feature names (set when the device is added) and of the scene results.
The Find the boxes button runs a discovery and says what each box does.
3. Add the devices
In the Discover tab, each box and each of its tuners appears. Add the ones you want.
The devices
Each box:
| Feature | Value |
|---|---|
| Reachable | the box answers |
| Tuners in use | tuners busy now |
| Tuners | tuners of the box |
| Channels | channels of the lineup |
| Firmware update available | SiliconDust offers a new firmware |
| Firmware | firmware version |
Each tuner:
| Feature | Value |
|---|---|
| In use | the tuner plays a channel |
| Channel | number and name, — when free |
| Client | address of the device watching, — when free |
| Signal strength | in percent, 0 when free |
| Signal quality | in percent (signal to noise), 0 when free |
| Symbol quality | in percent (errors corrected), 0 when free |
The devices keep their history when the box changes address: they are tied to its DeviceID, printed under the box.
Dashboard
The HDHomeRun tuners widget shows a box (its name in Gladys), the tuners in use and the channels, then one row per tuner: free, or the channel, the client and the signal. Two settings hide the tiles and the signal. During a channel scan, the progress replaces the summary.
Scenes
Triggers
- A tuner starts playing: a free tuner starts playing a channel. Filter: the box (choose the box, not a tuner). Information passed on: the box, the tuner number, the channel, the client address.
- Every tuner is in use: the last free tuner of a box gets taken. No other recording or TV is possible until one is released.
- A channel scan finishes: with the number of channels found.
Actions
- Tuners in use: tuners in use, free, the channels played and a ready-made sentence ("1 of 2 tuners in use, 5.1 KPIX-HD").
- Stream link of a channel: the HTTP link of a channel (its number, like
5.1, or its name), for a media player or a message. Encrypted channels (DRM) have no link. - Start a channel scan: only when the Allow channel scans option is on.
The HDHomeRun field of the actions may stay empty when you have one box.
Scene ideas
- Every tuner is in use → a notification: "the recording of 9 pm will fail, the HDHomeRun is full".
- A tuner starts playing with the client of the kids' TV, after 9 pm → a message to the parents.
- After a transmitter change, on the 1st of the month at 4 am: Tuners in use, then Start a channel scan if no tuner is in use.
Troubleshooting
- No HDHomeRun found: check that the box and Gladys are on the same network, then enter its address (shown in the HDHomeRun app, or in your router). The Find the boxes button tells which address answers.
- No HDHomeRun at this address (or a legacy model): the address answers, but not as an HDHomeRun of the 4th generation or later.
- Tuners unknown: update the firmware: the box has no
status.json; the update of the firmware (in the HDHomeRun app) brings it. - The box refuses a channel scan: a recording or a DVR holds the tuners, or the source is not set: start the scan once in the HDHomeRun app.
Limits
- No control of the TV: the integration reads the boxes and starts scans, it does not tune a channel nor records (use HDHomeRun DVR, Plex or Channels).
- The client is an IP address, the box does not know the device name.
- The signal of a free tuner is not measured: 0 is published.
- While a box does not answer, its tuners keep their last values (their badge says unreachable).
- One discovery every 5 minutes at most while a box is missing, and on Search in the Discover tab.
Not affiliated with SiliconDust. HDHomeRun is a trademark of SiliconDust USA Inc.
Configuration settings
These are the settings HDHomeRun asks for in its configuration screen in Gladys.
| Setting | Type | Required | Description |
|---|---|---|---|
| Your HDHomeRun tuners | section | No | The boxes on your network are found automatically (UDP port 65001, through Gladys). Otherwise, enter their address. Each box and each tuner appears in the Discover tab. |
| Addresses (optional) | string | No | IP address of each box, separated by commas, when the automatic discovery does not find it. |
| Automatic discovery | boolean | No | Look for the boxes on the local network (Gladys broadcasts the HDHomeRun request). |
| Options | section | No | |
| Refresh interval | select | No | How often each box is read: two small local requests. |
| Allow channel scans | boolean | No | Lets the actions start a new channel scan. A scan stops the TV on every tuner for a few minutes. |
| Language of the names | select | No | Language of the feature names (set when the device is added) and of the scene results. |
How to install HDHomeRun in Gladys
- In Gladys, open Integrations: HDHomeRun appears in the catalog, next to the native integrations, with a community badge.
- Click Install. Gladys pulls the Docker image (
ghcr.io/guim31/gladys-hdhomerun:1.0.0), starts it in a sandbox isolated from the core, and generates the integration's interface (devices, discovery and configuration). - Open the Configuration screen of the integration, fill in the settings, and save.
- You can also install it directly from its repository URL: https://github.com/guim31/gladys-hdhomerun.
HDHomeRun requires Gladys >=5.2.0. The catalog inside Gladys refreshes every hour, so a new version becomes available at most one hour after its release.
Not running Gladys yet? It is free and open source: follow the installation guide to get started.
About external integrations
HDHomeRun is an external integration: a community integration packaged as a Docker container and published on GitHub, that Gladys installs in one click and runs in a sandbox isolated from its core. It is published and maintained by guim31, not by the Gladys core team.
- Browse all integrations, native and community
- Build and publish your own external integration
- Source code on GitHub — source of this documentation