# PetMarvel C1: reconstructing local litter-box control

> PetMarvel C1 Local reconstructs the litter box's cloud-facing TLS and MQTT exchanges in a router-hosted Go broker. Protocol notes describe topics, TLV commands and status fields; Home Assistant patches connect to the local broker.

- Type: Case study
- Targets: Protocol
- Category: Independent reconstruction cases
- Relationship: Independent reconstruction project
- Sources reviewed: 2026-11-06
- Added to the catalog: 2026-11-08
- Original resource: <https://github.com/KiriKira/petmarvel-c1-local>
- Primary source: <https://github.com/KiriKira/petmarvel-c1-local/blob/ca0d1bd3d43feb039bfe01c27ebb283f81d68595/README.md>
- Catalog page: <https://awesomerea.org/resources/petmarvel-c1-local-case/>
- Record JSON: <https://awesomerea.org/resources/petmarvel-c1-local-case/record.json>
- Chinese version: [简体中文](https://awesomerea.org/zh/resources/petmarvel-c1-local-case/index.md)

## Requirements & limits

- **Prerequisites:** PetMarvel C1 firmware 1.0.2 is the documented device target.
- **Prerequisites:** Go 1.23.x is required because the device uses RSA key exchange; deployment requires a suitable OpenWrt router.
- **Prerequisites:** Home Assistant integration requires the upstream jarylc/hass-pet-marvel project.
- **Limits:** Cloud and vendor OTA functions become unavailable under local routing.
- **License:** MIT License for repository code; Home Assistant patches follow upstream terms.

## Primary sources

1. <https://github.com/KiriKira/petmarvel-c1-local/blob/ca0d1bd3d43feb039bfe01c27ebb283f81d68595/README.md>
2. <https://github.com/KiriKira/petmarvel-c1-local/blob/ca0d1bd3d43feb039bfe01c27ebb283f81d68595/docs/protocol.md>
3. <https://github.com/KiriKira/petmarvel-c1-local/blob/ca0d1bd3d43feb039bfe01c27ebb283f81d68595/docs/reverse-engineering.md>

## More in Protocols

- [omen-lcd: reconstructing HP OMEN cooler LCD control](https://awesomerea.org/resources/omen-lcd-hp-cooler-case/index.md) · Case study
- [QCY Control for macOS: implementing MeloBuds Pro BLE controls](https://awesomerea.org/resources/qcy-control-macos-case/index.md) · Case study
- [BTHackers: reconstructing the AIREC recorder’s BLE protocol](https://awesomerea.org/resources/bthackers-airec-case/index.md) · Case study
- [MacBook ALS: mapping five HID color channels](https://awesomerea.org/resources/macbook-als-spectral-case/index.md) · Case study
- [SteelSeries Apex 3: reconstructing RGB control over USB HID](https://awesomerea.org/resources/apex3-rgb-controller-case/index.md) · Case study
- [rfserver: reconstructing a 433 MHz light remote](https://awesomerea.org/resources/rfserver-light-remote-case/index.md) · Case study

## About this entry

The description was reviewed against primary sources.
Original editorial content: MIT. Linked projects, papers and assets retain their own rights and licenses.
