-
Notifications
You must be signed in to change notification settings - Fork 2
Description
I've noticed that some valuable diagnostic metrics available in the old dl_cgi API are missing from pypvs.
These metrics are could useful for remote troubleshooting and understanding PVS health, especially when users report problems like stuck data or communication issues.
Missing Metrics
The old dl_cgi endpoint provides these fields on the PVS device that pypvs currently doesn't expose:
dl_comm_err- Communication error count with invertersdl_err_count- General error countdl_scan_time- Time to complete inverter scan cycledl_skipped_scans- Number of skipped scan cyclesdl_untransmitted- Data not yet transmitted to SunPower servers
Right now I'm hardcoding these to "0" in my integration to maintain compatibility with entity definitions from the old firmware. This works, but users on new firmware lose visibility into these diagnostics.
"dl_err_count": "0",
"dl_comm_err": "0",
"dl_skipped_scans": "0",
"dl_scan_time": "0",
"dl_untransmitted": "0",Request
Would it be possible to add these fields to the PVSGateway model in pypvs? If the varserver API exposes them, having access could help with troubleshooting and seeing issues with hardware.
Thanks for maintaining pypvs - the library has been great to work with overall.