Custom Component - HP Printer

A general question…
Has the filling level been below 20% at any time?
My black seems to be now at 20% for 14 days…(2 Home offices and 1 Homeschooling victim).
These figures are always in 10% steps?
What is your experience?
Greets
Jörg

Just installed v109.0 and get this in the log:

hpprinter: the '.translations' directory has been moved, the new name is 'translations', starting with Home Assistant 0.111 your translations will no longer load if you do not move/rename this

Please install from HACS or copy to hp_printer just the content of custom_components/hp_printer into it

this is a warning, since 109 just released I didn’t implement it yet (caused issue), will do that in the upcoming few days

No probs, no rush.

Just a short hint, for beginners (like me)…
I struggled with @Johann_Edelmuller nice script - even with hints from him directly.
So I reduced the script and the integration via Manual Card has finally been easy (after hours of trying to get the complete script running).

I posted my infight here:

My Printer Frontend looks now like this - the Printer Link I will try to add as final step.
HP-Ink-Card


Regards,
Jörg

1 Like

All sorted and no errors now

Hi -I hoping to get some assistance.

I’m relatively new to HomeAssistant but have a technical back ground.

I’ve just downloaded this integration to bring additional entities into HA for display (compared to the IPP integration). I’ve been able to download and install it but when I try to add the printer it fails to find the host.

I have two printers : a Brother Laser and a HP Officejet, The Brother shows up in the IPP integration and the native Brother integration but the HP only showns up in the IPP.

Both printers are on the same VLANs but a separate VLAN from HA (I have the firewalls rules in place to allow access (well at least I think I do based on the IPP and Brother native access)).

Below is a snippet of the IPP for the HPshow that HA can reach the IP of the printer

info: 'Officejet Pro 8600 [E12BE3]'
serial: xxxxxxxxxx
location: ''
state_message: null
state_reason: null
command_set: 'PCL3GUI,PCL3,PJL,JPEG,PCLM,URF,DW-PCL,802.11,802.3,DESKJET,DYN'
uri_supported: 'ipp://172.18.22.13/ipp/printer'
friendly_name: HP Officejet Pro 8600
icon: 'mdi:printer'

Any assistance as to help resolve this would be appreciated.

This thread is not related to IPP component, I suggest to find the right thread and get assistance over there

Hi @bar

Thank you for responding - I only made reference to the IPP component because its working and able to reach the printer using the specified IP address (172.18.22.13).

I am trying to use the HP Printer integration but when I enter the IP - 172. 18.22.13 for the host I get the following error

image

Is there anything I need to show to assist with debugging the issue.

Thanks

Are you on the latest version?
Can you attach debug logs of the component?

This is a snapshot of the integration in HACS (I only installed a few days ago and there has been no updates that I’ve seen)

This is the error log

Thanks

Thanks for the log, will check it

2020-05-06

Fixed bugs:

  • Fix Log is filling with errors #57

Implemented enhancements:

  • More descriptive error message when unable to access printer’s API at setup or changing options

@bar - thanks for taking the time on this issue - I came across another post where there was an implication around printers not being able to multicast on address other than 192.168.x.x.

I’d being toying around with the idea of moving the printers into my IOT network anyway, so this was the final straw for me to do that,.

They’re now in the IOT network and accessible directly to HA - the intergration now works.

Thanks again.

I get an error with my envy photo 7830.

Translation Error: The intl string context variable "IP" was not provided to the string "Invalid server details, please try manually access to http://{IP}//DevMgmt/ProductStatusDyn.xml (Replace placeholder with IP or Hostname), in case it's accessible, please report the issue with logs"

This is the xml:

This XML file does not appear to have any style information associated with it. The document tree is shown below.

<!-- THIS DATA SUBJECT TO DISCLAIMER(S) INCLUDED WITH THE PRODUCT OF ORIGIN. -->

