External commands on printer level
I am trying to find a way to implement external commands (like you can do with the extcommands.xml), but on printer level.
Is there a way that this can be done?
The reason I want this is that I have a Pi Server that controls 2 printers. Each printer can be powered on and off separately using the GPIOs of the Pi and SS Relays. Additionally each printer has a web cam that can be switched on (Start streaming) and off (Stop streaming) separately. I want to be able to have commands like "Power on", "Power Off" etc. at the actions of each printer.
I know that this can be done globally with the already existing external commands, but it is more convenient to have the commands assigned to each printer, and avoid having commands like "Power On Printer #".