elad-bar / ha-hpprinter

HP Printer Integration
88 stars 23 forks source link

Error 404 http://192.168.10.247:80/DevMgmt/NetAppsSecureDyn.xml after upgrading to v2.0.0b5 #121

Open Stephens-ely opened 3 weeks ago

Stephens-ely commented 3 weeks ago

Hi there

I have a HP Officejet 7110 which has been working well with the v1.0.12 integration but upon upgrading to v2.0.0b5, the integration no longer works/loads and I see several errors in the HA logs.

2024-05-06 14:09:18.351 ERROR (MainThread) [custom_components.hpprinter.managers.rest_api] Failed to get response from /DevMgmt/NetAppsSecureDyn.xml, Error: 404, message='Not Found', url=URL('http://192.168.10.247:80/DevMgmt/NetAppsSecureDyn.xml'), Line: 328 2024-05-06 14:09:18.476 ERROR (MainThread) [homeassistant.util.logging] Exception in _on_device_discovered when dispatching 'signal_hpprinter_device_discovered': ('9080b9f7c99e430ead522cb1420efe69', 'Consumable.0', {'consumable_label_code': 'M', 'consumable_life_state_consumable_state': 'low', 'consumable_life_state_brand': 'HP', 'consumable_station': '0', 'consumable_type_enum': 'ink', 'capacity_max_capacity': '125', 'consumable_percentage_level_remaining': '20', 'consumable_selectibility_number': '933XL', 'serial_number': '494054353', 'product_number': 'CN055A', 'warranty_expiration_date': '2019-06-11', 'consumable_unique_id': '00000000000000004433ef047104c9ab'}, {'device_type': 'Consumable', 'properties': {'consumable_label_code': {'path': 'ConsumableLabelCode'}, 'consumable_life_state_consumable_state': {'path': 'ConsumableLifeState.ConsumableState', 'platform': 'binary_sensor', 'on_values': ['ok', 'newGenuineHP'], 'device_class': 'plug'}, 'consumable_life_state_brand': {'path': 'ConsumableLifeState.Brand'}, 'consumable_station': {'path': 'ConsumableStation', 'platform': 'sensor'}, 'consumable_type_enum': {'path': 'ConsumableTypeEnum', 'platform': 'sensor', 'device_class': 'enum', 'options': ['ink', 'inkCartridge', 'printhead', 'toner']}, 'installation_date': {'path': 'Installation.Date', 'platform': 'sensor', 'device_class': 'date'}, 'capacity_max_capacity': {'path': 'Capacity.MaxCapacity'}, 'consumable_percentage_level_remaining': {'path': 'ConsumablePercentageLevelRemaining', 'platform': 'sensor', 'unit_of_measurement': '%', 'exclude': {'consumable_type_enum': 'printhead'}}, 'consumable_selectibility_number': {'path': 'ConsumableSelectibilityNumber'}, 'manufacturer_name': {'path': 'Manufacturer.Name'}, 'manufacture_at': {'path': 'Manufacturer.Date', 'platform': 'sensor', 'device_class': 'date', 'exclude': {'consumable_type_enum': 'printhead'}}, 'serial_number': {'path': 'SerialNumber'}, 'product_number': {'path': 'ProductNumber'}, 'warranty_expiration_date': {'path': 'Warranty.ExpirationDate', 'platform': 'sensor', 'device_class': 'date', 'exclude': {'consumable_type_enum': 'printhead'}}, 'consumable_unique_id': {'path': 'ConsumableUniqueID'}}})

Is this known issue and if so, is there a work around?

HA Core: 2024.5.1 HA Supervised: 2024.04.4 Frontend: 20240501.0 Current Integration: v2.0.0b5 Previous Integration: v1.0.12

elad-bar commented 3 weeks ago

released v2.0.0b6 with a fix for the issue, can you please check and report back?

thanks

Stephens-ely commented 3 weeks ago

Away from home at mo so will give it a go tomorrow. Thanks.

elad-bar commented 2 weeks ago

any updates?

thanks