Skip to content

Latest commit

 

History

History
48 lines (19 loc) · 1.61 KB

README.md

File metadata and controls

48 lines (19 loc) · 1.61 KB

HASS_HPInstantInk

Overview

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.

Usage

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.

Scrape Sensor

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) }}'

Wizard Page 1

01_Select_Scrape_Integration

Wizard Page 2

02_Wiz_Page_01_all

Wizard Page 3

04_Wiz_Page_02_all

Wizard Page 4

05_Wiz_Page_03_Success