Skip to content

Support for queued-job-count (and other job info) #730

Description

@Stensel8

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:

  1. Add "queued-job-count" to the requested printer attributes.
  2. Add a field on the Printer model to expose it.
  3. 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions