Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HP 7830 #11

Closed
sagitt opened this issue Feb 9, 2020 · 27 comments
Closed

HP 7830 #11

sagitt opened this issue Feb 9, 2020 · 27 comments

Comments

@sagitt
Copy link

sagitt commented Feb 9, 2020

Hi,
i added:

hpprinter:
host: 192.168.0.XX
name: 'HP'

won't work :( nothing happen after a restart

@kaosmagix
Copy link

kaosmagix commented Feb 9, 2020

Also see issue #9. This seems to be the same issue

@sagitt
Copy link
Author

sagitt commented Feb 9, 2020

my home assistant start
but i can't see anything of printer.

@elad-bar
Copy link
Owner

Did you set it up using YAML or Configuration -> Integrations?

@sagitt
Copy link
Author

sagitt commented Feb 10, 2020

Yaml

@elad-bar
Copy link
Owner

YAML is not supported with new version, informarion available in the readme file
You can readd it by removing from the YAML and add it from Configuration-> Integrations

@sagitt
Copy link
Author

sagitt commented Feb 10, 2020 via email

@sagitt
Copy link
Author

sagitt commented Feb 10, 2020

YAML is not supported with new version, informarion available in the readme file
You can readd it by removing from the YAML and add it from Configuration-> Integrations

I installed from HACS but can't add from integrations panel, see here

Schermata 2020-02-10 alle 18 13 44

@elad-bar
Copy link
Owner

Please check with latest version (readme updated)

@sagitt
Copy link
Author

sagitt commented Feb 18, 2020

this is my file. but your plugin stop my knx setup update during startup. i found the problem only after the printer setup.

and if i use the service to save data, nothing happen.

hp7830.xml.txt

@elad-bar
Copy link
Owner

