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

Printer does not appear in Integrations #7

Closed
brianhanifin opened this issue Feb 7, 2020 · 15 comments
Closed

Printer does not appear in Integrations #7

brianhanifin opened this issue Feb 7, 2020 · 15 comments

Comments

@brianhanifin
Copy link

After an install and restart of version a7fbebe I am seeing "This integration has no devices." I added the IP address in the Host field, I double checked that the IP address is still assigned to the printer, and that the printer is on (it has been for 30 minutes now).

I did change the default name from "HP Printer" to "Color Laserjet".

@elad-bar
Copy link
Owner

elad-bar commented Feb 7, 2020

I'm not working with entity yet in that version, still requires some work, but will do it soon,
it should be available as state (developer --> states)

@brianhanifin
Copy link
Author

Oh... haha. I can confirm the expected entities exist on the developer states page. Thank you. This is coming along nicely!

I tried in the Configuration UI under Devices, and Entities. I assumed if they didn't show up in those two places, they must not exist.

@firestrife23
Copy link

same issue here with version: a7fbebe.

@elad-bar
Copy link
Owner

elad-bar commented Feb 7, 2020

can you check again? I push another version with the missing file
thanks

@firestrife23
Copy link

I see it now under integration, nice!

@brianhanifin
Copy link
Author

@firestrife23, My understanding is that @elad-bar hasn't written the code to display the device entities on the "HP Printer" Integration page yet. You can add the entities and they will appear in Home Assistant, but you have to go to Developer Tools > States to see them.

@poudenes
Copy link

poudenes commented Feb 9, 2020

I add the add-on, restart HA. Add the integration. Was successful.
Then in developer tool I see total 8 entities created. So thats ok. Its not really needed to see them in the integration part... will be nice but if the add-on is working thats ok.

          - binary_sensor.hp_printer_status
          - sensor.hp_printer_ink_black
          - sensor.hp_printer_ink_cyan
          - sensor.hp_printer_ink_magenta
          - sensor.hp_printer_ink_yellow
          - sensor.hp_printer_printer
          - sensor.hp_printer_printhead_cmyk
          - sensor.hp_printer_scanner

@BartEngelen
Copy link

I add the add-on, restart HA. Add the integration. Was successful.
Then in developer tool I only see one entity that is created:

  • binary_sensor.hp_printer_status --> state is off
    The printer is online but I don't see the other entities.
    What can be wrong ?

@elad-bar
Copy link
Owner

elad-bar commented Feb 9, 2020

Integration creates states only now, will work to change it soon,
For now you can access the states from Developer --> States (search sensor by name of the printer)

@BartEngelen
Copy link

BartEngelen commented Feb 9, 2020

Hello,
I only see this:
image
I have a HP Photosmart C4500 Series

@elad-bar
Copy link
Owner

Not sure the printer supports the API the component is using, Can you access the XML that generates the data:
http://IP/DevMgmt/ProductStatusDyn.xml

@BartEngelen
Copy link

I cannot access the XML. (404 page not found)

@elad-bar
Copy link
Owner

In case you cannot access the XML, component doesn't support your printer

elad-bar added a commit that referenced this issue Feb 12, 2020
#8 - added icon per sensor
#7 - support entities in the integration section
#4 - load is being done after 5 seconds of loading the custom component, running in async mode
@elad-bar
Copy link
Owner

@brianhanifin, can you please check that now it works for you with the entities?
thanks

@elad-bar
Copy link
Owner

@brianhanifin, did you manage to check it?

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

5 participants