-
Notifications
You must be signed in to change notification settings - Fork 61
Description
�[34m-----------------------------------------------------------�[0m
�[34m Add-on: Network UPS Tools�[0m
�[34m Manage battery backup (UPS) devices�[0m
�[34m-----------------------------------------------------------�[0m
�[34m Add-on version: 0.14.1�[0m
�[32m You are running the latest version of this add-on.�[0m
�[34m System: Home Assistant OS 15.0 (amd64 / qemux86-64)�[0m
�[34m Home Assistant Core: 2025.3.4�[0m
�[34m Home Assistant Supervisor: 2025.03.3�[0m
�[34m-----------------------------------------------------------�[0m
�[34m Please, share the above information when looking for help�[0m
�[34m or support in, e.g., GitHub, forums or the Discord chat.�[0m
�[34m-----------------------------------------------------------�[0m
s6-rc: info: service base-addon-banner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service base-addon-timezone: starting
s6-rc: info: service base-addon-log-level: starting
s6-rc: info: service fix-attrs successfully started
[09:53:28] INFO: �[32mConfiguring timezone (America/New_York)...�[0m
s6-rc: info: service base-addon-log-level successfully started
s6-rc: info: service base-addon-timezone successfully started
s6-rc: info: service legacy-cont-init: starting
cont-init: info: running /etc/cont-init.d/nut.sh
[09:53:29] INFO: �[32mSetting mode to netserver...�[0m
[09:53:29] INFO: �[32mGenerating /etc/nut/upsd.users...�[0m
[09:53:30] INFO: �[32mConfiguring user: drich�[0m
[09:53:30] INFO: �[32mPassword is NOT in the Have I Been Pwned database! Nice!�[0m
[09:53:31] INFO: �[32mConfiguring Device named Main_UPS...�[0m
[09:53:31] INFO: �[32mConfiguring Device named Camera_UPS...�[0m
[09:53:31] INFO: �[32mConfiguring Device named Guest_House_UPS...�[0m
[09:53:32] INFO: �[32mConfiguring Device named Big_Garage_UPS...�[0m
[09:53:32] INFO: �[32mStarting the UPS drivers...�[0m
Created directory: /var/lib/snmp/cert_indexes
Detected CP1500PFCRM2U on host 192.168.91.125 (mib: cyberpower 0.51)
[Main_UPS] unhandled ASN 0x5 received from .1.3.6.1.4.1.3808.1.1.1.7.2.7.0
[Main_UPS] unhandled ASN 0x5 received from .1.3.6.1.4.1.3808.1.1.1.5.2.9.0
[Main_UPS] unhandled ASN 0x5 received from .1.3.6.1.4.1.3808.1.1.1.5.2.11.0
Detected CP1500PFCRM2U on host 192.168.91.126 (mib: cyberpower 0.51)
[Camera_UPS] unhandled ASN 0x5 received from .1.3.6.1.4.1.3808.1.1.1.7.2.7.0
[Camera_UPS] unhandled ASN 0x5 received from .1.3.6.1.4.1.3808.1.1.1.5.2.9.0
[Camera_UPS] unhandled ASN 0x5 received from .1.3.6.1.4.1.3808.1.1.1.5.2.11.0
Detected CP1500PFCRM2U on host 192.168.91.127 (mib: cyberpower 0.51)
[Guest_House_UPS] unhandled ASN 0x5 received from .1.3.6.1.4.1.3808.1.1.1.7.2.7.0
[Guest_House_UPS] unhandled ASN 0x5 received from .1.3.6.1.4.1.3808.1.1.1.5.2.9.0
[Guest_House_UPS] unhandled ASN 0x5 received from .1.3.6.1.4.1.3808.1.1.1.5.2.11.0
Detected CP1500PFCRM2U on host 192.168.91.128 (mib: cyberpower 0.51)
[Big_Garage_UPS] unhandled ASN 0x5 received from .1.3.6.1.4.1.3808.1.1.1.7.2.7.0
[Big_Garage_UPS] unhandled ASN 0x5 received from .1.3.6.1.4.1.3808.1.1.1.5.2.9.0
[Big_Garage_UPS] unhandled ASN 0x5 received from .1.3.6.1.4.1.3808.1.1.1.5.2.11.0
Network UPS Tools - UPS driver controller 2.8.0
cont-init: info: /etc/cont-init.d/nut.sh exited 0
cont-init: info: running /etc/cont-init.d/nutclient.sh
cont-init: info: /etc/cont-init.d/nutclient.sh exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun upsd (no readiness notification)
services-up: info: copying legacy longrun upsmon (no readiness notification)
s6-rc: info: service legacy-services successfully started
[09:53:34] INFO: �[32mStarting the UPS information server...�[0m
0.000000 fopen /run/nut/upsd.pid: No such file or directory
0.000052 Could not find PID file '/run/nut/upsd.pid' to see if previous upsd instance is already running!
0.000600 [D1] debug level is '1'
0.000990 listening on 0.0.0.0 port 3493
0.001395 Connected to UPS [Big_Garage_UPS]: snmp-ups-Big_Garage_UPS
0.001823 Connected to UPS [Guest_House_UPS]: snmp-ups-Guest_House_UPS
0.002097 Connected to UPS [Camera_UPS]: snmp-ups-Camera_UPS
0.002445 Connected to UPS [Main_UPS]: snmp-ups-Main_UPS
0.003381 Running as foreground process, not saving a PID file
[09:53:34] INFO: �[32mStarting the UPS monitor and shutdown controller...�[0m
0.000000 fopen /run/nut/upsmon.pid: No such file or directory
0.000048 Could not find PID file to see if previous upsmon instance is already running!
0.000253 Using power down flag file /etc/killpower
0.000506 UPS: Main_UPS@localhost (primary) (power value 1)
0.000576 UPS: Camera_UPS@localhost (primary) (power value 1)
0.000602 UPS: Guest_House_UPS@localhost (primary) (power value 1)
0.000612 UPS: Big_Garage_UPS@localhost (primary) (power value 1)
0.000636 [D1] debug level is '1'
0.000724 [D1] debug level is '1'
0.000752 Warning: running as one big root process by request (upsmon -p)
0.000859 [D1] Saving PID 528 into /run/nut/upsmon.pid
Init SSL without certificate database
0.004376 [D1] Trying to connect to UPS [Main_UPS@localhost]
0.020878 User [email protected] logged into UPS [Main_UPS]
0.005870 [D1] Logged into UPS Main_UPS@localhost
0.006896 [D1] Trying to connect to UPS [Camera_UPS@localhost]
0.023035 User [email protected] logged into UPS [Camera_UPS]
0.007882 [D1] Logged into UPS Camera_UPS@localhost
0.008620 [D1] Trying to connect to UPS [Guest_House_UPS@localhost]
0.024982 User [email protected] logged into UPS [Guest_House_UPS]
0.009935 [D1] Logged into UPS Guest_House_UPS@localhost
0.010766 [D1] Trying to connect to UPS [Big_Garage_UPS@localhost]
0.027325 User [email protected] logged into UPS [Big_Garage_UPS]
0.012368 [D1] Logged into UPS Big_Garage_UPS@localhost
{"message":"Event nut.ups_event fired."}Network UPS Tools upsmon 2.8.0
{"message":"Event nut.ups_event fired."}{"message":"Event nut.ups_event fired."}Network UPS Tools upsmon 2.8.0
Network UPS Tools upsmon 2.8.0
{"message":"Event nut.ups_event fired."}Network UPS Tools upsmon 2.8.0
{"message":"Event nut.ups_event fired."}Network UPS Tools upsmon 2.8.0
{"message":"Event nut.ups_event fired."}{"message":"Event nut.ups_event fired."}Network UPS Tools upsmon 2.8.0
{"message":"Event nut.ups_event fired."}Network UPS Tools upsmon 2.8.0
Network UPS Tools upsmon 2.8.0
here is the nut config file config file
- name: Main_UPS
driver: snmp-ups
port: 192.168.91.125
config:- mibs = cyberpower
- community = public
- snmp_version = v1
- pollinterval = 15
- name: Camera_UPS
driver: snmp-ups
port: 192.168.91.126
config:- mibs = cyberpower
- community = public
- snmp_version = v1
- pollinterval = 15
- name: Guest_House_UPS
driver: snmp-ups
port: 192.168.91.127
config:- mibs = cyberpower
- community = public
- snmp_version = v1
- pollinterval = 15
- name: Big_Garage_UPS
driver: snmp-ups
port: 192.168.91.128
config:- mibs = cyberpower
- community = public
- snmp_version = v1
- pollinterval = 15
I was able to get everything to work using SNMP yaml
-
platform: snmp
name: "Big Garage UPS Battery Status"
host: "192.168.91.128"
community: "public"
baseoid: ".1.3.6.1.2.1.33.1.2.1.0"
value_template: >
{% set mapping = { 2: "Normal", 3: "Low" } %}
{{ mapping.get(value | int, value) }} -
platform: snmp
name: "Big Garage UPS Status"
host: "192.168.91.128"
community: "public"
baseoid: ".1.3.6.1.2.1.33.1.4.1.0"
value_template: >
{% set mapping = { 5: "On Battery Power", 3: "On Glades Power" } %}
{{ mapping.get(value | int, value) }} -
platform: snmp
name: "Big Garage UPS Transfer Reason"
host: "192.168.91.128"
community: "public"
baseoid: ".1.3.6.1.4.1.3808.1.1.1.3.2.5.0"
value_template: >
{% set mapping = { 1: "No Transfer", 2: "High Line Voltage", 3: "Power Loss", 4: "Self Test" } %}
{{ mapping.get(value | int, "unknown") }}
