I get the same result. Still works great when the printer is on, but if the printer is offline and I restart HA, nothing is retained. It does show as being offline.
When you don’t restart the HA and turned off the printer, it supposed to present the latest available state.
when the printer is off and the HA is starting up, there is no way I can extract the data,
the component doesn’t support restore last state, need to find how to do that.
Ok, that functionality works perfect… So when HA is on, it’ll keep the printer status upon the printer being turned off. And it’ll keep it until HA is restarted. Hopefully you can figure out how to restore the last state as that’d be a great addition!
Has anyone this integration working with an LaserJet 200 M276nw?
It’s supported for 277/175,
To make sure it works for you, please check you are getting response by accessing the following url:
http://IP/DevMgmt/ProductStatusDyn.xml (replace ip with printer’s ip)
Thank you for your answer @bar. Can you please check my issue on github? I have attached the file there.
Looks great. I tried to turn the bar card to a red color as you are trying, no luck as well (contacted the card developer have not heard back). I also notice that at about the 20% level the printer lets me know (via the screen on the printer) about a low cartridge.
Would you mind sharing the code that is between the HP8600 Info and the bar graphs of color. I go through a lot of ink and this would alert me.
Thanks so much.
carltonb
This is my card as it is right now. I don’t have the automations working at the moment as the changes with the component has stopped them all from working, and I haven’t had a chance to work on them. Also, I don’t use very much ink, so it’s not a high priority for me.
Also, there are a few custom cards needed.
- bar-card (obviously)
- fold-entity-row
- markdown-mod
Fold-entity-row
cards:
- entities:
- head: binary_sensor.hp8600_status
items:
- input_number.ink_alert
- input_boolean.ink_notify_system
- input_boolean.ink_notification
type: 'custom:fold-entity-row'
show_header_toggle: false
title: HP8600 Info
type: entities
- align: bottom
columns: 4
direction: up
entities:
- color: MediumTurquoise
entity: sensor.hp8600_ink_cyan
title: Cyan
- color: MediumOrchid
entity: sensor.hp8600_ink_magenta
title: Magenta
- color: Gold
entity: sensor.hp8600_ink_yellow
title: Yellow
- color: Black
entity: sensor.hp8600_ink_black
title: Black
height: 150px
icon_position: inside
max: 100
min: 0
padding: 3px
target: input_number.ink_alert
title_position: bottom
type: 'custom:bar-card'
- content: >
[HP Officejet Pro 8600 Plus WebUI](http://192.168.1.80)
- <ha-icon icon="mdi:counter"></ha-icon> - Print Counter: **[[
sensor.hp8600_printer ]]** Pages
- <ha-icon icon="mdi:cancel"></ha-icon> - Print Aborts: **[[
sensor.hp8600_printer.attributes.Cancelled ]]** Pages
- <ha-icon icon="mdi:scanner"></ha-icon> - Scan Jobs: **[[
sensor.hp8600_scanner ]]** Pages
type: markdown
type: 'custom:vertical-stack-in-card'
Thank you.
carltonb
Hi, I have my configuration split, so I put the hpprinter.yaml under ‘sensors’ folder, however the sensor doesn’t appear as an entity at all.
hpprinter.yaml:
hpprinter:
devices:
- host: 192.168.0.55
The component is correctly placed in ‘custom_components’, please let me know what is wrong, I believe it’s a formating issue?
Thanks
I have also installed the hpprinter plugin, and I see the values of my HP 5520 appearing.
I also tried to add the HP Laserjet P3005N, but I only get status offline there.
Is it true that this printer is not supported with this plugin?
and a second question, how can I get the nice picture with the bars on my dashboard?
I tried several things, but I only got errors
thank you in advance!
here it is…
- type: custom:text-divider-row
text: HP Photosmart 5510 Infos ### HP Photosmart 5510 B111a
- type: entities
entity: binary_sensor.hp_photosmart_5510_b111a_status
- type: custom:bar-card
columns: 4
direction: up
entities:
- color: black
entity: sensor.hp_photosmart_5510_b111a_ink_black
title: Black
title_style:
font-size: 12px
- color: '#00ffff'
entity: sensor.hp_photosmart_5510_b111a_ink_cyan
title: Cyan
title_style:
font-size: 12px
- color: '#ff00ff'
entity: sensor.hp_photosmart_5510_b111a_ink_magenta
title: Magenta
title_style:
font-size: 12px
- color: '#ffff00'
entity: sensor.hp_photosmart_5510_b111a_ink_yellow
title: Yellow
title_style:
font-size: 12px
height: 150px
min: 0
max: 100
padding: 10px
target: 20
title_position: bottom
align: center-split
icon_position: inside
unit_of_measurement: '%'
width: 100%
- type: markdown
style: |
ha-card {
font-size: 18px;
}
content: |
[HP Photosmart 5510 B111a Weboberfläche](http://192.168.1.121)
- <ha-icon icon="mdi:counter"></ha-icon> - Druck Counter: **{{states('sensor.hp_photosmart_5510_b111a_printer')}}** Seiten
- <ha-icon icon="mdi:cancel"></ha-icon> - Druck ABBRÜCHE: **{{states.sensor.hp_photosmart_5510_b111a_printer.attributes.Cancelled}}** Seiten
- <ha-icon icon="mdi:scanner"></ha-icon> - Scan Vorgänge: **{{states('sensor.hp_photosmart_5510_b111a_scanner')}}** Seiten
- type: entities
entities:
- entity: sensor.hp_photosmart_5510_b111a_ink_black
style: |
:host {
--paper-item-icon-color: black;
}
type: custom:multiple-entity-row
name: Ink Black
icon: mdi:invert-colors
name_state: Füllstand
primary:
attribute: ['Installed At']
name: Eingebaut am
secondary:
attribute: ['Warranty Expiration Date']
name: Läuft ab am
- entity: sensor.hp_photosmart_5510_b111a_ink_cyan
style: |
:host {
--paper-item-icon-color: cyan;
}
type: custom:multiple-entity-row
name: Ink Cyan
icon: mdi:invert-colors
name_state: Füllstand
primary:
attribute: ['Installed At']
name: Eingebaut am
secondary:
attribute: ['Warranty Expiration Date']
name: Läuft ab am
- entity: sensor.hp_photosmart_5510_b111a_ink_magenta
style: |
:host {
--paper-item-icon-color: magenta;
}
type: custom:multiple-entity-row
name: Ink Magenta
icon: mdi:invert-colors
name_state: Füllstand
primary:
attribute: ['Installed At']
name: Eingebaut am
secondary:
attribute: ['Warranty Expiration Date']
name: Läuft ab am
- entity: sensor.hp_photosmart_5510_b111a_ink_yellow
style: |
:host {
--paper-item-icon-color: yellow;
}
type: custom:multiple-entity-row
name: Ink Yellow
icon: mdi:invert-colors
name_state: Füllstand
primary:
attribute: ['Installed At']
name: Eingebaut am
secondary:
attribute: ['Warranty Expiration Date']
name: Läuft ab am
Thank you,
For my system is it not working unfortunately, i get a red page.
Yes i installed the plugins.
maybe i will try it again in the future.
I am not sure if this is the right place. But the printhead sensor, it shows 0% at my setup. What exactly does it show? Is it meant to be replaced when its at 0%
Updated the component a bit, now it supports:
- HACS - hopefully it will get merge to the offical branch soon
- UI configuration instead of YAML configuration for multiple printers (Breaking change!!!)
Readme updated with all the details,
Can you please detail this? I do not understant what is UI configuration?
The Integration is showing up as a blank line with no title, just the arrow, clicking on it then populates the first field with “HP Printer”, that is the only way I figured out what it was.
It means the configuration data can only be done from the User Interface aka GUI.
If you are running 0.105 goto the side panel “Configuration”, then look for “Integration” at the top of the page and click on it. Then click on the “+” button and pull down the list until you see HP Printer, click on it, and fill in the information.
Hope this helps