Please provide all files created by running the following service:
Services:
hpprinter.save_debug_data
Stores the XML and JSON of each request and final JSON to files, Path in CONFIG_PATH/*

thanks

@sagitt
Copy link
Author

sagitt commented Feb 19, 2020

Please provide all files created by running the following service:
Services:
hpprinter.save_debug_data
Stores the XML and JSON of each request and final JSON to files, Path in CONFIG_PATH/*

thanks

Running the service nothing happen, i can’t see files... i’m running hassio, so i think it stores files in to /config/ folder

@elad-bar
Copy link
Owner

sorry, fixed the service, please update the component, restart and try again,
it supposed to generate the following files:

  • ProductUsageDyn.XML - Raw XML from HP Printer of Usage Details
  • ProductUsageDyn.json - JSON based on the Raw XML of Usage Details after transformed by the component
  • ConsumableConfigDyn.XML - Raw XML from HP Printer of consumable details
  • ConsumableConfigDyn.json - JSON based on the Raw XML of consumable details after transformed by the component
  • ProductConfigDyn.XML - Raw XML from HP Printer of Config Details
  • ProductConfigDyn.json - JSON based on the Raw XML of Config Details after transformed by the component
  • Final.json - JSON based on the 2 JSONs above, merged into simpler data structure for the HA to create sensor based on

@sagitt
Copy link
Author

sagitt commented Feb 19, 2020

Well, this. Just installed now new version, configured, restarted hass and my knx won't refresh at boot. My model is this:

https://store.hp.com/ItalyStore/Merch/Product.aspx?id=Y0G50B&opt=BHC&sel=PRN

HP7830.zip

@elad-bar
Copy link
Owner

according to the files, everything is ok,
Can you please change the logger component of home-assistant to debug and upload it?

logger:
  default: warning
  logs:
    homeassistant.core: info
    homeassistant.bootstrap: info

    snitun.utils.aiohttp_client: info
    custom_components.hpprinter: debug

In addition, please add debug log level for the KNX component you are using.

@sagitt
Copy link
Author

sagitt commented Feb 19, 2020

ok tomorrow i do this.

@sagitt
Copy link
Author

sagitt commented Feb 24, 2020

deleted log file, added this, added printer, restarted.
same problem

below my log.

logger:
  default: warning
  logs:
    homeassistant.core: info
    homeassistant.bootstrap: info

    snitun.utils.aiohttp_client: info
    custom_components.hpprinter: debug

    xknx.telegram: debug
    xknx.knx: debug

home-assistant.log

elad-bar added a commit that referenced this issue Apr 24, 2020
**Implemented enhancements:**

- Added changelog
- Added ability to configure update entities interval in seconds (Integrations -> Integration Name -> Options)  [\#31](elad-bar/ha-edgeos#31)
- Added validation to add new integration, display error in case printer is unreachable or unsupported [\#15](elad-bar/ha-edgeos#15) [\#11](elad-bar/ha-edgeos#11) 
- Moved code to new file structure
- More logs added for easier debugging
- Removed service `hpprinter.save_debug_data`
- Added option to store debug files from Integration UI -> Option (more details in README)

**Fixed bugs:**

- Fix entities / device / device's area changing names is being reset after restart [\#24](elad-bar/ha-edgeos#24) [\#28](elad-bar/ha-edgeos#28) [\#39](elad-bar/ha-edgeos#39)
- Moved [Updating 2020-04-14 09:21...] to DEBUG [\#39](elad-bar/ha-edgeos#39)
@elad-bar
Copy link
Owner

Any updates with latest version?
According to previous log, I see in it there is an issue to access the printer,
could it be too much load on your HA system that causes that issue on startup (too many connection)

Cannot retrieve data...

Please update to the latest and post the log

thanks

@sagitt
Copy link
Author

sagitt commented Apr 27, 2020

Hi! I’ll try it. I unistalled it until updates

@sagitt
Copy link
Author

sagitt commented Apr 27, 2020

Any updates with latest version?
According to previous log, I see in it there is an issue to access the printer,
could it be too much load on your HA system that causes that issue on startup (too many connection)

Cannot retrieve data...

Please update to the latest and post the log

thanks

tested. same issue.
for months no problems before last versions.

@elad-bar
Copy link
Owner

@sagitt

according to the logs you've posted 2 months ago, I see that the printer was inaccesible for the component:
INFO (MainThread) [custom_components.hpprinter.HPPrinterAPI] Cannot retrieve data (ProductUsageDyn) from printer, Error: , Line: 87

can you please try to access the printer XML API:
http://IP/DevMgmt/ProductConfigDyn.xml

if you are getting XML, please let me know,
If you can't access it the printer is not supported by the component.

thanks

@sagitt
Copy link
Author

sagitt commented May 29, 2020

@sagitt

according to the logs you've posted 2 months ago, I see that the printer was inaccesible for the component:
INFO (MainThread) [custom_components.hpprinter.HPPrinterAPI] Cannot retrieve data (ProductUsageDyn) from printer, Error: , Line: 87

can you please try to access the printer XML API:
http://IP/DevMgmt/ProductConfigDyn.xml

if you are getting XML, please let me know,
If you can't access it the printer is not supported by the component.

thanks

I can access with your link

@elad-bar
Copy link
Owner

Sorry for the question... did change IP to the ip of the printer?
In case you did and it's unreachable, component will not aupport your printer

Thanks

@sagitt
Copy link
Author

sagitt commented May 29, 2020

Sorry for the question... did change IP to the ip of the printer?
In case you did and it's unreachable, component will not aupport your printer

Thanks

The ip are the same from 1 year, when i installed it. Static IP. Your link works fine changing “IP”, and the printer component worked fine before a specific update. Anway an error on a component shoud not damage other integrations like knx, because it lock all integration that use knx entity status, so i think hp printer component need more conditions/checks to avoid this problem. Other custom components not do this even in error.

For now, whithout other chances, i’m using IPP detault integration.

@elad-bar
Copy link
Owner

That's weird since the only thing added over the time was configuration through UI and more details,
The only thing I can think of is too many connections compared to the machine capable of,
It's running same as other integration with dedicated namespace with HA data,
Since I don't have KNX I cannot redproduce it ( unless you are familiar with good emulator to do that).
Will leave the issue topic and will try to find a solution

Thanks

@elad-bar
Copy link
Owner

@sagitt, I released new version that supposed to fix it, please let me know if it still releant and working for you

thanks!

@sagitt
Copy link
Author

sagitt commented Jul 21, 2020

@sagitt, I released new version that supposed to fix it, please let me know if it still releant and working for you

thanks!

tested. for now no problem.... i'll test it some days...

@sagitt
Copy link
Author

sagitt commented Jul 31, 2020

No problems, with 0.113 too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants