Thank you @aqualx . I was able to fix the temperature measurement ( I had to updated all the local users in the card to US Customary) and also I removed the % from sensor definition.
I am planning to add the secondary UPS card - by adding UPS02 to the name string - hope will work.
Configure it - here is my config. Just set the host to the IP address of your UPS network address and set your own username and password for the HA integration.
Make sure the UPS access control for SNMP v1 is in a profile called public and is accessible (E.g. 0.0.0.0)
I just tried setting this up with my UPS, but Nut complains it doesn’t know what to do with the MIB that was found:
No matching MIB found for sysOID ‘.1.3.6.1.4.1.318.1.3.27’!
Please report it to NUT developers, with an ‘upsc’ output for your device.
Going back to the classic MIB detection method.
But when I ssl into HA, I try the upsc command, and it says upsc isn’t found.
I am using an APC SRT 8000 (which BTW I picked up on a craigslist sale for $300!)
EDIT: Sorry, I figured out I needed to stick a port number in the network config below so the integration would actually work. Things seem ok now!
It’s also convenient to use device_class: battery for batt capacity and the system will automatically detect the icon and change it depending on the state.
Also use a unique_id for each sensor, this will allow you to change their names and icons directly in UI unique_id: apc2200_smart_battery_voltage
I’m new to Home Assistant and have an APC SmartUPS 1500 with an NMC2 card installed. I’m on the latest version of HA and all devices have the latest firmware from APC.
From what I understand, the code above acts like a driver to create a new sensor in HA for the APC NMC cards. What I don’t understand is where to put this code. How do I create this new sensor?
I changed the device name and ip address and pasted the code to the end of configuration.yaml. I then tested it in HA Developer tools. Here is the message:
Error loading /config/configuration.yaml: while parsing a block mapping
in “/config/configuration.yaml”, line 3, column 1
expected , but found ‘’
in “/config/configuration.yaml”, line 18, column 3
I’m trying to add my much older APC SmartUPS 1000XL with a APC9606 network card using SNMP. My baseoid is only 9 to 12 characters .1.3.6.1.2.1.1.1.0 and varies. Nothing like what I’m seeing in this thread.
Also adding the different examples (editing for a single UPS) and inputting the needed changes causes issues.