Skip to content

v0.1.0

Choose a tag to compare

@willtheorangeguy willtheorangeguy released this 06 Sep 03:29
· 9 commits to main since this release

First release.

Control Home Assistant smart plugs from OctoPrint:

  • Multi-plug navbar control — every configured entity gets a state dot, live wattage and on/off buttons.
  • Power off after a print — a cancellable countdown, then a wait for the hotend (and optionally the bed) to cool below a threshold, then disconnect and cut power. Aborts by itself if a new print starts.
  • Power on and connect — one button switches the printer plug on and retries the serial connection until the printer answers.
  • Energy and cost — live watts in the dropdown, plus a sidebar panel showing what the current and previous prints consumed.
  • Any entity domain — the Home Assistant service domain is derived from the entity ID, so switch.*, light.* and input_boolean.* all work regardless of whether ZHA, Zigbee2MQTT or a vendor integration exposed the plug.
  • Safe by default — cutting power mid-print needs explicit confirmation, plug control is a separate OctoPrint permission, and the access token is admin-only.

No extra Python dependencies; OctoPrint already ships requests.

Requires OctoPrint 1.5.0+ and a Home Assistant long-lived access token.

Install

https://github.com/willtheorangeguy/OctoPrint-HomeAssistantPower/archive/v0.1.0.zip