<!-- Canonical page: https://reversedwithai.com/p/lg-central-hvac-controller-lgap-rs485-claude -->
Canonical page: https://reversedwithai.com/p/lg-central-hvac-controller-lgap-rs485-claude

# Decoded the LG LGAP RS485 protocol to replace central HVAC controllers with Claude

> A self-hosted replacement for LG central controllers, built on a decoded bus protocol.

Cortex speaks LG's LGAP protocol over RS485 from a mini-PC and runs a fleet of indoor units from a web UI. All 68 commits carry Claude Opus 4.8 trailers.

## Key facts

- Target: LG central HVAC controllers (LGAP protocol)
- Category: Firmware and hardware
- Platform: RS485, self-hosted web app
- Models: Claude Opus 4.8
- Tools: RS485, Python
- Outcome: Works
- Checks: Source available: yes; Repro steps: not reported; Real hardware: not reported; Verified by others: not reported
- Author: [h2erft](https://github.com/h2erft)
- Added: 2026-11-16
- Updated: 2026-11-16
- Sources reviewed: 2026-11-16 (automated reviewer)

## What was done

Cortex replaces LG's ACP and AC Smart central controllers by speaking the LG LGAP protocol directly over the RS485 bus, so a small mini-PC on site runs the whole indoor-unit fleet from a web UI. All 68 commits carry a Claude Opus 4.8 co-author trailer.

### How it was done

The README says Cortex discovers indoor units, decodes their state, and controls power, mode, fan, dual setpoints and locks. A reference document, LGAP_reference.md, records the decoded protocol: the bus, framing, checksums and commands. Developer notes in HANDOFF.md track what is decoded.

### Results

The repository is a 60-file self-hosted application with the protocol notes. It contains no LG software.

## What the commit history shows

68 of 68 commits in the public repository credit an AI, over 8 days between 2026-11-08 and 2026-11-15. Credited: Claude Opus 4.8 (46), Claude Fable 5.2 (22).

Measured by this site from public git history.

## Sources

- [Repository](https://github.com/h2erft/cortex)

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: h2erft (2026). Decoded the LG LGAP RS485 protocol to replace central HVAC controllers with Claude. Reversed with AI. https://reversedwithai.com/p/lg-central-hvac-controller-lgap-rs485-claude
