elad-bar / ha-hpprinter

HP Printer Integration
88 stars 23 forks source link

Error with: HP Color LaserJet MFP M277dw #114

Closed cokeman0 closed 2 weeks ago

cokeman0 commented 4 weeks ago

Hi,

After upgrading from 1 to 2.0b5

I lave lost my toner status, it now only reports back on yellow, cyan, magenta and black are missing

I'm also missing the printer connected image

ccMatrix commented 4 weeks ago

Might be similar to my issue in #113. Do you also have such error entries in your logs?

elad-bar commented 4 weeks ago

Logs with debug level pls

cokeman0 commented 4 weeks ago

Can't find it in the logs, but also have not setup debug level

elad-bar commented 4 weeks ago

You can click on emable debug logs from ha to enable it

elad-bar commented 4 weeks ago

Screenshot_20240503_222844_Home Assistant

cokeman0 commented 4 weeks ago

Looks fine, but still missing the toner level and printer status

2024-05-03 21:30:32.056 DEBUG (MainThread) [custom_components.hpprinter.managers.ha_coordinator] Initializing coordinator 2024-05-03 21:30:32.056 INFO (MainThread) [custom_components.hpprinter.managers.ha_coordinator] Start loading hpprinter integration, Entry ID: b433248c01ed48a80d84291055cc27cf 2024-05-03 21:30:32.120 DEBUG (MainThread) [custom_components.hpprinter.managers.rest_api] Request to http://192.168.0.139:80/DevMgmt/ProductConfigDyn.xml 2024-05-03 21:30:32.188 DEBUG (MainThread) [custom_components.hpprinter.managers.rest_api] Request to http://192.168.0.139:80/DevMgmt/ConsumableConfigDyn.xml 2024-05-03 21:30:32.217 DEBUG (MainThread) [custom_components.hpprinter.managers.rest_api] Request to http://192.168.0.139:80/DevMgmt/ProductUsageDyn.xml 2024-05-03 21:30:32.239 DEBUG (MainThread) [custom_components.hpprinter.managers.rest_api] Request to http://192.168.0.139:80/IoMgmt/Adapters 2024-05-03 21:30:32.301 DEBUG (MainThread) [custom_components.hpprinter.managers.rest_api] Request to http://192.168.0.139:80/ePrint/ePrintConfigDyn.xml 2024-05-03 21:30:32.363 DEBUG (MainThread) [custom_components.hpprinter.managers.rest_api] Request to http://192.168.0.139:80/DevMgmt/NetAppsSecureDyn.xml 2024-05-03 21:30:32.364 DEBUG (MainThread) [custom_components.hpprinter.common.base_entity] Setting up sensor 0 entities, Keys: 2024-05-03 21:30:32.364 DEBUG (MainThread) [custom_components.hpprinter.managers.ha_config_manager] Translations requested, Key: component.hpprinter.entity.binary_sensor.registration_state.name, Entity: registration_state, Value: ePrint Registered 2024-05-03 21:30:32.364 DEBUG (MainThread) [custom_components.hpprinter.common.base_entity] Setting up binary_sensor 1 entities, Keys: hpprinter_main_binary_sensor_registration_state 2024-05-03 21:30:32.364 DEBUG (MainThread) [custom_components.hpprinter.managers.ha_coordinator] Finished fetching HP Printer data in 0.000 seconds (success: True) 2024-05-03 21:30:32.365 DEBUG (MainThread) [custom_components.hpprinter.managers.ha_config_manager] Translations requested, Key: component.hpprinter.entity.sensor.consumable_type_enum.name, Entity: consumable_type_enum, Value: Type 2024-05-03 21:30:32.365 DEBUG (MainThread) [custom_components.hpprinter.managers.ha_config_manager] Translations requested, Key: component.hpprinter.entity.sensor.installation_date.name, Entity: installation_date, Value: Installation Date 2024-05-03 21:30:32.366 DEBUG (MainThread) [custom_components.hpprinter.managers.ha_config_manager] Translations requested, Key: component.hpprinter.entity.sensor.consumable_percentage_level_remaining.name, Entity: consumable_percentage_level_remaining, Value: Level 2024-05-03 21:30:32.366 DEBUG (MainThread) [custom_components.hpprinter.managers.ha_config_manager] Translations requested, Key: component.hpprinter.entity.sensor.manufacture_at.name, Entity: manufacture_at, Value: Manufacture Date 2024-05-03 21:30:32.366 DEBUG (MainThread) [custom_components.hpprinter.managers.ha_config_manager] Translations requested, Key: component.hpprinter.entity.sensor.estimated_pages_remaining.name, Entity: estimated_pages_remaining, Value: Remaining 2024-05-03 21:30:32.366 DEBUG (MainThread) [custom_components.hpprinter.common.base_entity] Setting up sensor 5 entities, Keys: hpprinter_consumable_none_sensor_consumable_type_enum, hpprinter_consumable_none_sensor_installation_date, hpprinter_consumable_none_sensor_consumable_percentage_level_remaining, hpprinter_consumable_none_sensor_manufacture_at, hpprinter_consumable_none_sensor_estimated_pages_remaining 2024-05-03 21:30:32.368 DEBUG (MainThread) [custom_components.hpprinter.managers.ha_config_manager] Translations requested, Key: component.hpprinter.entity.binary_sensor.consumable_life_state_consumable_state.name, Entity: consumable_life_state_consumable_state, Value: Status 2024-05-03 21:30:32.368 DEBUG (MainThread) [custom_components.hpprinter.common.base_entity] Setting up binary_sensor 1 entities, Keys: hpprinter_consumable_none_binary_sensor_consumable_life_state_consumable_state 2024-05-03 21:30:32.368 DEBUG (MainThread) [custom_components.hpprinter.managers.ha_config_manager] Translations requested, Key: component.hpprinter.entity.sensor.monochrome_impressions.name, Entity: monochrome_impressions, Value: Total black-and-white pages 2024-05-03 21:30:32.368 DEBUG (MainThread) [custom_components.hpprinter.managers.ha_config_manager] Translations requested, Key: component.hpprinter.entity.sensor.color_impressions.name, Entity: color_impressions, Value: Total color pages 2024-05-03 21:30:32.368 DEBUG (MainThread) [custom_components.hpprinter.managers.ha_config_manager] Translations requested, Key: component.hpprinter.entity.sensor.mispick_events.name, Entity: mispick_events, Value: Total miss picks 2024-05-03 21:30:32.369 DEBUG (MainThread) [custom_components.hpprinter.common.base_entity] Setting up sensor 3 entities, Keys: hpprinter_printer_sensor_monochrome_impressions, hpprinter_printer_sensor_color_impressions, hpprinter_printer_sensor_mispick_events 2024-05-03 21:30:32.370 DEBUG (MainThread) [custom_components.hpprinter.common.base_entity] Setting up binary_sensor 0 entities, Keys: 2024-05-03 21:30:32.370 DEBUG (MainThread) [custom_components.hpprinter.managers.ha_config_manager] Translations requested, Key: component.hpprinter.entity.sensor.flatbed_images.name, Entity: flatbed_images, Value: Total pages from scanner glass 2024-05-03 21:30:32.370 DEBUG (MainThread) [custom_components.hpprinter.managers.ha_config_manager] Translations requested, Key: component.hpprinter.entity.sensor.jam_events.name, Entity: jam_events, Value: Total jams 2024-05-03 21:30:32.370 DEBUG (MainThread) [custom_components.hpprinter.common.base_entity] Setting up sensor 2 entities, Keys: hpprinter_scanner_sensor_flatbed_images, hpprinter_scanner_sensor_jam_events 2024-05-03 21:30:32.377 DEBUG (MainThread) [custom_components.hpprinter.common.base_entity] Setting up binary_sensor 0 entities, Keys: 2024-05-03 21:30:32.377 DEBUG (MainThread) [custom_components.hpprinter.managers.ha_config_manager] Translations requested, Key: component.hpprinter.entity.sensor.adf_images.name, Entity: adf_images, Value: Total pages from ADF 2024-05-03 21:30:32.377 DEBUG (MainThread) [custom_components.hpprinter.managers.ha_config_manager] Translations requested, Key: component.hpprinter.entity.sensor.flatbed_images.name, Entity: flatbed_images, Value: Total pages from scanner glass 2024-05-03 21:30:32.377 DEBUG (MainThread) [custom_components.hpprinter.managers.ha_config_manager] Translations requested, Key: component.hpprinter.entity.sensor.monochrome_impressions.name, Entity: monochrome_impressions, Value: Total black-and-white pages 2024-05-03 21:30:32.377 DEBUG (MainThread) [custom_components.hpprinter.managers.ha_config_manager] Translations requested, Key: component.hpprinter.entity.sensor.color_impressions.name, Entity: color_impressions, Value: Total color pages 2024-05-03 21:30:32.377 DEBUG (MainThread) [custom_components.hpprinter.common.base_entity] Setting up sensor 4 entities, Keys: hpprinter_copy_sensor_adf_images, hpprinter_copy_sensor_flatbed_images, hpprinter_copy_sensor_monochrome_impressions, hpprinter_copy_sensor_color_impressions 2024-05-03 21:30:32.379 DEBUG (MainThread) [custom_components.hpprinter.common.base_entity] Setting up binary_sensor 0 entities, Keys: 2024-05-03 21:30:32.379 INFO (MainThread) [custom_components.hpprinter.managers.rest_api] No support for prefetch endpoint, 6/6 Endpoints found 2024-05-03 21:30:32.432 DEBUG (MainThread) [custom_components.hpprinter.managers.rest_api] Request to http://192.168.0.139:80/DevMgmt/ProductConfigDyn.xml 2024-05-03 21:30:32.442 DEBUG (MainThread) [custom_components.hpprinter.managers.rest_api] Request to http://192.168.0.139:80/DevMgmt/ProductConfigDyn.xml 2024-05-03 21:30:32.460 DEBUG (MainThread) [custom_components.hpprinter.managers.rest_api] Request to http://192.168.0.139:80/DevMgmt/ConsumableConfigDyn.xml 2024-05-03 21:30:32.483 DEBUG (MainThread) [custom_components.hpprinter.managers.rest_api] Request to http://192.168.0.139:80/DevMgmt/ConsumableConfigDyn.xml 2024-05-03 21:30:32.507 DEBUG (MainThread) [custom_components.hpprinter.managers.rest_api] Request to http://192.168.0.139:80/DevMgmt/ProductUsageDyn.xml 2024-05-03 21:30:32.550 DEBUG (MainThread) [custom_components.hpprinter.managers.rest_api] Request to http://192.168.0.139:80/IoMgmt/Adapters 2024-05-03 21:30:32.593 DEBUG (MainThread) [custom_components.hpprinter.managers.rest_api] Request to http://192.168.0.139:80/DevMgmt/ProductUsageDyn.xml 2024-05-03 21:30:32.615 DEBUG (MainThread) [custom_components.hpprinter.managers.rest_api] Request to http://192.168.0.139:80/IoMgmt/Adapters 2024-05-03 21:30:32.621 DEBUG (MainThread) [custom_components.hpprinter.managers.rest_api] Request to http://192.168.0.139:80/ePrint/ePrintConfigDyn.xml 2024-05-03 21:30:32.677 DEBUG (MainThread) [custom_components.hpprinter.managers.rest_api] Request to http://192.168.0.139:80/ePrint/ePrintConfigDyn.xml 2024-05-03 21:30:32.697 DEBUG (MainThread) [custom_components.hpprinter.managers.rest_api] Request to http://192.168.0.139:80/DevMgmt/NetAppsSecureDyn.xml 2024-05-03 21:30:32.698 DEBUG (MainThread) [custom_components.hpprinter.managers.ha_coordinator] Finished fetching HP Printer data in 0.316 seconds (success: True) 2024-05-03 21:30:32.739 DEBUG (MainThread) [custom_components.hpprinter.managers.rest_api] Request to http://192.168.0.139:80/DevMgmt/NetAppsSecureDyn.xml 2024-05-03 21:30:32.740 DEBUG (MainThread) [custom_components.hpprinter.managers.ha_coordinator] Finished fetching HP Printer data in 0.361 seconds (success: True) 2024-05-03 21:30:32.741 INFO (MainThread) [custom_components.hpprinter] Finished loading integration

nicelake commented 4 weeks ago

I have the same issue, only yellow toner. My printer is M252dw. image

mamrai1 commented 3 weeks ago

Same problem with CM1415fw

elad-bar commented 3 weeks ago

please provide diagnostic file

thanks

elad-bar commented 3 weeks ago

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

thanks

cokeman0 commented 3 weeks ago

Sorry, still the same :-(

elad-bar commented 3 weeks ago

Will need diagnostic file to understand it better

cokeman0 commented 3 weeks ago

config_entry-hpprinter-481f1920245404122a230b76e98f7d2f.json home-assistant_hpprinter_2024-05-08T06-38-26.451Z.log

elad-bar commented 2 weeks ago

fixed in v2.0.0b9, pls check and update

thanks

mamrai1 commented 2 weeks ago

It's not reporting correct remaining pages regarding Cyan and magenta toners. Also it shows all entities as devices...

elad-bar commented 2 weeks ago

Please install latest beta and provide diagnostic file

Thanks

mamrai1 commented 2 weeks ago

hpprinter-1387201100475178193e9458204a444b-HP Printer Cyan Toner-54cc7b2246c0249f6fc361511c6a4e02.json