HP Printer Ink Levels

Thanks for the starting point, this also worked with my LaserJet M175nw… I also found some additional info like pages printed, pages remaining, drum life, printer status… it took some fooling around to find them so I figured maybe I could save someone else the trouble… thanks guys!


############################## BLACK TONER
  - platform: snmp
    name: 'm175nw_black'
    host: 192.168.x.x
    baseoid: 1.3.6.1.2.1.43.11.1.1.9.1.1
    accept_errors: true
    scan_interval: 86400
    unit_of_measurement: '%'

  - platform: snmp
    name: 'm175nw_black_pages_printed'
    host: 192.168.x.x
    baseoid: 1.3.6.1.4.1.11.2.3.9.4.2.1.4.1.10.11.1.0
    accept_errors: true
    scan_interval: 86400
    unit_of_measurement: 'pages printed'

  - platform: snmp
    name: 'm175nw_black_pages_remaining'
    host: 192.168.x.x
    baseoid: 1.3.6.1.4.1.11.2.3.9.4.2.1.4.1.10.5.1.1.1.0
    accept_errors: true
    scan_interval: 86400
    unit_of_measurement: 'pages remaining'

############################## CYAN TONER
  - platform: snmp
    name: 'm175nw_cyan'
    host: 192.168.x.x
    baseoid: 1.3.6.1.2.1.43.11.1.1.9.1.2
    accept_errors: true
    scan_interval: 86400
    unit_of_measurement: '%'

  - platform: snmp
    name: 'm175nw_cyan_pages_printed'
    host: 192.168.x.x
    baseoid: 1.3.6.1.4.1.11.2.3.9.4.2.1.4.1.10.11.2.0
    accept_errors: true
    scan_interval: 86400
    unit_of_measurement: 'pages printed'

  - platform: snmp
    name: 'm175nw_cyan_pages_remaining'
    host: 192.168.x.x
    baseoid: 1.3.6.1.4.1.11.2.3.9.4.2.1.4.1.10.5.1.1.2.0
    accept_errors: true
    scan_interval: 86400
    unit_of_measurement: 'pages remaining'

############################## MAGENTA TONER    
  - platform: snmp
    name: 'm175nw_magenta'
    host: 192.168.x.x
    baseoid: 1.3.6.1.2.1.43.11.1.1.9.1.3
    accept_errors: true
    scan_interval: 86400
    unit_of_measurement: '%'

  - platform: snmp
    name: 'm175nw_magenta_pages_printed'
    host: 192.168.x.x
    baseoid: 1.3.6.1.4.1.11.2.3.9.4.2.1.4.1.10.11.3.0
    accept_errors: true
    scan_interval: 86400
    unit_of_measurement: 'pages printed'

  - platform: snmp
    name: 'm175nw_magenta_pages_remaining'
    host: 192.168.x.x
    baseoid: 1.3.6.1.4.1.11.2.3.9.4.2.1.4.1.10.5.1.1.3.0
    accept_errors: true
    scan_interval: 86400
    unit_of_measurement: 'pages remaining'

############################## YELLOW TONER
  - platform: snmp
    name: 'm175nw_yellow'
    host: 192.168.x.x
    baseoid: 1.3.6.1.2.1.43.11.1.1.9.1.4
    accept_errors: true
    scan_interval: 86400
    unit_of_measurement: '%'

  - platform: snmp
    name: 'm175nw_yellow_pages_printed'
    host: 192.168.x.x
    baseoid: 1.3.6.1.4.1.11.2.3.9.4.2.1.4.1.10.11.4.0
    accept_errors: true
    scan_interval: 86400
    unit_of_measurement: 'pages printed'

  - platform: snmp
    name: 'm175nw_yellow_pages_remaining'
    host: 192.168.x.x
    baseoid: 1.3.6.1.4.1.11.2.3.9.4.2.1.4.1.10.5.1.1.4.0
    accept_errors: true
    scan_interval: 86400
    unit_of_measurement: 'pages remaining'

############################## IMAGING DRUM    
  - platform: snmp
    name: 'm175nw_imaging_drum'
    host: 192.168.x.x
    baseoid: 1.3.6.1.2.1.43.11.1.1.9.1.5
    accept_errors: true
    scan_interval: 86400
    unit_of_measurement: '%'

## I didn't get a chance to see what the different states were for the mode/status,
## seems power_mode will tell you if in sleep/awake or low-power mode, etc and 
## printer_status_2 will just give a Ready state even when sleeping which seems to 
## make more sense.. you will have to see which works best for you..
## I think status_2 will tell you if needs paper etc, but didn't look that far into it yet...
################################## PRINTER
  - platform: snmp
    name: 'm175nw_printer_mode'
    host: 192.168.x.x
    baseoid: 1.3.6.1.4.1.11.2.4.3.1.2.0
    accept_errors: true
    scan_interval: 300
    
  - platform: snmp
    name: 'm175nw_printer_status_2'
    host: 192.168.x.x
    baseoid: 1.3.6.1.2.1.43.17.6.1.5.1.2
    accept_errors: true
    scan_interval: 300

  - platform: snmp
    name: 'm175nw_printer_status'
    host: 192.168.x.x
    baseoid: 1.3.6.1.4.1.11.2.3.9.1.1.3.0
    accept_errors: true
    scan_interval: 300


  - platform: snmp
    name: 'm175nw_total_pages'
    host: 192.168.x.x
    baseoid: 1.3.6.1.2.1.43.10.2.1.4.1.1
    accept_errors: true
    scan_interval: 86400
    unit_of_measurement: 'pages'