Add Xiaomi IPC017 legacy camera support - #2379
Open
FrancYescO wants to merge 1 commit into
Open
Conversation
This was referenced Jul 27, 2026
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.
Add Xiaomi IPC017 legacy camera support
Summary
chuangmi.camera.ipc017IMI Home Security Camera 1080P as a supported Xiaomi legacy cameraunencrypted PCMA audio packets unchanged
Background
chuangmi.camera.ipc017currently falls back to the Xiaomi legacy client butis rejected as an unsupported model.
The camera uses the same media control commands as the IMILAB A1/Mijia branch.
Its payload encryption differs slightly: video packets use the Xiaomi
ChaCha20 wrapper, while audio packets with the proprietary Xiaobai PCMA codec
ID are already unencrypted. Applying
crypto.Decodeto both tracks thereforefails with
unsupported encryption.Validation
go test ./pkg/xiaomi/...CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build ./...chuangmi.camera.ipc017, firmware3.5.8_0097EOFsubtype=hdExample source, with account and device values redacted:
Notes
The wider repository test suite was also attempted on Darwin with Go 1.26.
Unrelated existing platform/toolchain failures were observed in FFmpeg,
HomeKit, stream, AAC, credentials, and
go vettests. The Xiaomi packagesuite and the Linux cross-build pass.