Network UPS Tools (NUT)

The nut sensor platform allows you to monitor a UPS (battery backup) by using data from a NUT (Network UPS Tools) server.


To add nut to your installation, go to Configuration >> Integrations in the UI, click the button with + sign and from the list of integrations select Network UPS Tools (NUT).

Alternatively, you need to add the following to your configuration.yaml file:

# Example configuration.yaml entry
  - platform: nut
      - ups.load
      - ups.realpower.nominal
      - input.voltage
      - battery.runtime

Configuration Variables

host string (Optional, default: localhost)

The host name or IP address of the device that is running NUT.

port integer (Optional, default: 3493)

The port number.

name string (Optional, default: NUT UPS)

Custom name of the sensor

alias string (Optional)

Name of the UPS on the NUT server.


Will default to the first UPS name listed.

username string (Optional, default: none)

Username to login to the NUT server.

password string (Optional, default: none)

Password to login to the NUT server.

resources list Required

Contains all entries to display.


Given the following example output from NUT (your variables may differ):

$ upsc [email protected]
ups.timer.reboot: 0
battery.voltage: 27.0
ups.firmware.aux: L3 -P
ups.mfr: American Power Conversion
battery.runtime.low: 120
ups.delay.shutdown: 20
ups.load: 19
ups.realpower.nominal: 600
battery.charge.warning: 50
battery.charge.low: 10
ups.vendorid: 051d
ups.timer.shutdown: -1
ups.test.result: No test initiated
ups.firmware: 868.L3 -P.D 3B1519X19994
ups.productid: 0002
battery.runtime: 2552
battery.voltage.nominal: 24.0
battery.type: PbAc OL
ups.model: Back-UPS RS1000G
ups.beeper.status: disabled
battery.charge: 100
input.sensitivity: medium
input.transfer.low: 88
input.transfer.high: 147
input.voltage: 121.0
input.voltage.nominal: 120
input.transfer.reason: input voltage out of range
output.current: 1.10
output.frequency: 60.20
output.voltage: 121.50
output.voltage.nominal: 120

Use the values from the left hand column. Support is included for most values with ‘ups’, ‘battery’, ‘input’ and ‘output’ prefixes.

  - platform: nut
    name: UPS Name
    port: 3493
    alias: ups_name
    username: user
    password: pass
      - ups.load
      - ups.realpower.nominal
      - input.voltage
      - battery.runtime

UPS Status - human-readable version

An additional virtual sensor type ups.status.display is available translating the UPS status value retrieved from ups.status into a human-readable version.

  - platform: nut
      - ups.status.display