<psdyn:ProductStatusDyn xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:dd="http://www.hp.com/schemas/imaging/con/dictionaries/1.0/" xmlns:ad="http://www.hp.com/schemas/imaging/con/ledm/alertdetails/2007/10/31" xmlns:pscat="http://www.hp.com/schemas/imaging/con/ledm/productstatuscategories/2007/10/31" xmlns:locid="http://www.hp.com/schemas/imaging/con/ledm/localizationids/2007/10/31" xmlns:psdyn="http://www.hp.com/schemas/imaging/con/ledm/productstatusdyn/2007/10/31" xsi:schemaLocation="http://www.hp.com/schemas/imaging/con/dictionaries/1.0/ ../schemas/dd/DataDictionaryMasterLEDM.xsd http://www.hp.com/schemas/imaging/con/ledm/alertdetails/2007/10/31 ../schemas/AlertDetails.xsd http://www.hp.com/schemas/imaging/con/ledm/productstatuscategories/2007/10/31 ../schemas/ProductStatusCategories.xsd http://www.hp.com/schemas/imaging/con/ledm/localizationids/2007/10/31 ../schemas/LocalizationIds.xsd http://www.hp.com/schemas/imaging/con/ledm/productstatusdyn/2007/10/31 ../schemas/ProductStatusDyn.xsd">

<dd:Version>

<dd:Revision>SVN-IPG-LEDM.216</dd:Revision>

<dd:Date>2011-02-08</dd:Date>

</dd:Version>

<psdyn:Status>

<pscat:StatusCategory>genuineHP</pscat:StatusCategory>

<locid:StringId>65851</locid:StringId>

</psdyn:Status>

<psdyn:Status>

<pscat:StatusCategory>inPowerSave</pscat:StatusCategory>

<locid:StringId>65640</locid:StringId>

</psdyn:Status>

<psdyn:AlertTable>

<dd:ModificationNumber>6</dd:ModificationNumber>

<psdyn:Alert>

<ad:ProductStatusAlertID>genuineHP</ad:ProductStatusAlertID>

<locid:StringId>65851</locid:StringId>

<dd:SequenceNumber>9</dd:SequenceNumber>

<ad:Severity>Info</ad:Severity>

<ad:AlertPriority>399</ad:AlertPriority>

<ad:AlertDetails>

<ad:AlertDetailsMarkerColor>CyanMagentaYellow</ad:AlertDetailsMarkerColor>

<ad:AlertDetailsConsumableTypeEnum>inkCartridge</ad:AlertDetailsConsumableTypeEnum>

<ad:AlertDetailsMarkerLocation>0</ad:AlertDetailsMarkerLocation>

<ad:AlertDetailsUserAction>acknowledgeConsumableState</ad:AlertDetailsUserAction>

</ad:AlertDetails>

<dd:ResourceURI>/DevMgmt/ConsumableConfigDyn.xml</dd:ResourceURI>

<dd:ResourceType>ledm:hpLedmConsumableConfigDyn</dd:ResourceType>

</psdyn:Alert>

<psdyn:Alert>

<ad:ProductStatusAlertID>genuineHP</ad:ProductStatusAlertID>

<locid:StringId>65851</locid:StringId>

<dd:SequenceNumber>10</dd:SequenceNumber>

<ad:Severity>Info</ad:Severity>

<ad:AlertPriority>399</ad:AlertPriority>

<ad:AlertDetails>

<ad:AlertDetailsMarkerColor>Black</ad:AlertDetailsMarkerColor>

<ad:AlertDetailsConsumableTypeEnum>inkCartridge</ad:AlertDetailsConsumableTypeEnum>

<ad:AlertDetailsMarkerLocation>1</ad:AlertDetailsMarkerLocation>

<ad:AlertDetailsUserAction>acknowledgeConsumableState</ad:AlertDetailsUserAction>

</ad:AlertDetails>

<dd:ResourceURI>/DevMgmt/ConsumableConfigDyn.xml</dd:ResourceURI>

<dd:ResourceType>ledm:hpLedmConsumableConfigDyn</dd:ResourceType>

</psdyn:Alert>

</psdyn:AlertTable>

</psdyn:ProductStatusDyn>

can you please provide all the XML files and the logs?
I will need it to to reproduce the issue

Thanks

Tried again today with another name - worked! Thanks for all your work!

can i use the component work on a printer that is connected through a system or a router?

Not sure what do you mean, can you elaborate?