<!-- Canonical page: https://reversedwithai.com/p/hdmi-matrix-lan-protocol-claude -->
Canonical page: https://reversedwithai.com/p/hdmi-matrix-lan-protocol-claude

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

> Routing, power and EDID from any device on the network, no vendor app.

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.

## Key facts

- Target: Generic 4x2 HDMI matrix switcher
- Category: Apps
- Platform: LAN / Home Assistant / iOS
- Models: Claude Opus 5.5
- Tools: Python, Swift, Home Assistant
- Outcome: Works
- License: MIT
- Checks: Source available: not reported; Repro steps: not reported; Real hardware: not reported; Verified by others: not reported
- Author: [scotchnhand](https://github.com/scotchnhand)
- Added: 2026-10-19
- Updated: 2026-10-19
- Sources reviewed: 2026-10-19 (editor)

## What was done

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

## What the commit history shows

21 of 64 commits in the public repository credit an AI, over 4 days between 2026-10-16 and 2026-11-15. Credited: Claude Opus 5.5 (15), Claude Sonnet 5 (3), Claude (version not given) (2), Claude Sonnet 5.5 (1).

Measured by this site from public git history.

## Questions about Generic 4x2 HDMI matrix switcher

### What is the Generic 4x2 HDMI matrix switcher project?

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. It is listed under Apps for LAN / Home Assistant / iOS.

### Which AI model was used on Generic 4x2 HDMI matrix switcher?

The entry names Claude Opus 5.5. The tools named alongside are Python, Swift and Home Assistant.

### Did the AI reverse engineering of Generic 4x2 HDMI matrix switcher work?

Its author reports that it works.

### Is the source code for Generic 4x2 HDMI matrix switcher available?

The entry links a repository, https://github.com/scotchnhand/hdmi-matrix-control, but does not record whether the code is public. Licence: MIT.

## Sources

- [Repository](https://github.com/scotchnhand/hdmi-matrix-control)

Figures are reported by the author and not measured by this site, except the commit history. Entry drafted with AI from the linked sources and checked against them.

Cite as: scotchnhand (2026). Replaced a cheap HDMI matrix 2015 web UI with protocol-reversed clients built by agents. Reversed with AI. https://reversedwithai.com/p/hdmi-matrix-lan-protocol-claude
