seydx / homebridge-printer

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

Online/Offline state not recognized #23

Open r2shyyou opened 1 year ago

r2shyyou commented 1 year ago

Hi @seydx, the switch does not seem to function based on online/offline state, whereas the contact sensor works perfectly.

I have a Canon MG4250 and the switch does not turn on when the printer is online. The contact sensor accessory correctly changes state when the printer is printing, and changes back when done printing, but the switch accessory never changes.

Thanks in advance for looking into this

R-Rennert commented 1 year ago

Hi,

Have setup for my Epson XP-445 and contact sensor and fill state of printer cartridge works correctly. Only switch doesnt show online state.

        "name": "PrinterPlatform",
        "debug": true,
        "printer": [
            {
                "name": "EPSON Print",
                "address": "http://192.168.178.30:631",
                "polling": 10,
                "marker": true,
                "switchType": "SWITCH",
                "manufacturer": "EPSON",
                "model": "XP-445"
            },
            {
                "polling": 10
            }
        ],
        "_bridge": {
            "username": "0E:B1:05:84:C7:8D",
            "port": 51187
        },
        "platform": "PrinterPlatform"
    }
RickyEnduro commented 1 year ago

I have the same issue with a different model Epson printer. Contact sensor works fine and shows when the printer is printing, however the online status is always off. Any thoughts are welcome :-)

image