Custom Component - HP Printer

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?

I have a printer Deskjet GT 5810. And connect to a desktop. But when i enter the ip of my desktop in IPP it doesnt recognize the printer. How can i integrate it? Or is it even possible?

This integration is for printers with XML web service, IPP integration available in HA out of the box,
The difference is the this integration also provide details about scanner and copier on top of the printer

Your printer doesn’t appear to have any network connectivity?

No it doesnt

then it won’t be compatible if it can’t be accessed directly…

Hi,
rookie question: I’ve installed component through HACS (v1.0.0) but no where I can see the box with option to insert printer IP’s address (not in configuration -> integration).

Verified that printer “HP laserjet Pro MFP M26” has XML API and other XML responses.

What am I not doing here?

Thanks

Hi Elad,

I asked this long time ago :slight_smile: but here it is again

Can I know what is the printer status? I want to be able to know when printer start printing and when it has finished. Also will be nice to know if there is any error.

Do you need any information from me which can help to add it?

<psdyn:Status>
<pscat:StatusCategory>inPowerSave</pscat:StatusCategory>
<locid:StringId>65640</locid:StringId>
</psdyn:Status>
<psdyn:Status>
<pscat:StatusCategory>ready</pscat:StatusCategory>
<locid:StringId>65638</locid:StringId>
</psdyn:Status>