feat(midea): Midea-Klimasteuerung TP1 — Protokoll-Kern + Admin-Konfig - #195
Merged
Merged
Conversation
# Conflicts: # CHANGELOG.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Midea-Klimasteuerung TP1 — Protokoll-Kern + Admin-Konfig
Nativer Node.js-Port des Midea-LAN-Protokolls samt Cloud-Login, in-process im GateControl-Server, mit Admin-Seite zum Verbinden, Entdecken und Live-Testen von Midea-Klimageräten — lizenz-gegated über
midea_integration(Community-Default aus, kein Blast-Radius für bestehende Nutzer).Was drin ist (13 Tasks, subagent-getrieben mit TDD + zweistufigem Review je Task)
src/services/midea/):mideaCrypto(AES-ECB/CBC, CRC8, md5-Sign),mideaAc(0xAC Command-Build + State-Parse),mideaLan(V2-Paket, V3-8370-Framing + Handshake, UDP-Discovery,LanDeviceTCP-Transport),mideaCloud(Login, Sign, get_token, udpid).midea_devices+mideaDevices-Service. Secrets (token/key/Cloud-password/Cloud-session) durchgängig verschlüsselt at-rest (iv:tag:ct); redacted-Listing leak-frei (rechnethas_credentialsohne zu entschlüsseln).index.js): Per-Device-Mutex-Queue, lizenz-gegateter Poll-Loop (im Tick geprüft,unref()'d, idempotent), transaktionalesaddDevice(V3-Token VOR Persistenz), nicht-alarmierendes Offline./api/v1/midea): admin-only (Token-Auth abgelehnt,role==admin) +requireFeature('midea_integration'); 10 Endpoints; typisiertes Error-Mapping (2FA→409, Rate-Limit→429, not-found→404)./midea-Seite in allen 3 Themes,public/js/midea.js(XSS-escaped), i18n en+de, Sidebar-Nav +window.GC-Flags gegated.Wire-Format ist durch echte Vektoren gesichert
Alle Krypto-/Parse-/Frame-/Discovery-/udpid-Tests laufen mit literalen, aus
mill1000/midea-msmartvendored Vektoren un-skip-guarded in CI (V2/V3-Pakete, 14 AC-State-Vektoren inkl. Sub-Grad-Präzision, Discovery-Response, udpid byte-genau gegen die V3-Discovery-Response gegengeprüft). Nur 2 Tests sind skip-guarded — die echten Live-Pfade (GC_MIDEA_LIVEHardware,GC_MIDEA_CLOUDCloud-Login). Lokal: 40 midea-Tests, 38 grün / 2 Skip / 0 fail.Finale Whole-Branch-Review (opus)
„Ready to merge with fixes" — fand 1 cross-cutting Lücke (Cloud-Session unverschlüsselt at-rest), bereits gefixt (
fix(midea): encrypt cloud session token at rest). Alle übrigen Findings als acceptable-follow-up triagiert.Offen (nach Merge)
docs/superpowers/plans/midea-tp1-manual-acceptance.md)./root/Dokumentation/.../midea/(wie üblich nach Merge).🤖 Generated with Claude Code