Skip to content

docs: describe app behaviour without reproducing vendor code - #36

Merged
ccpk1 merged 1 commit into
mainfrom
ccpk1/docs-cleanup
Nov 10, 2026
Merged

ccpk1 merged 1 commit into
mainfrom
ccpk1/docs-cleanup

Conversation

@ccpk1

@ccpk1 ccpk1 commented Nov 10, 2026

Copy link
Copy Markdown
Owner

Proposed change

Follow-up to the HACS review comment on hacs/default#13736:

docs/poolsync-reverse-engineering.md quotes a snippet reconstructed from the decompiled vendor app (around line 466) and points at disassembly offsets throughout. It doesn't ship to users, so it doesn't block anything here, but I'd suggest replacing it with your own description of the API behavior.

This rewrites the document so it describes app behaviour in our own words and carries no vendor-derived code.

The flagged snippet (§0e.2) was a reconstructed bits.split('').reverse().forEach(...) block. It is now a description of how every flag word decodes (value read as binary, template key n = bit n, LSB first), plus a corroboration sentence tying that convention to the issue #30 capture: ctrlFlags: 4 and stateFlags: 8 decode to highPressureLowPressure and isWaitFlow under the HP10 tables — which is what the app displayed — versus "compressor on" and no state under the HP tables. Same information, no code.

Disassembly offsets and function IDs removed throughout — around 60 references:

  • parseHpStateFlags #12188 @0x003eec3e … #12191, and the shared-body code block
  • #19970, #19969, #21178, #12209, #14514, #14522, #20240, #21718, #14049–#14072, #14676, #25969
  • disasm byte ~11911693–11913900, 0x004d55c7, 0x000280, 0x000290, 0x0002ab, 0x0055fa6b
  • The two pseudo-assembly listings in §1.1a (LoadConstInt / StrictEq / JmpFalse) — now tables of the on-screen instructions keyed by remoteUiPid and wizard type
  • Two tests/PoolSync_4.73/hbctool_output.hasm "source of truth" statements — now cite the issue Push-link always ends in link_timeout (Auth button pressed, no password returned_ #30 capture, the t75-*/sq160r-* fixtures and the app's own UI

Kept, unchanged: every bit table (stateFlags, ctrlFlags, faults), the fixture cross-checks, the PID→firmware table, the fault-name tables, and all tests/sample_diagnostics/ references, so every claim stays traceable to a capture.

Also cleaned up: "decompiled app" → "app behaviour", "from APK Decompilation" dropped from three headings, and §0a replaced (it documented the APK extraction methodology) with a short "Sources" section naming what actually backs each claim: live API traffic, user packet captures, and observed app behaviour.

The verbatim UI strings ("Press AUTH on the heat pump display:", etc.) stay — that is user-facing text, not code, and it is the factual content of that section.

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New integration (thank you!)
  • New feature (which adds functionality to an existing integration)
  • Deprecation (breaking change to happen in the future)
  • Breaking change (fix or feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Additional information

Checklist

  • I understand the code I am submitting and can explain how it works.
  • The code change is tested and works locally.
  • Local tests pass. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • I have followed the development checklist
  • I have followed the perfect PR recommendations
  • The code has been formatted using Ruff (ruff format homeassistant tests)
  • Tests have been added to verify that the new code works.
  • Any generated code has been carefully reviewed for correctness and compliance with project standards.

Notes

Docs only — no code, no manifest or version change. utils/quick_lint.sh passes (36 files already formatted). Code fences balanced, no duplicate headings, no empty sections.

Replace the reconstructed vendor snippet in §0e.2 with a description of how
the flag words decode, and drop the disassembly offsets, function IDs and
pseudo-assembly listings that ran through the document, including the pairing
screen listings in §1.1a (now a table of the on-screen instructions).

The bit tables, fixture cross-checks and payload examples are unchanged, so
every claim is still traceable to a capture in tests/sample_diagnostics/.
Adds a short sources section naming what actually backs each claim.
@ccpk1
ccpk1 merged commit 23393cc into main Nov 10, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant