Homebridge plugin for PetLibro smart feeders. Control your pet feeder through Apple HomeKit.
npm install homebridge-petlibro

A Homebridge plugin that integrates PetLibro smart feeders with Apple HomeKit, allowing you to trigger manual feeding sessions directly from your iOS Home app.
- š½ļø Manual Feeding: Trigger feeding sessions from your Home app
- š± HomeKit Integration: Works seamlessly with Apple's Home ecosystem
- š Momentary Switch: Switch automatically resets after feeding
- š”ļø Robust Error Handling: Graceful failures that won't break Homebridge
- š Secure Authentication: Uses the same API as the official PetLibro app
This plugin works with PetLibro feeders that use the main PetLibro app (not PetLibro Lite):
- Granary Smart Feeder (PLAF103)
- Space Smart Feeder (PLAF107)
- Air Smart Feeder (PLAF108)
- Polar Wet Food Feeder (PLAF109)
- Granary Smart Camera Feeder (PLAF203)
- One RFID Smart Feeder (PLAF301)
1. Search for "PetLibro" in the Homebridge Config UI X plugin store
2. Install the plugin
3. Configure using the web interface
``bash`
npm install -g homebridge-petlibro
After installation, configure the plugin through the Homebridge web interface. You'll need:
- Your PetLibro account email
- Your PetLibro account password
- Number of portions to dispense (optional, defaults to 1)
Add the following to your Homebridge config.json in the platforms section:
`json`
{
"platforms": [
{
"platform": "PetLibroPlatform",
"name": "Pet Feeder",
"email": "your-petlibro-email@example.com",
"password": "your-petlibro-password",
"portions": 1,
"timezone": "America/New_York",
"country": "US"
}
]
}
| Option | Required | Default | Description |
|--------|----------|---------|-------------|
| platform | Yes | | Must be "PetLibroPlatform" |name
| | No | "Pet Feeder" | Display name in Home app |email
| | Yes | | Your PetLibro account email |password
| | Yes | | Your PetLibro account password |portions
| | No | 1 | Number of portions per feeding (1-10) |timezone
| | No | "America/New_York" | Your timezone |country
| | No | "US" | Your country code |deviceId
| | No | | Specific device ID (auto-detected) |
ā ļø PetLibro only allows one device to be logged into an account at a time.
Recommended Setup:
1. Create a second PetLibro account with a different email
2. In your main PetLibro app, share your feeder to the new account
3. Use the new account credentials in this Homebridge plugin
This allows both your mobile app and Homebridge to work simultaneously.
Before configuring the plugin:
1. ā
Verify your credentials work in the official PetLibro mobile app
2. ā
Ensure you're using the main "PetLibro" app (not "PetLibro Lite")
3. ā
Confirm your feeder is connected to WiFi and working normally
1. After configuration, your feeder will appear as a switch in the Home app
2. Tap the switch to trigger a manual feeding
3. The switch automatically turns off after 1 second (momentary behavior)
4. Check Homebridge logs to confirm feeding was successful
Problem: Plugin fails to authenticate
- ā
Verify email/password work in the PetLibro mobile app
- ā
Ensure only one device is logged into your PetLibro account
- ā
Try creating a dedicated account for Homebridge (recommended)
Problem: Plugin authenticates but can't find your feeder
- ā
Confirm your feeder appears in the PetLibro mobile app
- ā
Check that device sharing is set up correctly (if using separate account)
- ā
Look at Homebridge logs for device discovery details
Problem: Switch appears but feeding doesn't work
- ā
Ensure feeder has food and is powered on
- ā
Verify feeder connectivity in the PetLibro app
- ā
Check Homebridge logs for API error messages
- ā
Try manual feeding through the official app first
"Invalid account or password"
- Check credentials are correct
- Ensure no other device is logged into the account
"Device ID not found"
- Verify device sharing is configured properly
- Check that the feeder appears in your account
"Authentication failed: SYSTEM_ERROR"
- Usually indicates incorrect API credentials
- Verify you're using the main PetLibro app (not Lite)
This plugin uses the same API endpoints as the official PetLibro mobile application, reverse-engineered from the open-source HomeAssistant PetLibro integration.
- Device Discovery: POST /device/device/list
- Manual Feeding: POST /device/device/manualFeeding`Found a bug or want to contribute?
1. Check existing issues
2. Create a detailed bug report with:
- Homebridge logs
- Device model
- Configuration (without credentials)
3. Test that your feeder works with the official PetLibro app
ā ļø This is an unofficial plugin, not affiliated with PetLibro.
- Use at your own risk
- API endpoints may change without notice
- Check PetLibro's Terms of Service before use
- The plugin is reverse-engineered from publicly available information
MIT License - see LICENSE file for details.
- Based on the HomeAssistant PetLibro integration by jjjonesjr33
- Built for the Homebridge platform
---
Enjoying this plugin? ā Star the repository and consider supporting the project!