HP Instant Ink counter for Home Assistant
This is an implementation for Home Assistant, of a page counter for tracking usage of an HP Instant Ink plan.
It tracks the number of pages used from the XML page of the printer and, based on that and user-entered details of their plan, automatically monitors the monthly usage of the plan and the overall cost.
Download the 'packages/hp_envy_5540_instant_ink.yaml' file, and place it in the packages folder of the configuration area of Home Assistant.
Download the files in the 'cards' folder. For each file, in the HASS front end, create a new card in yaml mode, and paste in the code. Then commit the card.
The Scrape Sensor wizard in Integrations should be used as below.
- It is critical that the Scrape Sensor Entity ID is named exactly as, 'sensor.hp_envy_5540_total_pages_printed_xml', and that the Value Template is, '{{ value|int(-1) }}'