npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

matterbridge-ups

v2.0.0

Published

Matterbridge plugin for Network UPS Tools

Downloads

58

Readme

Matterbridge UPS

CI License

Matterbridge plugin for UPS devices exposed by Network UPS Tools (NUT).

Each NUT UPS is exposed as a Matter device with:

  • mains presence through the Contact Sensor device type;
  • load power, current, and voltage through Matter electrical measurement clusters;
  • battery level, voltage, charging state, runtime, low-battery state, and replacement state through a rechargeable Power Source cluster;
  • reachability that reflects the NUT connection, with active UPS alarms logged;
  • a quick battery test when the Matter Identify action is invoked.

Matter has no standard clusters for changing the NUT low-battery threshold or enabling/disabling the beeper, so the Homebridge-specific controls for those settings are not exposed.

Prerequisites

  • Matterbridge 3.10.0 or newer;
  • a supported Node.js release (20.19+, 22.13+, 24, or 26);
  • an accessible upsd server, normally on TCP port 3493.

Installation

Install Matterbridge, then add this plugin from the Matterbridge frontend or from a terminal:

matterbridge --add matterbridge-ups

For local development from this checkout:

matterbridge --add .

Configuration

{
  "name": "matterbridge-ups",
  "type": "DynamicPlatform",
  "hosts": [
    {
      "host": "localhost:3493",
      "name": "server",
      "username": "optional-user",
      "password": "optional-password"
    }
  ],
  "timeout": 15,
  "debug": false,
  "unregisterOnShutdown": false
}

username and password can instead be supplied through UPS_USERNAME and UPS_PASSWORD. Credentials are normally only required for the Identify quick-test command.

Command-Line Utility

The package retains the dependency-free ups troubleshooting utility:

ups --host localhost:3493 info
ups --host localhost:3493 info --verbose
ups --host localhost:3493 test --quick myups

Run ups --help for all options.

Troubleshooting

Check the NUT connection independently before troubleshooting Matter:

ups --host localhost:3493 info --verbose

Enable debug in the plugin configuration for NUT request and response logging. Remove credentials and private network details before sharing configuration or logs.

Development

Install dependencies and run all repository checks:

npm install
npm run check

See CONTRIBUTING.md for Matterbridge development setup and pull request guidance.

Origin and Attribution

Matterbridge UPS is created and maintained by Joel Kirchmeyer. It is based in part on Homebridge UPS, created by Erik Baauw. Both projects are licensed under the Apache License 2.0.

The NUT protocol client and ups command-line utility derive from the original Homebridge project and were adapted to remove the Homebridge runtime dependency. The original Git history is retained. Erik Baauw and original contributor Dan McGee remain credited through that history and the upstream contributors page. See NOTICE for additional provenance.

Issues for this Matterbridge port belong in the Matterbridge UPS issue tracker. Please do not use the original Homebridge repository for support with this port.