{
  "api_version": "1.0.0",
  "slug": "hdmi-matrix-lan-protocol-claude",
  "url": "https://reversedwithai.com/p/hdmi-matrix-lan-protocol-claude",
  "markdown_url": "https://reversedwithai.com/p/hdmi-matrix-lan-protocol-claude.md",
  "json_url": "https://reversedwithai.com/p/hdmi-matrix-lan-protocol-claude.json",
  "title": "Replaced a cheap HDMI matrix 2015 web UI with protocol-reversed clients built by agents",
  "tagline": "Routing, power and EDID from any device on the network, no vendor app.",
  "summary": "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.",
  "target": {
    "name": "Generic 4x2 HDMI matrix switcher",
    "type": "app",
    "type_label": "Apps"
  },
  "platform": "LAN / Home Assistant / iOS",
  "models": [
    "Claude Opus 5.5"
  ],
  "tools": [
    "Python",
    "Swift",
    "Home Assistant"
  ],
  "outcome": "works",
  "outcome_label": "Works",
  "human_effort": null,
  "time_spent": null,
  "cost": null,
  "license": "MIT",
  "checks": {
    "source_available": null,
    "repro_steps": null,
    "real_hardware": null,
    "independently_verified": null
  },
  "author": {
    "name": "scotchnhand",
    "url": "https://github.com/scotchnhand"
  },
  "sources": {
    "repository": "https://github.com/scotchnhand/hdmi-matrix-control",
    "writeup": null,
    "discussions": [],
    "all": [
      "https://github.com/scotchnhand/hdmi-matrix-control"
    ]
  },
  "image": {
    "url": "https://covers.reversedwithai.com/hdmi-matrix-lan-protocol-claude.webp",
    "credit": "Image: scotchnhand (hdmi-matrix-control README)"
  },
  "commit_history": {
    "commits": 64,
    "ai_commits": 21,
    "ai_days": 4,
    "first_ai_commit": "2026-10-16",
    "last_ai_commit": "2026-11-15",
    "credited_models": [
      {
        "name": "Claude Opus 5.5",
        "commits": 15
      },
      {
        "name": "Claude Sonnet 5",
        "commits": 3
      },
      {
        "name": "Claude (version not given)",
        "commits": 2
      },
      {
        "name": "Claude Sonnet 5.5",
        "commits": 1
      }
    ]
  },
  "added_at": "2026-10-19T07:54:01.568498+00:00",
  "updated_at": "2026-10-19T07:54:01.568498+00:00",
  "sources_reviewed_at": "2026-10-19T07:54:01.568498+00:00",
  "reviewed_by": "editor",
  "human_notes": null,
  "reproduce": null,
  "body_md": "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.\n\nAll three clients talk to the matrix directly over the LAN, with no cloud and no vendor app.\n\n- 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.\n- 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.\n- A native SwiftUI app for iPhone and iPad (iOS 26) that needs no backend, with a shared Swift protocol client.\n\nThe 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.\n\nSources:\n- https://github.com/scotchnhand/hdmi-matrix-control",
  "ai_use_excerpts": null
}
