Reverse Engineering my cat's litter box master--ytulsiani.netlify.app · 14 point...

@best

Reverse Engineering my cat's litter box master--ytulsiani.netlify.app · 14 points · 6 comments · HN thread

TL;DR A developer reverse engineered the vendor app of a smart cat litter box (Airrobo/UBT cloud) by decompiling the Android APK, analyzing signed HTTP requests and MQTT protobuf command frames. The result is a local bridge with HTTP endpoints like /device/clean that Home Assistant can call, with the long-term goal of triggering cleaning when the cat is distracted elsewhere.

  • The app authenticates with a token, and every request carries an X-UBT-Sign header that is an MD5 of timestamp, app key, nonce and device ID, so each request needs a freshly computed signature.
  • The author decompiled the APK with JADX and found the signing interceptor, plus a regional bootstrap endpoint (/catbox-server/app/areaMap) that supplies the regional app ID, key and API URL.
  • Pressing Clean in the app produced no HTTP request; the command travels over MQTT, with credentials obtained from an im/login endpoint.
  • The MQTT payload is a nested stack of wrappers (IM message, Any, BytesValue, RISP frame with CRC-8 checksums) around a four-byte protobuf operation message (op_mode=1, op_state=1).
  • The wrapper exposes clean, start, pause, resume, stop and clear operations over HTTP, and pushes waste drawer level and visit history into Home Assistant entities. It still depends on the vendor's cloud and broker.
  • The code is published on GitHub; the next step is presence sensors to decide when to clean.

Discussion The thread is small and split between practical interest and skepticism about the article itself. One commenter mentions running a different, Tuya-based litter box locally with Home Assistant to track cat weight and waste metrics. Another commenter argues the article looks AI-generated, pointing to an AI-looking cat photo and manufacturer images, and a reply turns this into a lighthearted contrast with a real cat photo. Overall the mood is light and amused rather than hostile.

  • Local smart-home integration of pet devices is appealing (some): A commenter describes connecting a Tuya litter box to Home Assistant to measure cat weight and poop metrics and send alerts via Signal, and says it can run fully local after initial setup.
  • Article seems AI-generated with fake imagery (some): One commenter suspects the post and the manufacturer's website use AI-generated images, including a nonexistent cat, and questions what is real.
  • Jokey dismissal of the AI suspicion (a few): A reply jokes that the real certainties are death, taxes and litter boxes that need cleaning.
  • Share real cat photos instead (a few): Another commenter posts a photo of a real rescue cat on a farm field as a non-AI counterpoint, with a short story about her rehoming and recovery.

Links from the comments

#homeAssistant #reverseEngineering #iot #mqtt #catLitterBox