Hi, just examining CUPS sensor: https://home-assistant.io/components/sensor.cups/
Is it somehow possible to specify IP address of CUPS server?
I have CUPS server runnng on a different RPi (another room, next to printer
Thanx!
Maxim
Hi, just examining CUPS sensor: https://home-assistant.io/components/sensor.cups/
Is it somehow possible to specify IP address of CUPS server?
I have CUPS server runnng on a different RPi (another room, next to printer
Thanx!
Maxim
I’m struggling with this also.
anyone?
I tried also creating a file at /etc/cups/client.conf and put my server. but still no luck.
lpstat -p will show my printer though, but HA still checks at 127.0.0.1.
See Post below this for better instructions!
Took me a while to work this out and this is a bit of a late reply however for the sake of anyone else looking for this info. If you find the file cups.py you can edit the default ip address from 127.0.0.1 to the ip address of your cups server.
On my raspberry pi the path was:
/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/sensor
You need to cd to this directory from the root level
I don’t like making edits directly to source files since those changes are typically lost when performing an update.
After looking at the cups.py code long enough to try and follow what is going on I found that it will actually read a host and port configuration value specified when defining the sensor. See below sample and note the host and port entries.
I tried it and it worked!
sensor:
- platform: cups
host: 192.168.1.119
port: 631
printers:
- C410
- C430
Thanks, excellent update as the changes are indeed lost.
I was able to get the cups server running in an add-on, but i am not able to passthrough the printer to the container.
I can’t find when my usb printer is mounted since my system doen’t show:
/dev/bus
How did you get to work? Did you install it directly onto your system?
I’m not sure I fully understand the question. I have CUPS running on a separate machine (RPi Zero) from Home Assistant. In the CUPs section of my configuration I was able to specify the IP address to my CUPS machine on the HOST line (see examples at https://home-assistant.io/components/sensor.cups/) so HA could monitor it.
If you are trying to configure your printer in CUPS that may be a question for a different forum. I followed this guide (http://www.makeuseof.com/tag/make-wireless-printer-raspberry-pi/) when setting up my printer.