🚀 Fix 429 Rate Limiting Issues
This release addresses the critical 429 (Too Many Requests) rate limiting issues that were causing over 1,500+ API errors.
🔧 Changes
Rate Limiting Improvements:
- Increased default polling intervals to be more API-friendly
- Main state updates: 180s → 300s (5 minutes)
- Energy data: 60min → 120min (2 hours)
- Bus errors: 600s → 1200s (20 minutes)
Enhanced Caching:
- Extended cache TTLs to reduce actual API calls
- State updates: 2min → 5min
- Bus errors: 10min → 30min
- Energy data: 15min → 60min
- Features: 2hrs → 4hrs
Improved Error Handling:
- Increased minimum call intervals (5s → 15s)
- Enhanced 429 backoff logic with longer pause times (5-60min)
- Better global rate limiting across all API calls
User Experience:
- Added configuration hints in options UI
- Range validation to prevent problematic settings
- Helpful descriptions guiding users to safe values
🎯 Expected Results
- Drastically reduced API call frequency (40-67% reduction)
- Longer cache retention means fewer actual API requests
- Better handling of 429 errors when they occur
- Integration should stabilize and stay within API rate limits
📋 Migration
No breaking changes. The new defaults will be applied automatically. Users can still customize intervals through the integration options, but are now guided toward safe values.
Recommended settings:
- Main scan interval: 300+ seconds
- Energy scan interval: 120+ minutes
- Bus errors interval: 1200+ seconds
Fixes fustom#429 rate limiting issues that were causing integration instability.