Skip to content

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

1 watching

Forks

 
 

Latest commit

 

History

48 Commits

Folders and files

Repository files navigation

Pawfit Home Assistant I- 📍 GPS Device Tracker - Track your pets' real-time location on the Home Assistant map

  • 🔋 Battery Monitoring - Monitor battery level and charging status
  • 📶 Signal Strength - View GPS signal quality
  • 🎯 Location Accuracy - See GPS accuracy in meters
  • 🕐 Last Seen - Track when location was last updated
  • 🏃 Fitness Tracking - Monitor daily steps, calories burned, and active time
  • 📈 Activity Stats - View today's fitness data with real-time updates
  • 🔍 Find Mode - Activate GPS tracking for 10 minutes with button and status sensor
  • 💡 Light Mode - Turn on tracker LED light for 10 minutes with button and status sensor
  • 🚨 Alarm Mode - Activate tracker alarm for 10 minutes with button and status sensor
  • ⏱️ Timer Sensors - View countdown timers for active modes
  • ⚡ Rate-limited polling - One location fetch a minute, enforced in code, with a request counter (see Polling)
  • 🐕 Multiple Pets - Support for multiple trackers under one account
  • 🏠 Home Assistant Integration - Use in automations, scripts, and dashboards

Fork of dansbaker/homeassistant-pawfit v0.4.2 that polls Pawfit at most once a minute. See Polling. Install from HACS as a custom repository: https://github.com/fullstackfool/homeassistant-pawfit.

⚠️ UNOFFICIAL INTEGRATION - NOT SUPPORTED BY PAWFIT ⚠️

A community-built Home Assistant integration for Pawfit pet trackers. Track multiple dogs/pets and integrate their location data into your smart home automations.

⚠️ CRITICAL SETUP REQUIREMENT ⚠️

🚨 DO NOT USE YOUR MAIN PAWFIT ACCOUNT WITH THIS INTEGRATION! 🚨

You MUST create a separate Pawfit account for this integration. If you use your main account, you will be repeatedly logged out of the mobile app whenever the integration updates, potentially causing you to lose track of your pet in an emergency!

Required Setup Steps:

  1. Create a NEW Pawfit account with a different email address
  2. Share your pets from your main account to this new account
  3. Log into the NEW account on your mobile app
  4. Accept the pet sharing invitation in the new account
  5. Log back into your MAIN account on your mobile app
  6. Use the NEW account credentials when setting up this integration in Home Assistant

This ensures your main mobile app stays logged in while the integration uses the secondary account.

Features

  • 📍 GPS Device Tracker - Track your pets' real-time location on the Home Assistant map
  • 🔋 Battery Monitoring - Monitor battery level and charging status
  • 📶 Signal Strength - View GPS signal quality
  • 🎯 Location Accuracy - See GPS accuracy in meters
  • 🕐 Last Seen - Track when location was last updated
  • � Find Mode - Activate GPS tracking for 10 minutes with button and status sensor
  • 💡 Light Mode - Turn on tracker LED light for 10 minutes with button and status sensor
  • 🚨 Alarm Mode - Activate tracker alarm for 10 minutes with button and status sensor
  • ⏱️ Timer Sensors - View countdown timers for active modes
  • �🐕 Multiple Pets - Support for multiple trackers under one account
  • 🏠 Home Assistant Integration - Use in automations, scripts, and dashboards

Installation

HACS (Recommended)

  1. Open HACS in Home Assistant
  2. Go to "Integrations"
  3. Click the three dots menu (⋮) in the top right corner
  4. Select "Custom repositories"
  5. Add repository URL: https://github.com/dansbaker/homeassistant-pawfit
  6. Select category: "Integration"
  7. Click "Add"
  8. Search for "Pawfit" in HACS integrations
  9. Click "Download"
  10. Restart Home Assistant

Manual Installation

  1. Download this repository
  2. Copy the custom_components/pawfit folder to your Home Assistant custom_components directory
  3. Restart Home Assistant

