GitHub - pickysysadmin/logitech-harmony-ir-archive: An archive of every IR code and protocol format used by Logitech Harmony Remotes/Hubs
Pangram verdict · v3.3
We believe that this text is a mix of AI and human-written content.
AI likelihood · overall
AIArticle text · 1,544 words · 15 segments analyzed
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. Contents manifest.json counts, schema version, build date index.json every manufacturer devices/<Manufacturer>/index.json every model that manufacturer has devices/<Manufacturer>/<Model>.json one device: identity, how to drive it, and its code set codesets/<xx>/<hash>.json one command set, shared by every device that has it protocols/index.json every protocol protocols/<Protocol_Name>.json one protocol definition index.html a lookup page rehydrate.py, rehydrate.ps1 write device files with their commands inlined Code sets are stored separately because 79% of devices share a byte-identical set with another device. Storing each set once shrinks the tree from ~5.8 GB to ~0.8 GB.
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 root By 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 GB rehydrate.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 Control A code set tells you a device has a PowerOn command. It does not tell you whether sending it is safe, which input is HDMI 1, or that channel 7 must be dialled 07. These four blocks carry that information, and about 91% of devices have at least one. Action lists Every actionable field (power.on, inputs.next, an input's commands, channelTuning.finish, a state value's select, …) is a list of steps, performed in array order: step meaning "PowerOn" send the command with this name from the device's code set {"command": "X", "durationMs": 500} send X repeatedly for 500 ms (press and hold) {"hold": "X"} hold X, with no duration given {"delayMs": 500} send nothing, and wait 500 ms before the next step {"set": "Input", "to": "Antenna"} not a transmission. It records that the device is now in state Input = Antenna A delay between two steps is a real wait between them, not a cooldown at the end. Logitech stores each step's position in an Order field and sometimes stores the steps out of order (about 1 in 12 input lists). Every list here was sorted on Order before publishing, so the array position is the execution order. A press with a 0 ms duration is published as a bare string. A consumer can ignore everything except the bare strings and command steps. It will still work, but it will be less careful about timing and state. power: read type first field meaning type discrete, toggle, none or unknown on, off action lists for discrete power control toggle the action list that flips power state onReset actions to run after powering on, to put the device in a known state onResetInput the input onReset selects, when named Most devices are toggle. They have one power command, and it flips the current state, so sending it to "turn the TV on" turns it off if the TV is already on. Only discrete devices have separate on and off commands that are safe to send blind. A code set can contain a command named PowerOn on a device that is really a toggle, so go by type, not by command names. Most devices with no power control have no power block at all. inputs field meaning list the inputs in order, each with a name, the commands that select it, and the ports it is wired to next, previous cycle through the inputs, for devices with no direct selection start, finish actions that bracket an input change canSkip true when inputs may be skipped type an undecoded Logitech enum, 0–6. Treat it as an opaque tag Port names are Logitech's labels (HDMI, Composite, Antenna, Optical, …), and the list of possible names is not fixed. Inputs with no commands belong to devices that can only cycle through inputs with next. channelTuning field meaning fixedDigits every channel number must be sent with exactly this many digits, e.g.
07 start, finish actions bracketing the digits.
finish is usually Enter greaterTen prefix for a channel above 9 greaterHundred prefix for a channel above 99 (the old -/-- key), pressed before the digits states: what {"set": …, "to": …} refers to "states": { "VideoInput": { "values": [ {"name": "VideoAntenna"}, {"name": "VideoSVideo", "select": [{"setType": 2, "commands": ["InputNext", {"set": "VideoInput", "to": "VideoSVideo"}]}]} ], "next": ["InputNext"] } } field meaning values every value this state can hold, in Logitech's order.
A {"to": …} matches name values[].select ways to reach that value, each an action list. Absent when Logitech gives no direct way next, previous cycle through the values start, finish actions bracketing a change to this state valueDelay ms to wait after changing this state (rare) When select has more than one route, they are genuinely different routes, distinguished by setType, an undecoded enum (1 or 2 in practice).
Duplicate routes have been removed.
If you only want one route, take the first. Some devices set a state they never declare. Treat those as opaque labels: two actions that name the same state and value still refer to the same thing.
codesets/<xx>/<hash>.json {"commands": [ {"name": "NextTrack", "protocol": "Sony 12 Bit", "keycode": "G:Sony 12 Bit:()(0x8D1)():3", "pronto": "0000 0068 000D 0000 0060 0018 0030 …"} ]} field meaning name the command's name, as Logitech ships it protocol Logitech's canonical protocol name, which always matches a file in protocols/.
The keycode's own spelling of it can differ in case or spacing keycode the original Harmony keycode. Always present pronto Pronto Hex (format 0000).
Absent when the command can't be rendered (see Caveats) prontoRepeat the repeat burst alone, as its own Pronto string. Present only when there is a lead-in or trailer around it pronto is a two-section Pronto string: a player sends the first section once, then loops the second while the key is held.
If there is no separate repeat burst, the second section is empty. prontoRepeat is for tools that only accept a single sequence.
hash is the first 16 hex characters of a SHA-1 over each command's name, a NUL byte, its keycode and a newline, with the commands sorted by (name, keycode).
It depends only on Logitech's data, not on our rendering.