seydx / homebridge-printer

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

Trouble with Switch #19

Open LadisM opened 2 years ago

LadisM commented 2 years ago

Hello,

I have a trouble with SWITCH. I tried address from DNS checker like http://NPI029ABF.local./hp/device/info_config_AirPrint.html?tab=Networking&menu=AirPrintStatus but it not reacheble .. work only ipp://npi029abf.local. or http://192.168.7.35:631

but If I click on switch in HK I see this log in Homebridge UI:

[30. 12. 2021 20:59:06] [PrinterPlatform] HP LaserJet Pro Switch: Switching state not supported yet

sensor still repeat msg:

[30. 12. 2021 20:58:37] [PrinterPlatform] HP LaserJet Pro Sensor: {"version":"2.0","statusCode":"successful-ok","id":76796492,"operation-attributes-tag":{"attributes-charset":"utf-8","attributes-natural-language":"en"},"printer-attributes-tag":{"printer-make-and-model":"HP LaserJet 200 colorMFP M276n","printer-state":"idle","printer-is-accepting-jobs":true,"queued-job-count":0,"printer-up-time":1650575,"marker-names":["Cyan Cartridge HP CF211A","Magenta Cartridge HP CF213A","Yellow Cartridge HP CF212A","Black Cartridge HP CF210X"],"marker-levels":[34,39,26,90]}}

[30. 12. 2021 20:58:51] [PrinterPlatform] HP LaserJet Pro Sensor: {"version":"2.0","statusCode":"successful-ok","id":69278195,"operation-attributes-tag":{"attributes-charset":"utf-8","attributes-natural-language":"en"},"printer-attributes-tag":{"printer-make-and-model":"HP LaserJet 200 colorMFP M276n","printer-state":"idle","printer-is-accepting-jobs":true,"queued-job-count":0,"printer-up-time":1650588,"marker-names":["Cyan Cartridge HP CF211A","Magenta Cartridge HP CF213A","Yellow Cartridge HP CF212A","Black Cartridge HP CF210X"],"marker-levels":[34,39,26,90]}}

[30. 12. 2021 20:58:54] [Homebridge UI] Starting terminal session

[30. 12. 2021 20:59:04] [PrinterPlatform] HP LaserJet Pro Sensor: {"version":"2.0","statusCode":"successful-ok","id":27329502,"operation-attributes-tag":{"attributes-charset":"utf-8","attributes-natural-language":"en"},"printer-attributes-tag":{"printer-make-and-model":"HP LaserJet 200 colorMFP M276n","printer-state":"idle","printer-is-accepting-jobs":true,"queued-job-count":0,"printer-up-time":1650602,"marker-names":["Cyan Cartridge HP CF211A","Magenta Cartridge HP CF213A","Yellow Cartridge HP CF212A","Black Cartridge HP CF210X"],"marker-levels":[34,39,26,90]}}

Can you help me pls?

Printer Config:

"name": "PrinterPlatform", "debug": true, "printer": [ { "name": "HP LaserJet Pro", "address": "ipp://npi029abf.local.", "polling": 10, "marker": true, "switchType": "SWITCH", "manufacturer": "HP LaserJet", "model": "M276n", "serialNumber": "CNF8GBV1NK"