power-master rules: on first chat or a new UPS host, run first-run setup (machine → CLI → device_key → physical runtime.get → offer outage-notify routine → optional policy/UI/WoL); never invent null readings; mock, remote or nut data is not local physical outage evidence; never auto-pick among multiple HID devices; real OS shutdown needs explicit user authorization plus --allow-system-actions (device writes need --allow-device-write); mock never shuts down the OS; WoL packet_sent is not proof of
電源管家
by ImL1s
Last checked Template updated
Watches the UPS on your computer through the open-source PowerMaster CLI and tells you when mains power drops or comes back. Notification-only by default; it never shuts anything down without your explicit OK.
Memories5Facts it already knows
PowerMaster is open source at https://gitlab.com/aa22396584/powermaster (MIT OR Apache-2.0). Get the CLI either from a preview ZIP on its GitLab Releases (verify SHA-256, label it preview) or by building: cargo build -p power-cli --release --locked → target/release/power-master(.exe). Build needs rustup Rust 1.87+, Python 3.10+ for the helper, Linux pkg-config libudev-dev build-essential, Windows VS C++ Build Tools + Windows SDK.
A UPS reading counts as live only when ok, data_source=physical, fresh=true, connection is not disconnected, device is not null and last_error is null. With no UPS attached, runtime.get can still return ok + physical but disconnected. The helper always needs call <method> after its global flags, pass --cli explicitly, and results are under data.
PowerMaster DB upgrades are forward-only: 0.5.0 migrates the DB to schema 3 on first open, after which 0.3.x CLI and UI refuse it. Before upgrading, back up the DB with its -wal/-shm files, test the new CLI and UI on a DB copy, close the old desktop UI (same app id, single instance, it may hide in the tray), then switch the CLI used by the outage routine and the UI together; pause the routine during the switch.
PowerMaster desktop UI and CLI share a SQLite DB via POWERMASTER_DB_PATH. Default DB dirs: Windows %LOCALAPPDATA%\PowerMaster, macOS ~/Library/Application Support/PowerMaster, Linux $XDG_DATA_HOME/power-master. Release ZIPs ship the CLI only; build the UI with npm ci, npm run build, then cargo build -p power-desktop --release --locked --features tauri/custom-protocol (Linux also needs libwebkit2gtk-4.1-dev).
Skills2Playbooks it can run
power-master
Use when the user asks UPS status, battery health, outage protection, PowerMaster agent ops, 電源管家, UPS 監控, 停電保護, first-run setup, upgrades, Wake-on-LAN, or mock/device diagnostics.
getting-started-power-master
First conversation for a newly imported 電源管家 (UPS power monitor) template: bind the owner's UPS host, get the open-source CLI, pick the UPS, then offer the outage-notify routine.
Routines1Jobs that run on their own
市電停電通知
Every few minutes, read the UPS and notify the owner only when mains power drops, comes back, or checks keep failing.
You may also like
Backup by Chris
by Chris
Backup keeps safe copies of your bots’ setups and important files off the shared Grok Bot computer — in a private GitHub repo and Google Drive — so a reset or…
- Memories8
- Skills1
- Routines3
Sets up homehub, a free, open-source dashboard for your home network: Starlink dishes, speed tests, drive health, backups, machines, GPU / Folding@home, ntfy p…
- Memories13
- Skills2
- Routines0
Installs and looks after Dish Monitor, a free, open-source live status page for one or two Starlink dishes on your home network. Read-only towards the dish. No…
- Memories10
- Skills2
- Routines0
For Home Assistant owners: catches dead devices, offline cameras, failed updates, and broken automations, and pings you only when a person has to act. Weekday…
- Memories6
- Skills7
- Routines0
Debt Crusher
A personal debt-reset coach that reads your linked bank and investment accounts and runs weekly, payday and monthly check-ins. Each one gives an on/off-target…
- Memories7
- Skills2
- Routines3

