home-assistant.io/source/_components/sensor.cups.markdown
Bruce 155c8c4f74 Optional variables added to sensor.cups.markdown (#2947)
* Optional variables added to sensor.cups.markdown

Sensor configuration supports two additional variables which are not listed but would be extremely helpful to anyone running their print server on a host other than the one running Home Assistant.

Added two lines to the Configuration variables section to show host and port optional values.

* Fix formatting

* Add periods
2017-07-08 10:11:40 +02:00

1.4 KiB

layout, title, description, date, sidebar, comments, sharing, footer, logo, ha_category, ha_iot_class, ha_release
layout title description date sidebar comments sharing footer logo ha_category ha_iot_class ha_release
page CUPS Sensor Instructions how to integrate CUPS sensors into Home Assistant. 2016-10-30 12:10 true false true true cups.png System Monitor Local Polling 0.32

The cups sensor platform is using the open source printing system CUPS to show details about your printers.

To set up the sensor the "Queue Name" of the printer is needed. The fastest way to get it, is to visit the CUPS webinterface at "http://[IP ADDRESS PRINT SERVER]:631" and go to "Printers".

To enable the CUPS sensor, add the following lines to your configuration.yaml:

# Example configuration.yaml entry
sensor:
  - platform: cups
    printers:
      - C410
      - C430

Configuration variables:

  • printers array (Required): List of printers to add.
  • host (Optional): IP address of the CUPS print server.
  • port (Optional): Port address of the CUPS print server. Defaults to 631.

You will need to install the `python3-dev` or `python3-devel` and the development files for CUPS (`libcups2-dev` or`cups-devel`) package on your system manually (eg. `sudo apt-get install python3-dev libcups2-dev` or `sudo dnf -y install python3-devel cups-devel`) along with a compiler (`gcc`).