Here is a way to get multiple UPS configured in the Home Assistant NUT integration. The integration uses the device manufacture, model and serial variables to generate a unique_id. Cyber Power UPS do not serialize the serial variable so they have identical values for all three of those variables. This situation causes the integration to assign multiple remote UPS to the same sensors. The solution is to override variables in the ups.conf
file on the remote systems. Set the serial variable to a unique value such as the ups name in ups.conf
. That fixes it. Another use for this feature is to set the battery date to help keep track of the battery age.
I wish the HA integration used a UUID or something so this situation would not occur.
Sample /etc/nut/ups.conf file [sensorc] driver = usbhid-ups port = auto desc = "Garage" # add these variables to create unique data for the HA integration override.ups.serial = "sensorc" override.device.serial = "sensorc" # handy place to keep battery age date override.battery.mfr.date = "2019-09-01"
No comments:
Post a Comment