Setup

  1. Go to Settings → Devices & Services → Add Integration
  2. Search for "Pawfit"
  3. Enter your NEW Pawfit account credentials (not your main account!)
  4. Complete the setup

Available Entities

For each tracker, the integration provides:

Device Tracker

  • GPS location with accuracy and battery level

Sensors

  • Battery level (%)
  • Signal strength
  • Location accuracy (meters)
  • Last seen timestamp
  • Steps today (daily step count)
  • Calories today (daily calories burned)
  • Active time today (daily active minutes)
  • Find mode timer (countdown in seconds)
  • Light mode timer (countdown in seconds)
  • Alarm mode timer (countdown in seconds)

Binary Sensors

  • Charging status
  • Find mode active (10-minute duration)
  • Light mode active (10-minute duration)
  • Alarm mode active (10-minute duration)

Buttons

  • Find mode toggle (activate/deactivate GPS tracking)
  • Light mode toggle (activate/deactivate LED light)
  • Alarm mode toggle (activate/deactivate alarm sound)

Each mode runs for exactly 10 minutes when activated. You can deactivate early by pressing the button again.

Fitness Tracking

The integration provides comprehensive daily activity monitoring for your pets:

  • Steps Today: Total steps taken since midnight
  • Calories Today: Estimated calories burned based on activity
  • Active Time Today: Minutes of active movement throughout the day

Fitness data is updated automatically and resets at midnight each day. The integration uses the Pawfit API's activity statistics to provide accurate, real-time fitness metrics.

Polling (this fork)

This fork limits how often it talks to Pawfit:

  • Location, battery, signal and mode timers: one request a minute for all trackers together. Requests for an extra refresh (homeassistant.update_entity, a button press) are ignored until a minute has passed since the last fetch, and no two fetches are ever less than 55 seconds apart, whatever triggers them.
  • Daily activity (steps, calories, active time): one request per tracker every 15 minutes, and again just after midnight.
  • Find / Light / Alarm buttons: one request per press. The mode shows as on or off at once from a local timer; there is no 1-second polling.
  • Pawfit not answering: if a fetch times out or fails, the last known positions and readings stay up (the cats don't vanish from maps) for up to 15 minutes after the last good fetch; after that the entities go unavailable. Upstream made them unavailable on the first failed fetch.
  • Locate (button.pawfit_locate): gets a fresh position from every tracker. Pawfit has no one-off "locate" call, so it turns Find mode on and, as each tracker reports a position newer than the press, turns Find mode off again for it (to save battery). Trackers already in Find mode are left alone. Gives up after 3 minutes. binary_sensor.pawfit_locating is on while it waits (icon mdi:loading), with waiting_for and last_result attributes. Positions are still fetched once a minute, so a press costs only the Find on/off requests.
  • Stale positions: each device tracker has last_seen (when the tracker last reported its position), position_age_minutes and stale (over 15 minutes old) attributes, and its icon changes to mdi:map-marker-question while stale.
  • Counter: sensor.pawfit_api_requests_today counts every request made to Pawfit (fetches, logins and commands) since midnight or Home Assistant's start. Its location_fetches_today attribute counts the location fetches.

With two trackers that's about 1,600 requests a day. Upstream made about 5,800 a day, plus about 2,400 for each Find, Light or Alarm press.

tests/ checks this against a fake Pawfit API (pip install pytest-homeassistant-custom-component, then pytest).

Beta Status

🚧 This is BETA software with expanding features.

Current limitations:

  • Limited tracker commands (Find, Light, and Alarm modes only)
  • Basic location and status information
  • No advanced Pawfit features (geofences, etc.)

Recent additions:

  • ✅ Daily fitness tracking (steps, calories, active time)
  • ✅ Smart polling intervals for responsive mode tracking
  • ✅ Real-time activity statistics

Support & Feature Requests

Disclaimer

This integration is:

  • Unofficial and not affiliated with Pawfit
  • Community-developed and maintained
  • Based on reverse engineering of the Pawfit mobile app API
  • Use at your own risk - the API may change without notice

License

Apache 2.0

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages