elad-bar / ha-hpprinter

HP Printer Integration
93 stars 27 forks source link
home-assistant hp hp-printer

HP Printer integration for Home Assistant

Description

Configuration support multiple HP Printer devices through Configuration -> Integrations

Changelog

How to

Requirements

Installations via HACS hacs_badge

Setup

To add integration use Configuration -> Integrations -> Add HP Printer Integration supports multiple accounts and devices

Fields name Type Required Default Description
Host Textbox + - Defines hostname or IP of the HP Printer EWS
Port Textbox + 80 Defines port of the HP Printer EWS
Is SSL Boolean + False Defines which protocol to use HTTP/S

It is also possible to change configuration after setting up using integration configuration.

Validation errors

Errors
Invalid parameters provided
HP Printer Embedded Web Server (EWS) not was not found

Devices

Will extract data of the relevant devices, devices that are not available will be ignored.

Main device

Device that holds entities related to the integration and relations to other sub devices as described below.

Binary Sensor

Sensor

Printer

Device holds entities of sensors related to number of pages printed and relation to sub devices of consumables

Sensor

Scanner

Device holds entities of sensors related to number of pages scanned

Sensor

Copy

Device holds entities of sensors related to number of pages copied

Sensor

Fax

Device holds entities of sensors related to number of pages faxed

Sensor

Consumable

Devices (device per consumable) holds entities related to consumable (Ink, Toner, Printhead) of a printer device

Binary Sensor

Sensor

Troubleshooting

Before opening an issue, please provide logs and diagnostic file data related to the issue.

Logs

For debug log level, please add the following to your config.yaml

logger:
  default: warning
  logs:
    custom_components.hpprinter: debug

Or use the HA capability in device page:

  1. Settings
  2. Devices & Services
  3. HP Printer
  4. 3 dots menu
  5. Enable debug logging

When done and would like to extract the log, repeat steps, in step #5 - Disable debug logging

Diagnostic details

Please attach also diagnostic details of the integration, available in:

  1. Settings
  2. Devices & Services
  3. HP Printer
  4. 3 dots menu
  5. Download diagnostics

Diagnostic file contains 3 section related to data extracted from the device:

Translations

Integration translated from English to:

Translation is being auto-generated from Google Translate using utils/generate_translations.py script,

{
  "en": "en",
  "de": "de",
  "dk": "da",
  "es": "es",
  "fr": "fr",
  "nb": "no",
  "nl": "nl",
  "pl": "pl",
  "pt-BR": "pt"
}

If you would like to add new translation language, please add to the DESTINATION_LANGUAGES constant the relevant language, format is:

{
  "HA language": "Google Translate language"
}

Script is translating only, new missing values, it will not override translated values.