Plugin Marketplace
Sign in

Home Assistant power switch

Trustedv0x3l3d10github.com/v0x3ll3m0n/ha-power

Turns each printer's Home Assistant smart plug on and off from the printer card and page, and refuses power off during a print or while the nozzle is hot.

Turns each printer's smart plug on and off through a Home Assistant switch, from the printer card and the printer page.

This extension is native code that runs on your Connect Local server, with the permissions you grant it at install. It is not sandboxed. Prusa reviewed this release before publishing it; install extensions only from authors you trust.

Connects to
  • the server you set in ha_url:8123,443,80from the server

    Reads the state of a plug and turns it on or off.

    Sends: The long-lived access token and the id of one plug from the switches setting, only to the address in ha_url. Nothing else leaves the server.

What's inside 0.1.2
  • module.yamlThe manifest: what the extension is and what it asks for
  • ha-power_linux_arm64The program for linux arm64
  • ha-power_linux_amd64The program for linux amd64
  • ha-power_darwin_arm64The program for darwin arm64
  • ui/The browser bundle the Connect web app loads
  • checksums.txtThe SHA-256 of every file above
  • checksums.txt.sigThe author's signature over checksums.txt

A release may also carry LICENSE, README.md and CHANGELOG.md. Nothing else is accepted.

Versions
0.1.2latest .tar.gz

OCL v1.1 + Micro v1 + NoSaaS v1 + SWAtt v1 · core >=0.1.0-beta.1 · sink · linux_arm64, linux_amd64, darwin_arm64 · 7862.6 KB · Nov 20, 2026

Fixed

  • POST /power/{device} now asks the host whether the person may operate the printer, and refuses with 403 ha-power/NOT_ALLOWED when they may not. A person who could only view a printer could switch its plug before.

  • GET /power/{device} now asks whether the person may observe the printer.

  • A refusal with 503 ha-power/ACCESS_UNREADABLE when the host cannot answer.

Changed

  • The egress for ha_url lists ports 8123, 443 and 80, so a Home Assistant behind a reverse proxy works.

  • The setting ha_url no longer gives a host name as an example.

Comments (0)

Sign in to comment.

No comments yet.