Repository navigation
Description
Current status (17 October 2026)
APK callers establish clean=1, empty=2 and level=3; mappings are centralized, with independent fixtures and invalid-input tests. validate_cleaning.py provides individual clean/level runs and readback evidence. The owner excludes emptying, which the validation transport blocks. Physical clean/level observation remains in #42.
Delivered: implementation/contracts and dedicated validation tooling. PR #43 consolidates the fixes, 666 passing tests on HA 2026.10.1/2026.3.0, strict mypy/Ruff and the coverage guide. This implementation ticket closes on merge; outstanding external acceptance is explicitly retained in #42, with #21/#22/#41 covering their separate work. Closing this ticket does not certify unperformed physical/app tests.
Historical audit and earlier development notes
The integration maps clean=0, level=1, empty=2 and sterilize=3. Method and field names match the app, but the numeric code-to-operation mappings were not established in the initial APK audit. Mocked tests that repeat these constants cannot independently validate them.
APK evidence
view/tabs/device/litter_box/litter_box_controller.dart: a request under sterilizeHandle constructs user_device_id (0xcec424) and one_key (0xcec448), then POSTs /device/litter_box/one_key (0xcec460, 0xcec46c). The value is supplied by a captured closure; the closure's compiler-assigned/shared name alone does not identify the operation.
Evidence source: NOTTY Smart Pet 1.1.30, SHA-256 3b6dc21037f2802e92233ecd9f685e76b03a79afa2d82dd52a5dfcd689a18e6a, decoded locally with Blutter. These are inspected request-construction paths, not just URL-string matches. Decoded app files and private captures remain outside the public repository.
Integration baseline
button.py at commit 9b1b7c3.
Acceptance criteria
- Follow the app's UI callers, captured contexts and request serialization for each operation, including start/stop variants if present.
- Record a source method/native address and a minimal synthetic payload fixture per confirmed mapping.
- Validate each physical effect individually with the owner; do not infer behavior from HTTP success alone.
- Keep mappings documented as unverified until evidence supports them, and make all exposed entry points use one verified mapping.
Follow-up to closed #4: that work added a guarded command-validation helper; this issue establishes the actual APK-derived mapping and independent hardware evidence.
Validation boundary
This is a verification gap/request-contract investigation, not a claim that every listed difference breaks the live API.
No hardware actions or cloud-setting changes were performed while creating this issue.
Activity