Skip to content

Add litter-box cleaning schedule creation, editing, toggling and deletion #17

Closed

Description

@Repsay

Current status (17 October 2026)

Fixed a real live edit failure in PR #43: server litter-box plans use plan_type_id=2 and may omit quantity; the old type-1 assumption rejected them. Live create/edit/disable/enable/delete and Scheduled-mode readback passed. The temporary plan was deleted and every original plan plus original mode was restored. validate_schedules.py covers the operations; actual firing remains in #42/#21.

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 reads plan counts/times and lists schedule endpoints internally, but it does not expose schedule management as usable Home Assistant actions/entities.

APK evidence

TimingTaskBinController::getTimingList, deletPlan, openPlan in view/tabs/device/device_setting/timing_task/timing_task_controller.dart: /plans/ (0xc0d740), /delete_plan (0xcd7684), /open_plan (0xcd7c64). AddTimingTaskController::addOrEidtPlan uses /edit_plan (0xcc110c) and /add_plan (0xcc1188). All paths here are under /device/litter_box/.

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 plan IDs, required fields, recurrence semantics, enable state and time-zone behavior from app request construction.
  • Expose documented create/update/enable-disable/delete actions and useful schedule readback.
  • Keep existing plan identities and unrelated settings intact; require explicit targeting for deletion.
  • Add synthetic request/response tests covering invalid IDs, disabled plans, recurrence and time zones.

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.

Activity

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