# Petkit Local: reconstructing feeder cloud and fountain BLE controls

> Petkit Local replaces selected Petkit D4 feeder cloud exchanges with a local Home Assistant server and relays Eversweet Max 2 CTW3 fountain messages over BLE. The integration implements device registration, heartbeats, schedules, events and commands based on observed device communication.

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

## Requirements & limits

- **Prerequisites:** Home Assistant 2024.1 or newer, a D4-family feeder, port 80 and local DNS or IP redirection are required.
- **Prerequisites:** CTW3 fountain support requires a D4 feeder already running the integration.
- **Testing evidence:** The documented tested firmware versions are D4 1.267 and CTW3 1.11.
- **License:** MIT licence.

## Primary sources

1. <https://github.com/Opcodeffm/petkit-local/blob/235aaebad76586793b44921b712e5b58a91b8ef3/README.md>
2. <https://github.com/Opcodeffm/petkit-local/blob/235aaebad76586793b44921b712e5b58a91b8ef3/LEGAL.md>

## More in Protocols

- [IPI STAY FLY Driver: reconstructing mouse configuration over HID](https://awesomerea.org/resources/ipi-stay-fly-driver-case/index.md) · Case study
- [Soundcore D3200: reconstructing BLE recording transfer and decryption](https://awesomerea.org/resources/soundcore-d3200-ble-case/index.md) · Case study
- [K1 Pro OpenDeck Suite: a Linux driver for the Stream Dock K1 Pro](https://awesomerea.org/resources/k1-pro-opendeck-suite-case/index.md) · Case study
- [iDotMatrix: Home Assistant control through a reconstructed BLE protocol](https://awesomerea.org/resources/idotmatrix-ha-case/index.md) · Case study
- [Dell ControlVault 2 fingerprint on Linux: adapting a driver for BCM5880](https://awesomerea.org/resources/dell-controlvault2-fingerprint-linux-case/index.md) · Case study
- [epson-l3110-driver: investigating the printer's USB and ESC/P-R exchanges](https://awesomerea.org/resources/epson-l3110-driver-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.
