Logitech Harmony IR Database Archived with 276,000 Devices
A developer has scraped and open-sourced Logitech's discontinued Harmony universal remote infrared database as plain JSON, covering roughly 276,000 devices from 7,900 manufacturers, 13.3 million commands, and all 684 proprietary IR protocol definitions. Each command retains its original keycode and a ready-to-send Pronto Hex string, usable offline without any Logitech account or service.
Full Report
Contents7 sections
Logitech Harmony IR archive
AI Disclaimer
I heavily used AI in creating this archive.
TL;DR - Just give me the data
Don't care about my attempt, with Claudes help, to pull out the relevant data? Don't blame you :)
Check the files attached to the 20261110 release.
They are the unfiltered raw data I captured to do with as you see fit.
Overview
The infrared control database from Logitech's Harmony universal remotes: about
276,000 devices from 7,900 manufacturers, 13.3 million commands, and all 684 of
Logitech's own IR protocol definitions. manifest.json has the current counts.
Harmony is mostly discontinued, and this data lived only on Logitech's servers. It is all plain JSON, and using it needs no Logitech service, no account, and no tooling beyond what is in this repository.
Every command has its original Harmony keycode and, where it is infrared, a ready-to-send Pronto Hex string. Every protocol has Logitech's original definition, so you can render any command yourself instead of trusting ours. Devices also record how to drive them: timing, whether power is discrete or a toggle, their inputs, and how channel numbers are dialled.
One convention applies throughout: an optional field that has no value is absent.
It is never null, {} or a placeholder. Test whether the key exists, not whether
its value is falsy.
Looking something up
The page. index.html is a single file with no build step and no dependencies.
Double-click it and use Open archive folder… to pick the folder holding
manifest.json. It reads the files in place, and nothing is uploaded. This needs
the File System Access API, which Chromium browsers have and Firefox and Safari do
not. In any browser, you can instead serve the folder and open it over http://:
python3 -m http.server 8000 # or any static file server, run from the archive rootBy hand.
jq -r '.[] | select(.n=="Sony") | .s' index.json # -> Sony
jq -r '.[] | select(.m=="CDP222ES") | .f' devices/Sony/index.json
jq . devices/Sony/CDP222ES.json
jq -r '.commands[] | "\(.name)\t\(.pronto)"' \
"$(jq -r .codeset devices/Sony/CDP222ES.json)"Rehydrated. rehydrate.py writes self-contained device files with the commands
inlined:
python3 rehydrate.py --manufacturer Sony --out /tmp/sony
python3 rehydrate.py --model-file my-devices.txt --out /tmp/mine
python3 rehydrate.py --all --out /tmp/everything # ~5.8 GBrehydrate.ps1 does the same in PowerShell. Windows PowerShell 5.1 is slow at
parsing JSON, so use Python or PowerShell 7 for anything bigger than one manufacturer.
Schema
manifest.json
| field | meaning |
|---|---|
schemaVersion | bumped on any breaking field change. Pin it if you parse this |
generated | build date, YYYY-MM-DD |
source | where the data came from |
counts | manufacturers, devices, devicesWithCodes, devicesWithTiming, devicesWithControl, commands, commandsWithPronto, codesets, protocols |
layout | the path patterns, so a consumer never hard-codes them |
notes | rendering caveats that apply to the whole archive |
devices/<Manufacturer>/<Model>.json
A real one, devices/Magnavox/RJ5540.json, with its timing block removed:
{"manufacturer": "Magnavox",
"model": "RJ5540",
"globalDeviceId": 636,
"deviceType": 1,
"codeset": "codesets/3b/3b3e7eddcbfe948a.json",
"power": {"type": "toggle", "toggle": ["PowerToggle"]},
"inputs": {"type": 1,
"list": [{"name": "VCR/AUX", "commands": ["InputNext", {"delayMs": 500}, "InputAux"]},
{"name": "TV", "commands": ["InputNext", {"delayMs": 500}, "InputTuner"]}]}}This device has no discrete power command, and to reach either input you press
InputNext, wait half a second, then press the one you want. Its command list alone
would not tell you that.
| field | meaning |
|---|---|
manufacturer, model | verbatim, spelled as Logitech spells them. Read these rather than the filename (see Filenames) |
globalDeviceId | Logitech's permanent catalogue id, and this file's stable identity |
deviceType | Logitech's device-type code (1 TV, 2 VCR, 3 CD, 4 DVD, …) |
codeset | path to the device's command set, relative to the archive root, or null for a device with no commands |
timing | delays and repeat counts. See Timing |
power, inputs, channelTuning, states | how to control it. See Control |
(注:更多技术实现细节与完整 API 文档请查阅原项目 README)