Skip to content

Validate physical schedule behavior across DST #21

Open

Description

@Repsay

Current status — PR #44

PR #44 fixes a real live timezone contract bug: the APK's Windows catalog ID was being stored verbatim in the backend's IANA field. Changes now require an explicit valid IANA name, verify both encodings, and optionally preserve the original device-local DND clocks/switch/LED. Incomplete or invalid requests fail before writing; partial readback/preservation failures are retained by validation tools.

  • Live Amsterdam → London → Amsterdam transition using the corrected request.
  • Original timezone fields, DND interval/flags/LED, mode/delay and every cleaning plan restored.
  • Automated summer/winter DND preservation and DST gap/fold/date-boundary observation checks.
  • Owner observed the normal-day 17 October 2026 scheduled cleaning start on time at approximately 09:38 Amsterdam time and complete normally; original settings/plans restored. This does not establish DST-boundary behavior.
  • Independently observe actual device behavior at a DST/date boundary. Calculating candidate UTC instants does not prove NOTTY's skip/repeat/move policy.

Use scripts/validate_timezone.py for selected changes and scripts/validate_schedule_observation.py for an independently observed scheduled start. See docs/remaining-validation.md. Keep open for the final physical DST criterion; do not infer it from HTTP success.

Previous audit and validation history

Current remaining work (17 October 2026)

Timezone catalog/change actions and diagnostics are implemented and merged. The remaining work is explicit live timezone-transition and actual schedule/DST/date-boundary acceptance. validate_timezone.py, unit DST cases and the coverage audit are available; raw clock equality is not proof of unchanged firing times.

Implementation/validation coverage is documented in merged PR #43, docs/validation-coverage.md and #42. This issue remains open for the specific remaining work above.

Original audit and development history

The integration consumes device time-zone data for timestamp conversion and lists a change endpoint internally, but does not expose the app's supported time-zone selection flow.

APK evidence

view/tabs/device/device_setting/time_zone_setting/time_zone_setting_controller.dart: getTimeZoneList reads /entity/get_time_zones (0xc0d018) and confirmTimeZone uses /device/change_time_zone (0xcd6570).

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

api.py at commit 9b1b7c3.

Acceptance criteria

  • Establish the server's supported IDs/offsets and the exact change payload; do not invent numeric IDs from IANA names.
  • Expose an appropriate configuration entity/action with current value and server-supported options.
  • Keep device scheduling time zone, server event-time assumptions and Home Assistant display time zone separate.
  • Test DST/date boundaries and schedule preservation; validate an explicit owner-requested change.

Validation boundary

This is missing integration functionality backed by an app code path. Exact schemas, model support and live behavior still need verification before exposing writes.

No hardware actions or cloud-setting changes were performed while creating this issue.

Implementation and validation update (2026-10-16)

PR #33 now includes notty.device_time_zone list/change actions and the existing diagnostic sensor/probe. Live read validation returned 141 supported catalog records, device IANA Europe/Amsterdam, and readable DND/settings plus cleaning plans. The APK view passes catalog row id directly (0xcd6280 → 0xcd62e8); the setter serializes that Windows ID under the misleading time_zone_iana key (0xcd6534), integer physical user_device_id (closure 0xcc13a4), and POSTs at 0xcd657c. No numeric IDs or IANA-to-Windows mappings are invented.

Explicit changes require fresh catalog membership and confirm_schedule_change: true. The action reads before/after DND and cleaning-plan snapshots, reports drift or acknowledged writes with failed readback, and never automatically retries, restores or rewrites schedules. Raw unchanged clocks do not establish unchanged firing times when device-local timezone changes. 43 additional offline tests cover request construction, rejected inputs/identity, no-ops, single writes, readback failures and service lifecycle; existing European/US DST tests remain in place.

Remaining acceptance criterion: an owner-selected live timezone transition, official-app confirmation, actual cleaning/DND schedule behavior and DST/date-boundary preservation. No timezone setting was changed during this implementation. Keep this issue open for that validation; merging the functionality is not evidence that this last criterion passed.

Activity

  1. changed the title [-]Expose the NOTTY device time zone and supported time-zone changes[/-] [+]Validate timezone transitions and schedule preservation across DST[/+] on Oct 16, 2026
  2. changed the title [-]Validate timezone transitions and schedule preservation across DST[/-] [+]Validate physical schedule behavior across DST[/+] on Oct 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions