seydx / homebridge-printer

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

HP printer sensor closed #17

Open swap-gore opened 3 years ago

swap-gore commented 3 years ago

Hi, I installed plugin, logs are showing successful communication with printer.

[17/04/2021, 18:10:55] [PrinterPlatform] HP DeskJet 2676 Sensor: {"version":"2.0","statusCode":"successful-ok","id":30832407,"operation-attributes-tag":{"attributes-charset":"utf-8","attributes-natural-language":"en"},"printer-attributes-tag":{"printer-make-and-model":"HP DeskJet 2600 series","printer-state":"idle","printer-is-accepting-jobs":true,"queued-job-count":0,"printer-up-time":3403}}

This is config: { "name": "PrinterPlatform", "debug": true, "printer": [ { "name": "HP DeskJet 2676", "address": "http://HP84A93EC66DAE.local./#hld-pgAirPrint", "polling": 10, "marker": false, "switchType": "SWITCH", "manufacturer": "HP", "model": "DeskJet 2676", }

But sensor shows as closed. No more information.

Screenshot 2021-04-17 at 6 12 40 PM

Same thing in Apple HomeApp.

Is it expected behaviour?

Metatropics commented 1 year ago

Having same issue. Printer comms OK but switch is off.

smonsi commented 1 year ago

Hallo, i have the same issue. Printer communication is OK in homebridge Log, but contact-sensor does not change to 'Open' State while printing. Any Ideas?

smonsi commented 1 year ago

Hallo, i have the same issue. Printer communication is OK in homebridge Log, but contact-sensor does not change to 'Open' State while printing. Any Ideas?

The reason for my problem was the state of the printer queue. If the printer is switched off via a smartplug, the printer queue is disabled. I had to re-enable the printer queue (cupsenable) after switched off. Now everything works as desired.