Skip to main content

Eaton UPS / CyberPower smart home integration, free and open source

Eaton UPS / CyberPower integration for Gladys Assistant

Monitor Eaton and CyberPower UPS on your network (SNMP card or NUT server)

Monitor your Eaton and CyberPower uninterruptible power supplies (UPS) from Gladys, on your local network: power source, battery charge, runtime left, load, voltages. Gladys knows within seconds when the power goes out, and your scenes can react (notify, shut a server down cleanly, turn lights off...).

No cloud: the integration talks directly to the UPS network card (SNMP) or to the NUT server the UPS is plugged into (USB).

Before you start​

Pick the case that matches your UPS:

  • UPS with a network card (Eaton Network-M2, Network-M3, Gigabit or ConnectUPS card; CyberPower RMCARD205/305 card): enable SNMP v1 or v2c in the card web interface, and note its IP address and read community (often public). SNMPv3 is not supported. Other brands whose card implements the standard UPS-MIB (RFC 1628) also work.
  • UPS plugged in USB (Eaton Ellipse, 5E, 5S, 5SC; CyberPower CP, VP, BR...): plug it into a machine running a NUT server (Network UPS Tools): a Raspberry Pi, a Synology NAS (Control Panel → Hardware & Power → UPS → enable the network UPS server, and allow the Gladys IP), a QNAP NAS, Home Assistant's NUT add-on... The server listens on port 3493.

Give the card or the NUT server a fixed IP address (DHCP reservation): a UPS that does not report its serial number is identified by its address.

Installation​

  1. In Gladys, open Integrations, then the external integrations store.
  2. Search for Eaton UPS / CyberPower and click Install.
  3. Wait for the container to start: the integration shows up in the list.

Configuration​

Open the Configuration tab of the integration:

  • Protocol: SNMP for a network card, NUT for a NUT server.
  • Addresses: the IP address (or name) of each card or NUT server, separated by commas, e.g. 192.168.1.20, 192.168.1.21. Add a port after a colon if it is not the default one (192.168.1.20:1161). With NUT, the address alone reads every UPS of the server; ups@192.168.1.5 reads only the UPS named ups.
  • SNMP version and read community: as set on the card (v1 and public by default).
  • Write community (SNMP, optional) or NUT username and password (optional): only needed to start a battery test or mute the alarm from Gladys. With NUT, the account must be declared in upsd.users with instcmds = ALL (or the needed commands).
  • Refresh interval: how often the UPS are read, 30 seconds by default (10 seconds minimum).

Save, then click Test the connection: the integration lists each UPS read and the addresses that do not answer.

Devices​

Open Discovery in the integration: each UPS shows up as a device (named after its model) and can be added to a room. Depending on what your UPS measures, the device has:

  • On battery (1 during a power cut) and Battery low;
  • Battery charge (%) and Battery runtime (minutes left);
  • Load (%) and Output power (W);
  • Input voltage, Output voltage and Battery voltage (V);
  • Battery temperature (°C);
  • Status, a short text (Online, On battery, low battery, Online, replace battery...).

The badge of the device card shows Local while the UPS answers, Unreachable when it stops answering.

Scenes and dashboards​

Scene triggers (Scenes → New scene → trigger), each with an optional UPS filter:

  • Power outage (UPS on battery): the UPS switched from mains to battery. Variables: UPS name, battery charge, runtime left.
  • Power restored: the UPS is back on mains. Variables: UPS name, outage duration (seconds), battery charge.
  • UPS battery low: the UPS is about to shut down. Variables: UPS name, battery charge, runtime left.
  • UPS unreachable: the card or NUT server stopped answering (after two failed reads in a row).

A trigger fires on the change only, never when the integration starts on an already ongoing outage. Example: Power outage → send a message "{{triggerEvent.data.ups_name}} is on battery, {{triggerEvent.data.runtime_minutes}} min left".

