iobroker.ipp

中文文档
0.1.0发布于 2026/11/04MITTypeScriptCommonJS构建来源已验证

Read-only network printer monitoring over Internet Printing Protocol (IPP)

原始使用文档
文档目录8 节
  1. ioBroker Internet Printing Protocol Adapter
  2. Configuration
  3. States
  4. Changelog
  5. 0.1.0 (2026-11-03)
  6. 0.0.2 (2026-10-28)
  7. 0.0.1 (2026-10-27)
  8. License

ioBroker Internet Printing Protocol

Network printer monitoring illustration

NPM version Downloads

ioBroker Internet Printing Protocol Adapter

The adapter polls configured network printers using the Internet Printing Protocol (IPP) and publishes read-only availability, printer state, toner or ink levels, and supported page counters. It uses Get-Printer-Attributes over IPP/2.0; device and firmware support varies, so optional attributes may not be reported by every printer. Compatibility depends on each printer’s IPP implementation; no particular device has been verified against this implementation.

Node.js 22 or newer, Admin 8.2.0 or newer, and js-controller 7.2.2 or newer are required.

Configuration

Configure polling interval and request timeout in the Basic configuration tab. Add and manage printers in the Printer configuration tab using the Device Manager. Use its Add printer, Edit, and Remove actions; printer cards show the configured host, live connection state, and model when reported.

The Device Manager stores printers in the existing native.printers configuration array, so existing printer configurations remain compatible.

SettingDescription
IDStable object-tree identifier; use 1-32 letters, digits, underscores, or hyphens. German umlauts are transliterated (ä to ae, ö to oe, ü to ue, ß to ss). The ID cannot be changed after creation because it determines the printer's state IDs.
LabelDisplay name for the printer.
HostPrinter hostname or IP address.
PortIPP port; defaults to 631.
IPP resource pathPrinter resource path; defaults to /ipp/print.
Use TLSUse IPPS over TLS.
Verify TLS certificateValidate the printer's TLS certificate; disabled by default for self-signed printer certificates.

The polling interval defaults to 60 seconds and is limited to 10 seconds through 24 hours. The request timeout defaults to 5000 ms and is limited to 500-30000 ms. The adapter only sends the read-only Get-Printer-Attributes operation; it does not submit print jobs or change printer settings. Configure only printers that expose an IPP endpoint at the selected host, port, and resource path.

Invalid printer rows are skipped with a warning that identifies the invalid fields. Debug logging reports configured field names and value types without printing configured values.

When a printer is switched off or temporarily unreachable, the adapter marks it offline without a warning-level log; connection and timeout details are available at debug level. IPP protocol, TLS, and configuration errors remain warnings.

States

Each configured printer gets a device with status, supplies, counters, and details channels. Supplementary IPP attributes are created directly under details (for example, details.printer_location); attributes already represented by the canonical status, model, and counter states are not duplicated. The adapter requests all IPP attributes and creates states for returned values except explicitly excluded capabilities, verbose attribute families, and raw marker values; selected capability/default attributes are retained. Arrays and structured values are stored as JSON strings; scalar values keep their boolean, number, or string type. Unknown, non-excluded attributes are added automatically under details. status.online is always present; status.model, status.message, and numeric status.state are published when supported. The state value is 0 (off) while the printer is unreachable, and returns to the reported IPP state when it reconnects. Previously read measurements remain available while offline. IPP marker levels are normalized to percentages using the reported low/high bounds and rounded to two decimal places. pages_completed, impressions_completed, and media_sheets_completed are created only when the printer reports them. Missing values are cleared rather than replaced with zero during successful polls. Request details are not logged.

For supply reporting, the adapter combines marker-names with the corresponding entries in marker-levels, marker-low-levels, and marker-high-levels; marker-types is used when supplied. A supply is skipped if its name or any required numeric level/bound is missing, invalid, or out of range. Counters map from pages-completed, impressions-completed, and media-sheets-completed to pages_completed, impressions_completed, and media_sheets_completed. When reporting missing values, include the printer model and firmware, which of these IPP attributes the printer returns, and the raw values or state IDs that are absent.

Donate with PayPal

Changelog

0.1.0 (2026-11-03)

  • (Voodoo2man) Replaced the printer list with Device Manager configuration and split basic settings into a separate tab.

0.0.2 (2026-10-28)

  • (Voodoo2man) Added Node.js 22 support and documented printer supply and counter attributes.

0.0.1 (2026-10-27)

  • (Voodoo2man) initial release

Older release notes are available in CHANGELOG_OLD.md.

License

MIT License

Copyright (c) 2026 Voodoo2man [email protected]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

版本与发布记录

iobroker.ipp 共发布 4 个版本,首次发布于 2026/10/28;过去 12 个月发布了 4 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.1.0latest2026/11/041 天前
0.0.22026/10/297 天前
0.0.12026/10/288 天前
0.0.0-stage2026/10/288 天前

关于 iobroker.ipp 的常见问题

iobroker.ipp 是什么?

Read-only network printer monitoring over Internet Printing Protocol (IPP)

如何安装 iobroker.ipp?

在项目目录运行 npm install iobroker.ipp,或使用 pnpm add / yarn add / bun add。

iobroker.ipp 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

iobroker.ipp 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

iobroker.ipp 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >= 22。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

iobroker.ipp 可以商用吗?

iobroker.ipp 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

iobroker.ipp 还在维护吗?

最新版本 0.1.0 发布于 2026/11/04(1 天前);至今共发布 4 个版本,其中过去 12 个月发布了 4 个;首次发布于 2026/10/28。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。