seydx / homebridge-printer

Homebridge plugin for ipp (AirPrint) capable printer
MIT License
42 stars 4 forks source link

With which printers does the plugin work? #1

Closed Nastras closed 3 years ago

Nastras commented 3 years ago

Hello SeydX, can you tell me for which printers the plugin should work all ? For all AirPlay printers or only HP ?

I tried it with a Lexmark C3224dw. For this I have entered the IP address in Config but after adding to HK is only the bridge from the plugin is displayed no switch or sensor.

If you have a tip would be cool?

Greetings Nastra

seydx commented 3 years ago

Hello @Nastras

you need to enter the ipp address of the printer.

You can easily find the address with the following app

https://apps.apple.com/de/app/discovery-dns-sd-browser/id305441017

Connect to your WIFI, open the App, click on local and look if your printer is shown in the list.

If yes, click on your printer and copy the ipp address AND path from your printer and put it in the config

Nastras commented 3 years ago

Thanks for the quick reply. I have now read the ipp address with the app and entered this in the config. It still shows me only the bridge without devices?

D970FDF5-7402-4E51-BCD8-3826B957A385 A164CE13-2C70-4998-BECC-8FFDDBA47871 B30A50F9-8012-4406-B2BF-01CE828B73D7

seydx commented 3 years ago

@Nastras

ah it seems the example config in readme.md is wrong.

It uses "devices": [] instead of "printer": []

Change devices to printer in config.json should fix it

Nastras commented 3 years ago

I did it but now i get this:

EBB112C1-137E-448B-8D90-17B9B4B5FB84

F0DD001D-EE6F-4902-93FD-0F53737274F9

seydx commented 3 years ago

@Nastras

it seems that the ipp address/path is wrong

Is the path you entered in config from the app? Or from the example config?

You need to give the ipp path from YOUR printer. Check the above mentioned app. Open your printer and scroll down. The path should be listed there

Nastras commented 3 years ago

You were right the path was wrong. The address that is needed is the part after adminurl = xxxxxxxxxxxxxxx now it works.

adminurl = http://ET788C7710637D.local./#/Settings/Network/AirPrint

It even shows the cartridge levels which is nowhere in the plugin description. Cool work thanks!

But now I have a question after I get the 2 devices displayed.

Is it not possible to display all the data under the contact sensor so that only one device appears in Homekit?

For the display of whether the printer is online, but also a custom character would be enough what as text online or offline displays instead of a power switch? Would resources save 😁?

What do you think?

Nastras commented 3 years ago

Good morning, here is an example of how it might look 😉?

834EDB8E-1981-4CD1-BE04-B1481B1A419F

martinnock commented 3 years ago

as I had to do some research for my printer, here's the outcome, which may help a few of you

HP LaserJet P1102w (quite old ...): Address to be used is ipp://IP-ADDRRESS:631/ipp