Skip to content

# Request: Add PVS Diagnostic Metrics to pypvs #38

@smcneece

Description

@smcneece

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:

  1. dl_comm_err - Communication error count with inverters
  2. dl_err_count - General error count
  3. dl_scan_time - Time to complete inverter scan cycle
  4. dl_skipped_scans - Number of skipped scan cycles
  5. dl_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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions