Generic 4x2 HDMI matrix switcher · Works · Source available

Replaced a cheap HDMI matrix 2015 web UI with protocol-reversed clients built by agents

View JSON
Generic 4x2 HDMI matrix switcher: Routing, power and EDID from any device on the network, no vendor app.
Image: scotchnhand (hdmi-matrix-control README)

Who did what

21 of 64 commits credit an AI: 15 Claude Opus 5.5, 3 Claude Sonnet 5, 2 Claude (version not given), 1 Claude Sonnet 5.5. They were made on 4 separate days between 16 Oct 2026 and 15 Nov 2026.

Counted from the public git history on 16 Nov 2026. How

What was done

scotchnhand reverse engineered a generic 4-input 2-output HDMI matrix LAN protocol and shipped a local web app, a Home Assistant integration and a SwiftUI app instead.

A generic four-input, two-output HDMI matrix switcher of the cheap white-label kind has a circa-2015 embedded web page and no public API documentation. This project replaces that page with clients built on the device's real wire protocol, which its README says was reverse engineered and describes as JSONP-style polling plus raw POST commands, covering routing, power and EDID. The protocol is written up in docs/PROTOCOL.md in the repository. An AGENTS.md file gives repository guidelines to contributors and coding agents, and two commits in the public feed carry a Co-authored-by line naming Claude Opus 5.5. The README does not say more about how AI was used.

All three clients talk to the matrix directly over the LAN, with no cloud and no vendor app.

  • A local web app: a Python backend with no dependencies and a dark-mode frontend that installs as a PWA. A mock mode lets you preview it without hardware, and a Docker image is published.
  • A Home Assistant custom integration with select, switch, button and sensor entities for routing, power and EDID, installed through HACS or from the release zip. The README explains why it uses direct IP instead of Matter.
  • A native SwiftUI app for iPhone and iPad (iOS 26) that needs no backend, with a shared Swift protocol client.

The device's HTTP server is single-threaded and can lock up under rapid or concurrent requests. Both client implementations serialize requests to the device, and the web backend merges reads from several open tabs. If a client shows connection lost and stays that way, power-cycling the matrix fixes it and no settings are lost. Home Assistant and the iOS app are separate direct pollers, so a deployment with several clients should use one where possible. Tests replay captured real-device responses in CI, alongside linting and weekly CodeQL scans. The code is MIT licensed.

Sources:

  • https://github.com/scotchnhand/hdmi-matrix-control

Questions about Generic 4x2 HDMI matrix switcher

Discussion

Your library

Sources

Sources reviewed · Added

An AI model drafted this entry from the sources above. Checked against the sources on 19 Oct 2026. The figures are the author's. How entries are checked. Something wrong? Tell me.

The weekly dump: new projects, once a week