octoprint binary sensor platform let you monitor if your 3D printer is printing or if there was a printing error.
You must have the OctoPrint component configured to use this binary sensor. After configuring that component, binary sensors automatically appear.
To set it up, add the following information to your
binary_sensor: - platform: octoprint monitored_conditions: - Printing - Printing Error