Repository navigation
Description
Expanded source investigation — PR #45
PR #45 extends the read-only probe to all four APK chart selections (type 1–4), both account-level toilet statistics and associated box/pet statistics. The tab count and index-to-type assignment were traced in the APK; ranges are not guessed. Captures retain each request/response time and overall collection interval, separately from API measurement fields.
Fresh collection recorded 25 data sources with no failed source reads. Recognized weight candidates appeared only in pet profiles, without measurement timestamps. Toilet charts contain duration/count data; inspected detail and event records contain no recognized weight series. Comparable profile weight/unit/timestamp context was unchanged from the earlier capture. This does not prove or disprove a new measurement or reference-weight fallback.
The owner recalls a visit sometime that morning but cannot identify the cat or time. That remains unconfirmed and is not used to claim a validated before/after weigh-in. A new independently observed visit is still needed.
The API's external health-report SPA is another possible data source. Its public root was unreachable, so its request contracts remain uninspected. No private health URL fragment or credential was sent to that page or published. The failed fetch is not evidence that history does not exist.
See docs/weight-source-investigation.md for evidence, addresses and repeatable before/after commands. The issue remains open; no timestamped measured-weight sensor or historical backfill is fabricated.
Current status — PR #44
PR #44 fixes fresh profile readings being overwritten by older discovery values. Daily cloud weight sensors keep stable IDs, recover optional data after startup, reject missing/invalid/nonfinite values and normalize recognized kg/lb values for consistent HA statistics. They expose their source field and explicitly unknown measurement timestamp/freshness. No profile/reference fallback is used for a missing daily reading.
The APK confirms weight_unit 1=kg and 2=lb (0xbf39e8 → 0xbf3a14; 0xbf3a94 → 0xbf3ac0), and copies that enum on save (0xc8aecc). Profile editing previously accepted 0/1; it now accepts exactly 1/2 and preserves pound profiles.
- Trace the app's daily summary fields and profile unit enum.
- Correct source precedence, unit handling, invalid/missing readings, late discovery and HA history/statistics support for daily cloud summaries.
- Independently observed visit captures establishing whether daily fields are measured values or profile/reference fallbacks.
- A backend-provided timestamped per-visit source/history before exposing measured freshness or claiming historical backfill.
Fresh live profiles expose weight candidates without measurement timestamps; inspected litter-box responses expose no recognized weight history. HA Recorder can retain reported daily values going forward, but polling timestamps are not weigh-in timestamps. NOTTY's upstream cat attribution remains outside scope; this code never swaps cat identities. Use scripts/probe_weights.py --compare; see docs/remaining-validation.md.
Previous audit and validation history
This issue tracks measured-weight support and source validation in the Home Assistant integration, not a cat-identification bug in integration code.
Live API weight values match the owner's NOTTY phone-app observations. The owner reports that NOTTY itself assigns the heavier weight to the wrong cat. That attribution is already present upstream in NOTTY; there is no evidence that this integration swaps cat identities or weights. Correcting NOTTY's identification is outside this integration issue.
The remaining integration question is whether profile weight, today_weight and yesterday_weight represent independent measurements or reference/fallback values. They currently match for each pet, no measurement timestamp is present, and the inspected litter-box detail/statistics responses have no recognized weight fields.
- Trace the APK's measured-weight data source, unit enum and any profile/reference-weight fallback.
- Capture before/after independently observed visits and distinguish source attribution from measurement freshness.
- Expose a clearly sourced measured-weight sensor/timestamp, preserving the identities supplied by NOTTY and testing unknown/stale/missing readings.
- Determine whether timestamped historical weigh-ins exist and whether HA statistics backfill is feasible.
Scripts: merged PR #40, scripts/probe_weights.py and docs/app-validation.md. Cat names, weights, account IDs and raw captures remain private. Do not swap profiles, rewrite history or claim to correct NOTTY's attribution as part of this work.
Activity
[-]Validate measured cat weights, source timestamps and NOTTY attribution[/-][+]Validate measured-weight sources and add per-cat weight tracking[/+][-]Validate measured-weight sources and add per-cat weight tracking[/-][+]Validate independent weigh-in freshness and historical data sources[/+]