cmroche / OctoPrint-HomeAssistant

Home Assistant plugin for OctoPrint, enabling MQTT discovery of you device and sensors
110 stars 18 forks source link

Feature Request - Shutdown from HomeAssistant #98

Open Norm71 opened 1 year ago

Norm71 commented 1 year ago

It would be cool to have a shutdown ability in the Plugin. We have installed the Printer behind a powerplug and it would be cool to have the system shutdown beforehand

hillbicks commented 1 year ago

There actually is already a shutdown button added to home assistant for a shutdown command, but it doesn't work

From the octoprint logfile:

octoprint.plugins.homeassistant - INFO - Unable to run shutdown command: ('consume: expected %r', 'number')

I haven't looked at it in details, so not sure what is missing. If I find something, I'll report back.

SirGoodenough commented 1 year ago

Try this.... https://github.com/SirGoodenough/HA_Blueprints/blob/master/Automations/Octoprint_Additional_Buttons_Helper.md