home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
69.82k stars 28.95k forks source link

IPP is not discovered #33618

Closed escoand closed 4 years ago

escoand commented 4 years ago

The problem

My IPP printer HP Color LaserJet MFP M277dw is not getting discovered as config entry.

Environment

Problem-relevant configuration.yaml

Traceback/Error logs

2020-04-04 07:13:29 DEBUG (zeroconf-ServiceBrowser__ipps._tcp.local.) [homeassistant.components.zeroconf] Discovered new device HP Color LaserJet MFP M277dw (CB052C)._ipps._tcp.local. {'host': '192.168.1.26', 'port': 443, 'hostname': 'NPICB052C.local.', 'type': '_ipps._tcp.local.', 'name': 'HP Color LaserJet MFP M277dw (CB052C)._ipps._tcp.local.', 'properties': {'_raw': {'txtvers': b'1', 'qtotal': b'1', 'pdl': b'image/urf,application/pdf,application/postscript,application/vnd.hp-PCL,application/vnd.hp-PCLXL,application/PCLm,application/octet-stream,image/jpeg', 'rp': b'ipp/print', 'URF': b'V1.4,CP99,W8,OB10,PQ3-4-5,ADOBERGB24,DEVRGB24,DEVW8,SRGB24,DM1,IS1,MT1-2-3-5-12,RS600', 'ty': b'HP Color LaserJet MFP M277dw', 'product': b'(HP Color LaserJet MFP M277dw)', 'priority': b'10', 'adminurl': b'https://NPICB052C.local./hp/device/info_config_AirPrint.html?tab=Networking&menu=AirPrintStatus', 'note': b'', 'Color': b'T', 'Duplex': b'T', 'Scan': b'T', 'Fax': b'T', 'UUID': b'564e4238-4836-344b-474d-480fcfcb052c', 'kind': b'document,envelope,photo', 'PaperMax': b'legal-A4', 'TLS': b'1.2', 'usb_MFG': b'Hewlett-Packard', 'usb_MDL': b'HP Color LaserJet MFP M277dw', 'mac': b'48:0f:cf:cb:05:2c', 'mopria_certified': b'1.2'}, 'txtvers': '1', 'qtotal': '1', 'pdl': 'image/urf,application/pdf,application/postscript,application/vnd.hp-PCL,application/vnd.hp-PCLXL,application/PCLm,application/octet-stream,image/jpeg', 'rp': 'ipp/print', 'URF': 'V1.4,CP99,W8,OB10,PQ3-4-5,ADOBERGB24,DEVRGB24,DEVW8,SRGB24,DM1,IS1,MT1-2-3-5-12,RS600', 'ty': 'HP Color LaserJet MFP M277dw', 'product': '(HP Color LaserJet MFP M277dw)', 'priority': '10', 'adminurl': 'https://NPICB052C.local./hp/device/info_config_AirPrint.html?tab=Networking&menu=AirPrintStatus', 'note': '', 'Color': 'T', 'Duplex': 'T', 'Scan': 'T', 'Fax': 'T', 'UUID': '564e4238-4836-344b-474d-480fcfcb052c', 'kind': 'document,envelope,photo', 'PaperMax': 'legal-A4', 'TLS': '1.2', 'usb_MFG': 'Hewlett-Packard', 'usb_MDL': 'HP Color LaserJet MFP M277dw', 'mac': '48:0f:cf:cb:05:2c', 'mopria_certified': '1.2'}}
2020-04-04 07:13:29 DEBUG (zeroconf-ServiceBrowser__ipp._tcp.local.) [homeassistant.components.zeroconf] Discovered new device HP Color LaserJet MFP M277dw (CB052C)._ipp._tcp.local. {'host': '192.168.1.26', 'port': 631, 'hostname': 'NPICB052C.local.', 'type': '_ipp._tcp.local.', 'name': 'HP Color LaserJet MFP M277dw (CB052C)._ipp._tcp.local.', 'properties': {'_raw': {'txtvers': b'1', 'qtotal': b'1', 'pdl': b'image/urf,application/pdf,application/postscript,application/vnd.hp-PCL,application/vnd.hp-PCLXL,application/PCLm,application/octet-stream,image/jpeg', 'rp': b'ipp/print', 'URF': b'V1.4,CP99,W8,OB10,PQ3-4-5,ADOBERGB24,DEVRGB24,DEVW8,SRGB24,DM1,IS1,MT1-2-3-5-12,RS600', 'ty': b'HP Color LaserJet MFP M277dw', 'product': b'(HP Color LaserJet MFP M277dw)', 'priority': b'10', 'adminurl': b'http://NPICB052C.local./hp/device/info_config_AirPrint.html?tab=Networking&menu=AirPrintStatus', 'note': b'', 'Color': b'T', 'Duplex': b'T', 'Scan': b'T', 'Fax': b'T', 'UUID': b'564e4238-4836-344b-474d-480fcfcb052c', 'kind': b'document,envelope,photo', 'PaperMax': b'legal-A4', 'TLS': b'1.2', 'usb_MFG': b'Hewlett-Packard', 'usb_MDL': b'HP Color LaserJet MFP M277dw', 'mac': b'48:0f:cf:cb:05:2c', 'mopria_certified': b'1.2'}, 'txtvers': '1', 'qtotal': '1', 'pdl': 'image/urf,application/pdf,application/postscript,application/vnd.hp-PCL,application/vnd.hp-PCLXL,application/PCLm,application/octet-stream,image/jpeg', 'rp': 'ipp/print', 'URF': 'V1.4,CP99,W8,OB10,PQ3-4-5,ADOBERGB24,DEVRGB24,DEVW8,SRGB24,DM1,IS1,MT1-2-3-5-12,RS600', 'ty': 'HP Color LaserJet MFP M277dw', 'product': '(HP Color LaserJet MFP M277dw)', 'priority': '10', 'adminurl': 'http://NPICB052C.local./hp/device/info_config_AirPrint.html?tab=Networking&menu=AirPrintStatus', 'note': '', 'Color': 'T', 'Duplex': 'T', 'Scan': 'T', 'Fax': 'T', 'UUID': '564e4238-4836-344b-474d-480fcfcb052c', 'kind': 'document,envelope,photo', 'PaperMax': 'legal-A4', 'TLS': '1.2', 'usb_MFG': 'Hewlett-Packard', 'usb_MDL': 'HP Color LaserJet MFP M277dw', 'mac': '48:0f:cf:cb:05:2c', 'mopria_certified': '1.2'}}
2020-04-04 07:13:29 INFO (SyncWorker_9) [homeassistant.loader] Loaded ipp from homeassistant.components.ipp

Nothing else to IPP.

Additional information

Adding the printer manually works without any problems.

probot-home-assistant[bot] commented 4 years ago

Hey there @ctalkington, mind taking a look at this issue as its been labeled with a integration (ipp) you are listed as a codeowner for? Thanks!

frenck commented 4 years ago

This is probably fixed by #33610, which should be in the next beta.

escoand commented 4 years ago

@frenck Working with 0.108.0.dev20200405. Thanks

escoand commented 4 years ago

But an other small issue is maybe the naming of the discovered device: grafik Yes, this is the hostname, but maybe the printer name is more interesting: grafik

bdraco commented 4 years ago

@escoand Since the name issue is a different problem, would you please open a new issue and fill out the template so the author has enough information to track this down?

A separate issue will help others who have the same problem find the information and makes it much easier to track as we usually link the PR to the issue that its fixing.