Scene actions:

  • Read the UPS: reads it now and gives the next actions whether it is reachable, on battery, its charge, runtime and status.
  • Start a UPS battery test: quick battery self-test. Output: test started (yes/no).
  • Mute the UPS alarm: silences the beeper during the ongoing event. Output: alarm muted (yes/no).

The last two need the write community (SNMP) or the NUT account. A command the UPS refuses does not stop the scene: test the output in a condition.

Dashboard widget "UPS status": battery charge, runtime, load and power as live tiles; power source, battery health, connection and input voltage as a status list; Refresh, Battery test (asks for confirmation) and Mute alarm buttons. Choose the UPS in the widget settings (by default, the first one).

Troubleshooting​

  • No answer from an SNMP card: check that SNMP v1/v2c is enabled, the community, and that the card accepts requests from the Gladys IP address (some cards filter the managers allowed).
  • No answer from a NUT server: check that upsd listens on the network (LISTEN 0.0.0.0 3493 in upsd.conf) and not only on 127.0.0.1, and that the firewall lets port 3493 through.
  • "The UPS refused the command": the write community is wrong, or the NUT account lacks the instcmds right, or the UPS does not support the command.

Help​

A question or a problem? Ask on the Gladys community forum or open an issue on the GitHub repository.

Configuration settings​

These are the settings Eaton UPS / CyberPower asks for in its configuration screen in Gladys.

SettingTypeRequiredDescription
Getting startedsectionNoThe integration reads your UPS on the local network. A UPS with a network card (Eaton Network-M2/M3, Gigabit or ConnectUPS; CyberPower RMCARD) is read in SNMP: enable SNMP v1 or v2c on the card. A UPS plugged in USB (Eaton Ellipse, 5E, 5S; CyberPower CP, VP, BR...) is read through a NUT server (Network UPS Tools: Raspberry Pi, Synology or QNAP NAS...).
ProtocolselectYesSNMP for a network card, NUT for a UPS plugged in USB to a NUT server.
AddressesstringYesIP address or name of each network card (SNMP) or NUT server, separated by commas. Optional port after a colon (192.168.1.20:161). For NUT, name one UPS of the server with ups@host, or give the host alone to read all of them. Use fixed addresses: a UPS that reports no serial number is identified by its address.
SNMPsectionNoOnly for the SNMP protocol. SNMPv3 is not supported: enable v1 or v2c on the card. The write community is only needed for the battery test and the alarm muting.
SNMP versionselectNo
Read communitystringNo
Write community (optional)secretNo
NUTsectionNoOnly for the NUT protocol. Reading needs no account. The battery test and the alarm muting need a upsd.users account allowed to run instant commands (instcmds).
NUT username (optional)stringNo
NUT password (optional)secretNo
Refresh interval (s)numberNoHow often the UPS are read, in seconds (10 to 3600). A short interval catches a power cut sooner.

How to install Eaton UPS / CyberPower in Gladys​

  1. In Gladys, open Integrations: Eaton UPS / CyberPower appears in the catalog, next to the native integrations, with a community badge.
  2. Click Install. Gladys pulls the Docker image (ghcr.io/prohand/gladys-eaton-ups-cyberpower:1.1.0), starts it in a sandbox isolated from the core, and generates the integration's interface (devices, discovery and configuration).
  3. Open the Configuration screen of the integration, fill in the settings, and save.
  4. You can also install it directly from its repository URL: https://github.com/prohand/gladys-eaton-ups-cyberpower.

Eaton UPS / CyberPower requires Gladys >=5.1.0. The catalog inside Gladys refreshes every hour, so a new version becomes available at most one hour after its release.

Not running Gladys yet? It is free and open source: follow the installation guide to get started.

About external integrations​

Eaton UPS / CyberPower is an external integration: a community integration packaged as a Docker container and published on GitHub, that Gladys installs in one click and runs in a sandbox isolated from its core. It is published and maintained by prohand, not by the Gladys core team.

Subscribe to the Gladys Assistant newsletter

A few emails per month about new releases and project news. Sent by Pierre-Gilles Leymarie, founder of the project. Unsubscribe anytime 🙂