PVS5 New Firmware Support
Release Date: December 21, 2025
Type: Bug Fix Release
Critical Bug Fix: PVS5 New Firmware Support
This release fixes a critical bug preventing installation on PVS5 systems with new firmware (build 5412+).
What Was Broken
Users with PVS5 systems that received firmware updates to 0.0.25.5412 or similar couldn't install the integration:
- Setup would fail with "invalid flow" error
- No helpful error message
- Integration completely non-functional
Root Cause
The new PVS5 firmware returns the BUILD field in a different format:
Old/Expected formats:
- PVS6:
61846(integer) - PVS6:
"61846"(string)
New PVS5 format:
"2025.11, Build 5412"(string with version prefix)
The integration's firmware detection logic expected a plain number and couldn't parse the new format, causing:
- String-to-integer comparison failures
- Incorrect firmware type detection
- Setup flow exceptions
The Fix
Added intelligent BUILD number parser:
- Handles multiple firmware version formats automatically
- Extracts numeric build number from various string formats
- Falls back gracefully if format is unrecognized
Supported BUILD formats:
"2025.11, Build 5412"→5412(PVS5 new firmware)"0.0.25.5412"→5412(PVS5 dotted format)"61846"→61846(PVS6 string)61846→61846(PVS6 integer)
Enhanced logging:
- Shows both raw and parsed BUILD values
- Helps diagnose future firmware format changes
- Logs firmware detection decisions (pypvs vs dl_cgi)
Files Modified:
config_flow.py- Addedparse_build_number()function and updated firmware detection
Firmware Version Reference
For troubleshooting and future reference, here are the known firmware formats:
| PVS Model | Firmware Version | BUILD Format | Example |
|---|---|---|---|
| PVS5 | 0.0.25.5408 | "YYYY.MM, Build XXXX" |
"2025.11, Build 5412" |
| PVS5 | 0.0.25.5412 | "YYYY.MM, Build XXXX" |
"2025.11, Build 5412" |
| PVS6 | 2025.10.20.61846 | Integer or String | 61846 or "61846" |
| PVS6 | 2025.11.x.61xxx | Integer or String | 61846 or "61846" |
Firmware Detection Logic:
- BUILD < 61840 → Old firmware (uses legacy dl_cgi, no authentication)
- BUILD >= 61840 → New firmware (uses pypvs library with authentication)
Who Should Install This
REQUIRED for:
- PVS5 users who received firmware update to build 5412 or later
- Anyone experiencing "invalid flow" error during integration setup
- New installations on recently updated PVS5 systems
Safe for:
- All users - this is a bug fix with no breaking changes
- PVS6 systems (no impact on existing firmware detection)
- Systems already running older firmware (backward compatible)
Installation Instructions
Via HACS (Recommended)
-
Update Integration:
- HACS → Integrations → Enhanced SunPower
- Click "Update" if update notification appears
- OR manually check for updates
-
Restart Home Assistant:
- Settings → System → Restart
-
Install/Reinstall Integration:
- Settings → Devices & Services → Add Integration
- Search "Enhanced SunPower"
- Follow setup wizard
Manual Installation
- Download
sunpower.zipfrom the v2025.12.4 release - Extract to
custom_components/sunpower/ - Restart Home Assistant
- Add the Enhanced SunPower integration
Verification Steps
After installing v2025.12.4, verify the fix worked:
-
Check Setup Success:
- Integration should complete setup without "invalid flow" error
- Should proceed through all 3 setup pages
-
Check Logs (Optional):
- Settings → System → Logs
- Search for "sunpower"
- Look for:
✅ supervisor/info: SERIAL=xxx, BUILD=5412 (raw: 2025.11, Build 5412) - Should show both parsed and raw BUILD values
-
Verify Device Detection:
- Settings → Devices & Services → Enhanced SunPower
- Should see PVS, Inverters, Power Meters detected
- Entity count should match your system configuration
Reporting Issues
If you're still experiencing setup problems after v2025.12.4:
-
Share diagnostics:
- Complete setup as far as possible
- Settings → Devices & Services → Enhanced SunPower
- Click ⋮ → Download Diagnostics
- Attach to GitHub discussion
-
Share supervisor/info:
- Visit:
http://YOUR_PVS_IP/cgi-bin/dl_cgi/supervisor/info - Copy/paste the JSON response to GitHub discussion
- Visit:
-
Share logs:
- Settings → System → Logs
- Search for "sunpower" or "config_flow"
- Share relevant errors (use "Show raw logs" if needed)
Known Issues
None specific to this release.
For general troubleshooting, see TROUBLESHOOTING.md
Full Changelog
See CHANGELOG.md for complete version history.