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

Errors in Log, Possibly due to extremely low toner. #75

Open
bryeartem opened this issue Oct 15, 2021 · 3 comments
Open

Errors in Log, Possibly due to extremely low toner. #75

bryeartem opened this issue Oct 15, 2021 · 3 comments

Comments

@bryeartem
Copy link

So this is not a big deal, was just going through the logs to cleanup some errors and spotted this:

Logger: custom_components.hpprinter.api.HPPrinterAPI
Source: custom_components/hpprinter/api/HPPrinterAPI.py:244
Integration: HP Printer (documentation)
First occurred: October 14, 2021, 3:17:16 AM (3378 occurrences)
Last logged: 7:26:19 AM

Failed to extract from array AlertDetailsMarkerColor of ['Cyan', 'Yellow'], Error: string indices must be integers, Line: 222
Failed to extract from array AlertDetailsConsumableTypeEnum of ['toner', 'toner'], Error: string indices must be integers, Line: 222

My color toners are extremely low at the moment... I am not sure if that is why this is coming up. I am changing them today, so not a big deal but just wanted to mention it in case it is something that could be cleaned up as it is happening a lot (over 3,000 errors in 4-5 hours) I will update with more detailed debug logs as soon as the error occurs again. At first glance of the XML I see the cyan is showing as "-5" for the percentage remaining.. but the yellow all appears to be "0" so I'm not sure why it doesn't like it... (debug logs don't seem to provide any extra detai
ProductUsageDynwithlowetoner.txt
l)

@elad-bar
Copy link
Owner

is it still relevant with v2?

thanks

@bryeartem
Copy link
Author

My printer happens to be offline at the moment.. never reconnected after last update so I will reconnect when I get home and test it out. Lucky for us I again have extremely low toner… I swear it’s not the same toner from 3 years ago.

@elad-bar
Copy link
Owner

sorry for the super slow handling, i missed that item,
with v2 it should be solved.

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

2 participants