Printing with CUPS

I don’t see anyone in this thread doing that.

Yeah not on this thread. But here

You could argue the same for Pi-Hole. And yet it is an add-on.
That is the nice thing of using a Docker: you can integrate anything you want into HA that way (as long as you are capable of creating a working Docker :slight_smile: )

1 Like

One day I might just give it a go. First I need to get my hands on a server :slight_smile:

Even without “unrelated” add-ons, that argument is wrong anyway. If someone wants to automatically print a document when a new one becomes available or one is updated or just on a regular interval then that’s automation.

I’d be interested in a CUPS/SANE addon, mostly just to be able to trigger the scanner from a cheap Chromebook that otherwise can’t access the printer/scanner.

Ok for me!

I could get cups up and running in docker, but I struggled to get avahi and air print going to support airprint. I have it working fine installing directly through terminal, but would love an option for a cups-avahi-airprint addon. I found a few containers that seemed to cover it all, but I didn’t want to hand over full host access to get them going.

i configured cup using Portainer on my pi 4 with Hassos… The problem now is that using Hassos 4.20 it works fine, but upgrading to Hassos 5.9 the server still works, but no printer is shown on the net. Which is the problem? What I have to do to share the printer added in cups docker? please help me, thanks.

Still no one created CUPS add-on for HA? :slight_smile:

I found this, not tried yet
https://github.com/ncarr/addon-repository

I just installed from ncarr’s repo and it works for me with one issue: “502 Bad Gateway” when accessing the Web UI with HTTPS access (default).
See the discussion over here at GitHub:

After disabling SSL in the configuration, it works both in the integration and with “http://homeassistant.local:631”. The latter is a bit unsafe, though.

In my case I suspect this happens due to the already running nginx add-on.
BUT: Some printing services (e.g. newer Android) require SSL, so a solution to this issue would be desirable.
Ironically, though, Windows 10 still can connect via HTTP only as it seems (source).

How safe is it to add such custom add-on? I trust the original cups.

original cups? how do you run it in HA?

I run it on a different pi than hass. But is more economical to put them both on the same pi.

Well there is a question with a lot of fish hooks!

Easy answer, it is all open source so either trust that any errors are obvious or see for yourself :slight_smile:

Not so easy answer - this addon depends on a large train of trust, you need to trust the following:

  • Debian (extremely safe, there are a lot of eyes on debian)

  • The HA debian addon images (I don’t know what they do to them, but probably very safe, the devs here know their stuff and many official and community addons are built on those images).

  • On top of the base images there are a number of packages installed from debian repos, again all probably extremely safe.

  • Then we have the authors work on top of that. It is easy to see on his github. Nothing leaps out as bad, but without knowing all the possible things that could go wrong, who knows? Looks pretty innocuous though.

Frankly it looks as trustworthy as any other addon, but no guarantees about anything!

2 Likes

Sound answer, thanks!

Ive installed the addon. I can print a test page.
Airprint doesn’t work though, any ideas?

I don’t have any iDevices, but there is a nice howto here CUPS and Raspberry Pi AirPrinting | Developer.com

I installed the ncarr addon, it works printing a test page from cups interface. But not airprint. Has anyone succeeded airprinting through the ncarr addon?

Repeating yourself is pointless. Did you look at that howto?