elad-bar / ha-hpprinter

HP Printer Integration
94 stars 26 forks source link

Tank ink level #117

Closed vmonkey closed 3 months ago

vmonkey commented 5 months ago

Hello,

first thanks for excellent integration and the work on the V2 version!

In the beta 5 version, I do not see any sensors related to the tank ink. This is available in V1.

Please let me know if there is anything else needed to provide.

M. config_entry-hpprinter-7639336411962902859af7c06dad6eb2.json

umarino commented 4 months ago

Hi all, after the integration update to the new version, i have the same problem:

"HP Printer Inkcartridge Black Not Available" "HP Printer Inkcartridge CyanMagentaYellow Not Available" "This entity is no longer provided by the hpprinter integration. If the entity is no longer used, delete it in settings."

Temporarily I solved the problem using "Internet Printing Protocol (IPP)" Integration.

ncodee commented 4 months ago

@vmonkey @umarino Reported here: https://github.com/elad-bar/ha-hpprinter/issues/111

vmonkey commented 4 months ago

Hi, is it really the same? I see ink levels, but not tank ink level. I have a tank printer and in the V1 version there used to be sensors related to ink level (which were just reporting 20% all the time), and tank ink levels, which were the actual amounts of ink in the printer. The latter is not shown in V2.

umarino commented 4 months ago

Ops, you are right, it's not the same, perhaps it's similar. Entity missing in both cases.

ccMatrix commented 4 months ago

I think it is similar since these all seem to be related to the consumables section when the addon sets up the found devices. I guess there are differences in how ink, toner etc. are represented. If the developer gets enough example XML files from the printer API it might help to make the code work better with all these variants.

elad-bar commented 4 months ago

sorry for the long waiting time... i checked the diagnostic file above, it seems that you levels are being collected and available for presentation, as part of the refactor, integration now holds much more devices / entities, names also changed and that could lead for situation you cannot find your entity.

can you please go to the integration page in HA, see what are the supported devices you have over there and within the consumables check what are the entities available?

example from my printer, it uses 953XL as consumables: image

entities of one of the devices: image

vmonkey commented 4 months ago

Many thanks for answer. The integration shows only the following- which is not related to tank inks, but to some virtual ink levels. Screenshot_2024-05-07-19-48-19-356_io homeassistant companion android Screenshot_2024-05-07-19-48-31-496_io homeassistant companion android Screenshot_2024-05-07-19-48-44-229_io homeassistant companion android

AnthonyBe commented 4 months ago

I'm also adapting to the changes from the v1 to v2 integration. With my HP Color LaserJet MFP M277dw, I seem to only be getting the Yellow toner cartridge data. I deleted the old v1 integration to start over, and am currently running v2.0.0b7 on HA 2024.5.2

Diagnostic file attached. config_entry-hpprinter-39ffe7dd8f6d5d8d855db435ad4911ea.json

elad-bar commented 4 months ago

fixed in v2.0.0b9, pls check and update

thanks

AnthonyBe commented 4 months ago

Thanks @elad-bar - all working now!