Standalone Home Assistant custom component, distributed via HACS, that controls a Pawbby Smart Cat Litter Box directly over your local network (Tuya protocol v3.4) — no cloud, and no Pawbby-Reborn server instance required.
The Tuya DP protocol was reverse-engineered and hardware-confirmed in the
Pawbby-Reborn project
(see VALUES.md / DP105_SETTINGS.md there). This integration is a Python
port of that protocol layer and is licensed AGPL-3.0.
- Sensors: status, waste bin, litter level, visits today, last visit weight / pet / time, last cleaned, deodorizer days left — plus per-cat weight, duration, last used and visits today
- Binary sensors: online, cleaning, lid open, bin full/removed, drum removed, litter low, motor error
- Buttons: clean, flatten, empty, zero scale (tare), cancel clean
- Switches: auto-clean, quiet period, soft clumps mode, auto screen-off, screen lock
- Number: auto-clean delay (1–60 min) · Select: litter type
- Events: every litter-box event (visit, clean, bin full, …) is fired on
the
pawbby_eventbus and shown as an event entity — build automations natively (this replaces Pawbby-Reborn's webhooks) - PawID: visits are attributed to the configured cat whose profile weight is closest (within 300 g)
- Add this repository as a custom repository in HACS (category: Integration), then install "Pawbby Smart Litter Box" and restart HA.
- Go to Settings → Devices & Services → Add Integration → Pawbby.
- Enter the Tuya
device idandlocal keyof your litter box (the same values the Pawbby-Reborn setup wizard extracts), optionally its IP address. The connection is tested live during setup. - Add your cats with their profile weights (used for visit attribution).
The box's time zone and weight unit automatically follow your Home Assistant configuration and are pushed to the device on every connect.
| Service | Fields | Description |
|---|---|---|
pawbby.action |
device_id, action (clean/flatten/empty/cancel_clean) |
Motor command; refused while the box is busy or a cat is inside |
pawbby.tare |
device_id |
Zero the scale (DP 109) |
pawbby.set_setting |
device_id, setting, value |
Change a hardware setting on the box (DP 105): auto_clean, sleep_mode, soft_clumps, auto_off_screen, child_lock (bool), auto_clean_delay (1–60), sleep_window ({"start": "22:00", "stop": "08:30"}), litter_type (0–3 or name), reset_deodorant, refresh |
Every event fires pawbby_event on the bus, e.g.:
automation:
- alias: "Notify when the waste bin is full"
triggers:
- trigger: event
event_type: pawbby_event
event_data:
type: bin-full
actions:
- action: notify.mobile_app_phone
data:
message: "Pawbby waste bin is full!"
- alias: "Notify which cat used the box"
triggers:
- trigger: event
event_type: pawbby_event
event_data:
type: toileted
actions:
- action: notify.mobile_app_phone
data:
message: >-
{{ trigger.event.data.pet_id }} used the litter box
({{ trigger.event.data.weight_kg }} kg,
{{ trigger.event.data.duration_s }} s).Managed with uv. The repo is not a pip package
(package = false); uv only maintains the dev venv. The integration's runtime
dependency tinytuya is declared in custom_components/pawbby/manifest.json
and installed by Home Assistant itself — for local dev it's in the dev
dependency group.
uv sync # install dev deps from uv.lock
uv run python scripts/check_integration.py # structural HACS/hassfest checks
uv run pytest # 128 tests incl. HA harnessProtocol tests run against the hardware-confirmed vectors from Pawbby-Reborn
(DP105_SETTINGS.md / VALUES.md); HA-level tests use
pytest-homeassistant-custom-component with a fake Tuya device.
AGPL-3.0 — see LICENSE.