How to read the printer state within plugin env? (printing, paused,...)

Maybe a stubid question ...
I'd like to read the current printer state within the plugin env, but I can't find a maching hook or module. Maybe octoprint.printer? But there is no documentation at present for this.

It's one of the injected properties...


Which is a PrinterInterface module. There are a couple of ways to get current state, one of which is calling get_state_id like this.


:+1: Thank You

No problem, don't forget to mark the solution if that does work for you/answer your question.