Skip to content

Releases: dn5qMDW3/petkit

1.25.6

28 Mar 13:44

Choose a tag to compare

Use git+https dependency format for forked pypetkitapi. Remove diagnostic logging.

1.25.5

28 Mar 13:20

Choose a tag to compare

Changes

  • Remove temporary diagnostic logging from coordinator

1.25.4

28 Mar 12:03

Choose a tag to compare

Changes

  • Shared device support: Devices shared with your PetKit account are now discovered. Previously only owned devices were found, causing accounts with only shared devices to show zero entities.
  • Uses forked pypetkitapi with discovery/device_roster_v2 fallback for shared devices.

1.25.3

28 Mar 11:41

Choose a tag to compare

Changes

  • Add diagnostic logging to coordinator for device discovery debugging
  • Logs device count, IDs, and types at warning level after each API refresh

1.25.2

28 Mar 10:26

Choose a tag to compare

Changes

  • Always show region and timezone selectors during integration setup (previously only shown after a login error)
  • Users can now explicitly select their PetKit region instead of relying on auto-detection from Home Assistant country setting

1.25.1

27 Mar 22:55

Choose a tag to compare

Full Changelog: 1.25.0...1.25.1

1.25.0

27 Mar 18:07

Choose a tag to compare

PetKit Integration v1.25.0 — Best of Both Worlds

Built on the excellent architecture from Jezza34000/homeassistant_petkit with comprehensive code quality improvements.

Architecture

  • Descriptor-based entity pattern — auto-detection via is_supported(), ~70% less boilerplate
  • 3 coordinators — data (smart polling), media (camera images), bluetooth (BLE relay)
  • MQTT real-time events — near-instant state updates via Aliyun IoT broker
  • Camera/WebRTC streaming — Agora SDK, go2rtc, WHEP mirror
  • 11 platforms — sensor, binary_sensor, switch, button, number, select, fan, light, text, image, camera
  • 25+ device types — D3/D4/D4H/D4S/D4SH feeders, T3-T7 litter boxes, W5/CTW3 fountains, K2/K3 purifiers

Code Quality Fixes (15 issues resolved)

  • Fix: Critical typo curent_devicescurrent_devices in coordinator
  • Fix: 40+ f-string LOGGER calls → lazy %s format (performance)
  • Fix: 4 broad except Exception: → specific exception types in MQTT
  • Fix: Missing homeassistant min version in manifest.json
  • Fix: Switch turn_on/turn_off None guard added
  • Fix: Bare except AttributeError: pass → explicit hasattr() guards
  • Fix: Duplicate device_info → shared _build_device_info() helper
  • Fix: Full type hints on all coordinator __init__ parameters

Ported from our previous integration

  • Config entry migration (v1-6 → v7)
  • Litter events module
  • SSL CA documentation (Xcc Trust chain)

Install via HACS

  1. HACS → ⋯ → Custom repositories
  2. Add: https://github.com/dn5qMDW3/petkit
  3. Category: Integration → Add → Download → Restart HA