In order to prevent constantly burning 15-20Watts by having my printer in stand-by mode, I decided to setup a CUPS printserver which turns on a smart plug when a new print job is present.
This is achieved by using a dedicated docker container running CUPS with tea4cups hosted on the same raspberry Pi as my HA instance.
Once a print job has been received, it sends a POST request to a HA-webhook URL which then turns on the smart plug.
Hope this might be useful for someone else as well.
FYI: turning off the printer is done by the smart plug built-in standby killer function (in my case mystrom). However one could solve that with a HA integrated automation as well (e.g. turn off if smart plug power consumption is less than X watts for more than X minutes).
Isn’t it not advisable to turn off the printer directly? My Canon printer recommends I turn off via the printer power button before cutting off the power. This is so that it can reset the print head and perform any cleanup tasks. My printer also has an auto power-off after a certain time limit - you may want to look if your model also has something similar.
Seems that the power-off causes more discussions than the power-on So far I haven’t found any information that this isn’t recommended or causes any problems.
The standby-killer setting is set in a way, that it only triggers when the printer is in sleep/standby mode anyway (less than 20W).
The other problem with shutting down the printer is that when power comes back, it remembers its previous state that it was shut down. So it doesn’t boot automatically anymore.
I guess that’s what @devWaves uses his switchbot for, no?
Thank you for the reply, but I think it was intended to @rafspeik (marking here so he gets a notification).
I currently use the solution from the link that I posted. It works for me.
But I will check you repo, maybe yours is easier to implement and I’ll switch.