An experimental, unofficial Home Assistant integration for NOTTY automatic litter boxes and their associated pets, using the NOTTY cloud API. Install it through HACS as a custom repository.
This project originated from investigation of the NOTTY Android app. Authentication payloads, endpoint fallbacks, command codes, and field meanings include inferred behavior. Automated tests exercise mocked responses; production login, controls, and device compatibility still require verification. This is a cloud integration, not local control, and is not affiliated with NOTTY.
- Home Assistant 2026.3 or later (bundled integration icons require 2026.3).
- A NOTTY account and a litter box already bound to that account.
- Internet access to
api.nottycat.comand access to your NOTTY account email inbox. - HACS for the HACS installation path.
- Open HACS → menu → Custom repositories.
- Add
https://github.com/Repsay/nottywith type Integration. - Find NOTTY Smart Pet, download it, and restart Home Assistant.
- Open Settings → Devices & services → Add integration → NOTTY Smart Pet.
- Enter your NOTTY email and region (
NLby default). Request an email verification code, then enter the code in the next step.
For manual installation, copy custom_components/notty into your Home Assistant configuration's custom_components/ directory, restart, and follow steps 4–5. Existing prototype users should replace their whole custom_components/notty folder after backing it up. The domain and entity unique-ID format are preserved.
This repository is intended for HACS custom-repository installation; it has not been accepted into the default HACS catalog.
Published versions are available on GitHub Releases. Install a numbered release through HACS to track release updates in Home Assistant's Settings → System → Updates view, then restart Home Assistant after installing an update. If you previously downloaded the default branch, select a numbered release in HACS once. If a new version has not appeared yet, refresh repository information from HACS. Manual copies must first be managed by HACS to receive these updates. Maintainers can follow the release procedure.
Only fields returned by the account/device are exposed. The coordinator polls every 60 seconds.
| Platform | Features |
|---|---|
| Sensors | Litter box state, cleaning counts, pet weight/usage, event times, duration statistics, reminders and related data |
| Binary sensors | Connectivity, locks and reported boolean settings |
| Buttons | Clean, level, empty, reminder resets, weight reset and calibration |
| Switches | Child lock, Do Not Disturb, reminders, pet neutered state and account notification preferences |
| Actions | Cleaning plans, pet profiles/associations/memos, notification preferences and explicitly confirmed statistics deletion |
| Selects | Cleaning mode, automatic cleaning delay, known screen languages and reminder intervals |
| Time | Do Not Disturb start/end |
| Text / Date | Cloud device name, pet name and pet birthday; HA display-name overrides are preserved |
| Update | Firmware availability, release notes and explicit installation of a fresh eligible offered task |
| Number | Pet weight, with existing litter-box binding preserved |
Pet records become separate devices linked to the litter box. They do not receive litter-box command buttons. Known sensor fields use explicit units and device classes; unknown scalar fields remain ordinary sensors. Times and schedules are not guessed to be durations, and the weight-unit enum is not a weight measurement.
The mode entity displays the APK-backed labels Auto (1), Scheduled (2) and Soft stool (3), with numeric fallback for unknown values. The select and set_mode action support these three integer values. Writes require fresh matching physical-device identity and a known current mode; Scheduled also requires at least one enabled plan. Selecting the current mode skips the write. Live mode changes and automatic cleaning behavior still need owner validation.
Automatic cleaning delay is available as a configuration select (1–15 minutes) when the device reports auto_delay. It is unavailable outside Auto mode, matching the app. Unknown delay values remain in the raw attributes without guessing a supported option.
DND changes preserve the reported LED setting and both time boundaries. The cloud has been observed returning DND wall times shifted by the Shanghai–Amsterdam UTC offset: echoing those values on write shifts the configured schedule again. This integration converts DND reads from the observed Asia/Shanghai clock basis to the Home Assistant timezone for display; writes send times in the configured NOTTY device time_zone_iana (falling back to Home Assistant's timezone only when NOTTY does not report a zone). Time edits are converted from HA time to the device zone. Invalid reported timezones and missing/invalid settings are rejected. The live behavior across DST transitions and other NOTTY regions still needs verification; see APK contracts. Enabling DND with identical start and end times is rejected.
The device's existing time_zone_iana sensor now also shows its validated
IANA-zone status and current UTC offset alongside the Home Assistant time zone,
their offset difference, and the assumed NOTTY API clock source
(Asia/Shanghai). This is read-only and preserves the sensor's existing
unique ID. Offsets account for the date and daylight saving time and may differ
even when the zones' names do not change. An unknown device zone is never
silently replaced by the HA zone in the diagnostic sensor.
To inspect NOTTY's supported device-timezone catalog without changing the device,
run uv run scripts/probe_timezones.py --session-file probe-output/session.pr30.private.json.
Add --device-id 52963 to also read only timezone-related fields
from the account's device listing and litter-box info. The report excludes
device IDs, aliases, credentials and unrelated device fields, allowing us to
check whether NOTTY reports IANA IDs to HA while using Windows IDs in the
timezone selection catalog.
The read-only GET is confirmed on an owner's device: it returns an array of
string id, display_name and offset fields. The default output is a
value-free schema inventory and entry count. Add --find Amsterdam
to display only up to ten matching entries and their exact server IDs,
without exposing unrelated fields. Optional --capture-raw probe-output/time-zones.private.json saves a private, ignored local reply.
Live validation found 141 entries and confirmed that catalog IDs
are Windows timezone identifiers. The Amsterdam catalog entry is
W. Europe Standard Time with standard offset 01:00:00.
Both the device listing and litter-box info instead report
time_zone_iana: Europe/Amsterdam for this owner device.
The IANA value is suitable for DST-aware runtime conversions (CEST
is UTC+02:00 in summer); the catalog offset is not.
Unicode CLDR maps this Windows ID to Europe/Amsterdam for NL,
but the exact POST setter payload and its effect on schedules remain
unverified live. The explicit notty.device_time_zone action now supports
operation: list and operation: change. List returns current IANA/Windows
readback, server catalog choices and separate HA/server clock context. Change
requires an exact catalog_id from that list and confirm_schedule_change: true.
It sends the APK contract (the Windows ID in time_zone_iana) after fresh catalog
validation. Capture and inspect its before/after response: device-local schedule
interpretation may change even when raw clock strings stay the same. It never
automatically rewrites DND or cleaning schedules. See issue #21.
For physical litter boxes that report open_litter_remind or open_garbagebag_remind, configuration switches enable (action=1) or disable (action=2) each reminder using the reported configured interval (default_remaining_days: 5–30 days; garbage_bag_cycle_time: 2–15 days). Both operations require cycle_time. Owner tests on a real NOTTY device confirmed that action 1 enables the reminder and restarts its countdown, while action 2 disables it without changing the configured cycle. Unknown state or missing/invalid cycle data prevents writes. The litter-renewal interval selector is enabled for an already enabled reminder: an owner test confirmed that action=3 changes the configured litter interval and updates the remaining countdown (30 → 29 days). Selecting the same interval skips the write. Additional APK tracing establishes action 3 as the Reset choice for both reminder types. Reset buttons now preserve the configured cycle; the trash-bag interval select supports 2–15 days. Both require an enabled reminder and valid fresh cycle data. Same-cycle reset and trash-bag interval writes still need live validation.
Two actions are also available in Developer tools → Actions: notty.litter_box_one_key and notty.litter_box_action. Their schemas are in services.yaml. They require the physical user_device_id, not a pet ID. One-key codes are now traced from the APK: clean=1, empty=2, level=3. The former clean=0, level=1 and sterilize=3 mappings were incorrect. The unsupported sterilize button/action has been removed. Review existing automations, especially numeric one-key values: 1 cleans and 3 levels. Static request evidence does not confirm physical behavior; validate each operation individually before relying on automations.
Reminder enable/disable is available through the configuration switches (both send the configured cycle, not the remaining-day countdown). set_litter_reminder_days supports a changed 5–30 day cycle when the device explicitly reports an enabled litter reminder. Generic reset and trash-bag interval actions use the same validated action-3 contract. A reset must supply the current configured cycle; it cannot silently change it.
- Authentication uses email verification codes. Unverified password/Firebase exchanges have been removed; a rejected request is never automatically replayed with stored credentials.
- Email codes are discarded after the exchange. When a session expires, Home Assistant asks you to request a fresh code. Refresh-token renewal is not implemented; storing a server-provided refresh token does not imply it is used. Existing entries migrate without losing valid access tokens, while legacy passwords, Firebase overrides and stored codes are removed.
- Authentication failures request reauthentication; connection failures make entities unavailable and Home Assistant retries setup/updates.
- Device IDs and account-bound pet IDs differ. Use the probe's
--device-idif automatic discovery does not identify your physical box. - Download integration diagnostics from the integration menu for a report of datapoint paths and types. Credentials and response values are omitted.
- Endpoint fallbacks can omit unsupported related data. Missing fields are not proof that the device lacks a feature. New fields may require reloading the integration to create entities.
The original implementation assumes unqualified event timestamps are in Asia/Shanghai; UTC message fields are handled separately and converted to the device or Home Assistant time zone. Validate that assumption with live captures from your region.
The developer tools run without Home Assistant. They retrieve known discovery/read endpoints and never call cleaning, settings, reset, firmware, or pet-write methods. Some read endpoints use POST query payloads, matching the prototype. Authentication can issue login requests.
uv sync --frozen --no-dev
export NOTTY_ACCESS_TOKEN='your-current-NOTTY-token'
export NOTTY_USER_ID='your-NOTTY-user-id'
uv run scripts/probe_datapoints.py --output probe-output/before.jsonAlternatively set NOTTY_EMAIL and a fresh NOTTY_VERIFICATION_CODE. Password login is unsupported; NOTTY_PASSWORD is not read by the probe. Set NOTTY_REGION_CODE if needed. Credentials are read from the environment, not command arguments. Never paste them into issues.
Email verification codes are single-use. Add --session-file probe-output/session.private.json on the first run to save the established access token locally and reuse that file on later runs. The session file has owner-only permissions and is ignored by Git. It contains a token, user ID, email and region, never the verification code or password. An expired saved session needs a fresh login and a new session file. Saved sessions take precedence over email-code login; an explicit NOTTY_ACCESS_TOKEN takes precedence over the saved token.
# Optional: save sensitive API responses locally for investigation.
uv run scripts/probe_datapoints.py --device-id 123 \
--output probe-output/after.json \
--capture-raw probe-output/after.private.json
# Build a report from an existing capture, without network access.
uv run scripts/probe_datapoints.py --from-file probe-output/after.private.json
# Report fields added, removed, or changed in type; exit 1 when different.
uv run scripts/compare_datapoints.py probe-output/before.json probe-output/after.jsonReports contain JSON paths and observed types, not values. Review reports before sharing: backend-generated object keys can themselves contain identifiers. Raw captures contain personal/device data, are created with owner-only permissions, and must end in .private.json. Both that suffix and probe-output/ are ignored by Git. Output files must be new, so captures are not accidentally overwritten. A top-level read failure yields exit 1 with partial results; authentication or local input/output failure yields exit 2. Optional endpoints omitted by the API client's fallbacks are not individually reported as errors.
Separate feature scripts cover lock/DND, commands, settings/reminders, schedules, timezone, aliases, pets/associations, notifications, memos, firmware, statistics and authentication. They save private before/after evidence and compare values independently observed in the phone app. Emptying is blocked; reversible writes support an explicit restore-and-check test. See commands and examples.
uv run python scripts/probe_weights.py --session-file probe-output/session.private.json
checks both cats' profile/daily weight fields and scoped litter-box statistics.
Use private before/after captures to check changes after a normal visit. Unit
codes, per-visit attribution and history remain unverified until compared with
the app; API success alone is not validation.
uv sync --frozen --group dev
uv run ruff check .
uv run ruff format --check .
uv run mypy .
uv run pytest --cov=custom_components.notty --cov=scripts --cov-report=term-missing
uv run scripts/build_brand.pyTests use Home Assistant's custom-component test plugin, synthetic fixtures, and mocked HTTP/API responses. GitHub Actions runs tests, Ruff, strict mypy, hassfest, and the HACS validator. Ruff checks the integration, developer scripts and tests; mypy checks the integration and developer scripts. The existing mypy test exclusion is retained. See typing and lint policy for the few framework-specific exceptions. The committed uv.lock pins the development environment. The icon is original community artwork; assets/icon.svg and scripts/build_brand.py provide editable sources.
See development history and the live validation checklist. Contributions should include a minimal synthetic fixture for any new field or endpoint mapping.
MIT. NOTTY names and trademarks belong to their respective owners.
The Cloud name configuration text entity changes the physical litter box's
name in the NOTTY account. This is separate from renaming a device in Home
Assistant. Change it on the device page or call text.set_value with the text
entity ID and the new value.
New names must be nonblank printable text using 2–8 UTF-16 units (most emoji use two units). This follows the app's conservative 2–8 guidance; the inspected save method explicitly checks only the lower bound. Accepted text is sent exactly as entered, without trimming or truncation. Existing longer cloud names remain visible and can be replaced with a name inside the write limits. Home Assistant counts code points in its text bounds, so the integration also checks UTF-16 length before sending a request.
After a successful request, the integration refreshes discovery and uses the
reported cloud name. An unchanged or rejected readback is never replaced with an
optimistic value. The integration-provided device registry name follows cloud
readback; your separate Home Assistant display-name override (name_by_user),
physical device ID, entity unique IDs and existing entity IDs are preserved.
Polling also reflects renames made in the official app. Pet names use their own profile text entity and /pet/save API.
The contract is traced from the APK and covered by synthetic tests, but a live rename has not been validated in this development session. See alias evidence.
A Firmware update entity appears for each physical litter box that reports
src_version and dest_version through NOTTY's upgrade-check endpoint. It shows
the installed version, the offered version, a release-note summary (up to 255
characters) and the cloud's raw task_status. An explicitly empty target means
no offered update. Missing or malformed metadata makes the entity unavailable;
it does not mean the device is up to date. If the optional endpoint recovers
after startup, the entity appears without reloading the integration.
The entity exposes installation only for an offered task with a usable task ID and a recognized idle/terminal status. An explicit HA update installation rechecks account ownership, device status, offered version and task before confirming it once. Requested versions must match the current offer; backup is unsupported. Full release notes are available in the update dialog.
Progress is a Boolean tracking this HA session's requested target until fresh installed-version readback or a reported failure/cancellation. No percentage is fabricated. Tracking does not survive an HA restart and does not subscribe to the app's separate realtime firmware events. Unknown task states prevent installation. Firmware installation has not been live-tested; #22 remains open for model and lifecycle validation. See APK firmware evidence.
Use Developer tools → Actions → NOTTY: Litter box cleaning schedules
(notty.litter_box_schedule). Start with operation: list and request its response
to obtain current plan IDs, times, enable states and quantities. It reads only the
selected physical litter box. The action supports responses and also works in
scripts without requesting a response.
action: notty.litter_box_schedule
data:
user_device_id: "your-physical-box-id"
operation: list
response_variable: notty_schedule| Operation | Additional fields | Effect |
|---|---|---|
list |
None | Return fresh plans and their IDs |
create |
time: "06:30" |
Add one plan, up to ten total |
update |
plan_id, time: "06:30" |
Change the selected plan's clock time |
enable / disable |
plan_id |
Change only the selected plan's enable state |
delete |
plan_id |
Delete exactly the selected plan |
Creating or enabling plans may schedule automatic cleaning. These actions leave
cleaning mode unchanged. The app describes Scheduled mode as cleaning at configured
fixed times; behavior outside that mode and with an empty plan list remains
unverified. Create does not send an enable state, matching the app; inspect readback
to see the server's resulting state. Update preserves a disabled plan by omitting
its enable field. Unknown plan quantities/types block time edits. Live litter-box plans use plan_type_id: 2 and may omit quantity; the app's edit payload still uses quantity: 1.
Times are raw NOTTY schedule-clock values in HH:MM, not Home Assistant local
times or UTC timestamps. Readback returns clock_basis: notty_schedule_clock
and the separately reported device timezone for context. No timezone conversion
or DND conversion is applied. The backend's schedule timezone/DST and recurrence
behavior still need owner-observed validation; do not assume that DND readback
rules apply to plans. Date, weekday and custom recurrence fields are unsupported.
Writes first fetch the selected box's plan list to verify membership and plan count. Missing IDs, IDs from another box, malformed list responses and extra fields are rejected. Successful writes refresh the coordinator and return fresh readback when a response is requested. No schedule actions run automatically during setup, polling or read-only probes. See APK schedule evidence.
Existing pets have configuration controls for name, sex, neutered state and birthday. The notty.pet_profile action also edits breed using IDs from operation: breeds. Every profile write fetches current ownership, weight/unit, images and device bindings first, preserving all currently bound devices and leaving unbound candidates unbound. Shared pets are read-only. Profile changes and association changes are serialized per pet, and displayed values come from fresh cloud readback.
Use these actions from Developer tools → Actions; request a response to inspect server IDs and readback:
| Action | Operations / fields |
|---|---|
notty.pet_profile |
pet_id; get, breeds, or update with changes containing name, birthday (YYYY-MM-DD), sex (1/2), is_sterilization (Boolean), breed_id |
notty.pet_association |
Physical user_device_id; list, associate or disassociate; changes require one explicit pet_id |
notty.pet_memo |
pet_id; list, detail, create or update; detail/update require memo_id; changes contain title/content/date/remind |
notty.notification_preferences |
Physical user_device_id selects the account; list, block or unblock; changes require a server-listed message_type_id |
notty.clear_statistics |
Physical user_device_id plus confirm_irreversible: true; permanently deletes that device's statistics |
Memo dates use the app's raw YYYY-MM-DD HH:MM wall clock; the integration does not infer a timezone. Creates default to no reminder; updates preserve omitted text and reminder fields. Memo attachments and pet creation/deletion are outside this release.
Notification switches appear under a separate NOTTY account device. On means the category is unblocked. These are account-wide NOTTY litter-box preferences, affecting the official app rather than HA notifications. Feeders, water dispensers and their standalone LED controls are excluded. Litter-box DND continues to preserve its LED setting.
These writes have APK-backed contracts and mocked HA tests. Read-only production checks found the breed catalog, owner profiles and five litter-box notification categories; they did not exercise new writes, memo details, firmware installation or irreversible statistics deletion. Follow the validation checklist before relying on them. Request evidence is in pet and maintenance contracts.