Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sensor NA NA NA #10

Closed
NickSalacious opened this issue Feb 9, 2020 · 14 comments
Closed

Sensor NA NA NA #10

NickSalacious opened this issue Feb 9, 2020 · 14 comments

Comments

@NickSalacious
Copy link

I've got it all setup and the page and binary sensors are working, but this is a monochrome printer and the ink levels are not showing. Attached is the reporting sensors and errors, and the xml files. Any thoughts?

errors
states
ProductUsageDyn.txt
ProductStatusDyn.txt

@elad-bar
Copy link
Owner

thanks, will try to reproduce it locally and will fix the issue over the weekend

@elad-bar
Copy link
Owner

can you please provide the ConsumableConfigDyn.xml to understand what is the issue with that toner?

thanks

@gelokatil
Copy link

I have the same issue with HP LaserJet Pro MFP M26nw also is monochrome printer an ink levels are not showing.
imagen
imagen

I've attach my ConsumableConfigDyn.xml

ConsumableConfigDyn.txt

@anybody84
Copy link

Same issue.
My xml here

@elad-bar
Copy link
Owner

Please provide all files created by running the following service:
Services:
hpprinter.save_debug_data
Stores the XML and JSON of each request and final JSON to files, Path in CONFIG_PATH/*

thanks

@anybody84
Copy link

@elad-bar, unfortunatelly there are no files created in my config path. Executing service hpprinter.save_debug_data does not create anything. I checked logs the getting this:

Failed to set printer consumable usage data (Drukarka HP @172.168.0.114), Error: 'str' object has no attribute 'get', Line: 186

And this:

Failed to set printer consumable data (Drukarka HP @172.168.0.114), Error: 'str' object has no attribute 'get', Line: 225

Not sure if this is related to the entity or to the service. Is there any other way to provide you with the data you need?

@elad-bar
Copy link
Owner

sorry, fixed the service, please update the component, restart and try again,
it supposed to generate the following files:

  • ProductUsageDyn.XML - Raw XML from HP Printer of Usage Details
  • ProductUsageDyn.json - JSON based on the Raw XML of Usage Details after transformed by the component
  • ConsumableConfigDyn.XML - Raw XML from HP Printer of consumable details
  • ConsumableConfigDyn.json - JSON based on the Raw XML of consumable details after transformed by the component
  • ProductConfigDyn.XML - Raw XML from HP Printer of Config Details
  • ProductConfigDyn.json - JSON based on the Raw XML of Config Details after transformed by the component
  • Final.json - JSON based on the 2 JSONs above, merged into simpler data structure for the HA to create sensor based on

@anybody84
Copy link

Yes, now it works. You can download these files from here.

@elad-bar
Copy link
Owner

Can you share if now it works?

@anybody84
Copy link

@elad-bar, yes, for me it works. Thanks a lot!

image

@elad-bar
Copy link
Owner

great! thanks

@gelokatil
Copy link

yes, it works perfect. Thanks

@NickSalacious
Copy link
Author

Works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants