Would it be possible to add support for the queued-job-count printer attribute? This is a standard IPP attribute (RFC 8011) that reports how many jobs are pending/processing on a printer. As far as I can tell from browsing the source, it's not currently in the requested/parsed attributes, though I may be missing something.
I noticed there's already some scaffolding for job data (data["jobs"] = [] in parser.py, plus an IppJobState enum), so there may be a partial path toward this already. What I think would be needed:
- Add "queued-job-count" to the requested printer attributes.
- Add a field on the Printer model to expose it.
- Possibly a Get-Jobs operation for more detail later, though the count alone would cover my use case.
My use case: I want to surface print queue depth as a sensor in Home Assistant via the ipp integration.
Happy to work on a PR for this if useful.
Separately, no pressure at all, but I noticed a fair number of dependency-bump PRs (Renovate/Dependabot) sitting open. I don't have experience maintaining a library like this, but if you could use an extra pair of hands reviewing/merging that kind of routine stuff, I'd be interested in learning how you'd want that handled.
Would it be possible to add support for the queued-job-count printer attribute? This is a standard IPP attribute (RFC 8011) that reports how many jobs are pending/processing on a printer. As far as I can tell from browsing the source, it's not currently in the requested/parsed attributes, though I may be missing something.
I noticed there's already some scaffolding for job data (data["jobs"] = [] in parser.py, plus an IppJobState enum), so there may be a partial path toward this already. What I think would be needed:
My use case: I want to surface print queue depth as a sensor in Home Assistant via the ipp integration.
Happy to work on a PR for this if useful.
Separately, no pressure at all, but I noticed a fair number of dependency-bump PRs (Renovate/Dependabot) sitting open. I don't have experience maintaining a library like this, but if you could use an extra pair of hands reviewing/merging that kind of routine stuff, I'd be interested in learning how you'd want that handled.