I recommend adding the possible values to the Sensor -> Current Printer State section as available in pyoctoprintapi/printer.py:
cancelling
closedOrError
error
finishing
operational
paused
pausing
printing
ready
resuming
sdReady
For completeness on the HA side, consider including "unavailable" for when OctoPrint is running, but the printer is not reachable (E.g., USB is disconnected, powered off, network issue).
This would be helpful for setting up HA Automations for the various statuses.
Hey there @rfleming71, mind taking a look at this feedback as it has been labeled with an integration (octoprint) you are listed as a code owner for? Thanks!
Code owner commands
Code owners of `octoprint` can trigger bot actions by commenting:
- `@home-assistant close` Closes the feedback.
- `@home-assistant rename Awesome new title` Renames the feedback.
- `@home-assistant reopen` Reopen the feedback.
- `@home-assistant unassign octoprint` Removes the current integration label and assignees on the feedback, add the integration domain after the command.
- `@home-assistant add-label needs-more-information` Add a label (needs-more-information) to the feedback.
- `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information) on the feedback.
Feedback
I recommend adding the possible values to the Sensor -> Current Printer State section as available in pyoctoprintapi/printer.py:
For completeness on the HA side, consider including "unavailable" for when OctoPrint is running, but the printer is not reachable (E.g., USB is disconnected, powered off, network issue).
This would be helpful for setting up HA Automations for the various statuses.
URL
https://www.home-assistant.io/integrations/octoprint/
Version
2024.8.2
Additional information
No response