Octoprint_Additional_Buttons_Helper- 2024-06-08 by SirGoodenough
This is Blueprint is provided as a helper for people using the Octoprint Plugin called OctoPrint-HomeAssistant. What this does is add 8 buttons, 4 of which you as the user can set your own G-Codes to for customizing. Also adds safe shutdown and presentation functions along with Change Filament and Load Filament.
The first thing to remember is ANYTIME you make ANY changes to this Blueprint, you MUST restart the server so that the button entities can rebuild in the configuration you have selected. If you don't restart OctoPrint, the change may not be seen and you will wonder why and what is happening.
To use this you will need the OctoPrint-MQTT plug-in installed along with the OctoPrint-HomeAssistant plugin. You will also need to be connected to an MQTT Broker that your Home Assistant instance is also connected to. Set-up for all that is covered within those packages.
This also a Safe Shutdown to your setup that will stop the OctoPrint server then shut down the PI & power off your devices safely and cleanly. This works either by manually pressing a Home Assistant Button manually or it can be triggered as the temperature of the hot end ramps down with adjustable trigger points. This feature requires you to have mains power switch(s) to control power to the printer and peripherals.
There is also a Presentation button that raises the Z and moves the print out for better access. Caution, this button assumes that the printer knows where home is and moves to an absolute position. The intention is to use it after a print has happened and you want access to get the item off the platter. If pressed when HOME is unknown it might bump into the end of the Y axis. Also if the Z is very high, it blindly moves the Z up 40 mm so make sure it looks like there is room. These values can be adjusted by editing the Blueprint itself if needed.
Community link for this blueprint
🗿Notice👮🏿♂️:
-
Copies of the original Blueprint that were converted via the 'Take Control' feature or other means are officially not supported by me.
-
I may or may not be able to support you when you have a problem after you make changes to my code, as some of the code is no longer mine.
-
I & my license also require attribution as a link back to the original should you use this code in your own creation.
-
Here is a link to my license & the original github post expected to be followed & referenced as attribution should you use this code elsewhere.
Import to Home Assistant
Click to import this blueprint directly into your Home Assistant instance.
Configuration
Requires 2 inputs to configure
Source Code
View on GitHubDetails
Explore More
Related Blueprints
More button actions automations you might like