NUT problems

I am trying to configure my UPS to work with HA.
First of all i downloaded and installed the nut addon, configured it and then started it. All was going properly. Then i tried to install the NUT integration, put inside it the username and the password i chosed into the addon, put the IP address of my raspberry pi4, but i always get this error:

Is all correct what i did? Or maybe i was somewhere wrong?

The config into the addon is:

Is you HA instance seperate of the pi that you are using to connect the UPS to the network or is it on the same device?

Same device

Leave it as localhost and try again.

Already tried… same error

Just to clarify! How is your UPS connected to your PI. netserver would say it is and netclient would be that it is connected to another PC/Server?

Sorry replies running fast!

I connected the UPS with the Rpi with a cable USB-RJ45
If i use localhost i get:

OK I use a different method mine is ‘client’ but I do not use the add-on just the integration. I have never found success in running both. Stick with the integration!

so you advice me to disable the addon and use only the integration?
In this way where i can put the username and the password?

It depends on your ups which model is it?
Which homeassistant are you running?
So many variables we need to get specifics! Generally a locally connected device shouldn’t need credentials. Unless you are running full blown Linux.

In my experience using APC thge only time credentials are needed is when using NUT accross a network. i.e client-netserver.
In my case I have a server that has the UPS directly connected which runs NUT in netserver mode. Which needs no credentials then my PI connects as a client over the network and needs credentials.

As a shot in the dark perhaps using the IP rather than ‘localhost’ and removing the credentials may bear fruit?

For my main setup I have my UPS (APC Smart-UPS C 1500 - 2U Version) connected to my Synology NAS as follows via the usb cable for it:

Then I just put in the IP of the NAS leaving the port to 3493 and put in the dedicated user and pass for it made on the NAS.

In the case of the Pi there is this guide:

My UPS is an APC Back-upUPS650 and i am running latest release (2025.4.3) of HASSOS on a raspberry pi4b.

Reading the docs of the addon i am forced to use the addon as netserver and with credentials. After installing and starting the addon i must add the Network UPS Tool integration which ask me the IP address of the NUT server (in my case i think is the same IP address of the HA instance) and then my credentials. I leave the default port.

Not at all…

OK I have dug a little deeper. Based on what I have read so far. Understand I am trying to help! Your default username:password based on your model is apc:apc if you have changed it then enter those.

In the add-on set the driver to usbhid-ups and the port to auto

In the NUT integration specify the host as a0d7b954-nut (the hostname of the NUT add-on whatever it may be!)

Use the port as 3493 , and the username and password you configured in the NUT add-on.

You were not specific about your configuration so I have had to assume a great deal! I hope that it helps?

Wow, it works!!!
Thanks a lot… i was forced to enable the option “i like to be pawned” or similar…
But now it works…

Thanks again

You are welcome. The god is always in the detail and the more detail supplied the faster the resolution will come.
Glad it’s fixed!

2 Likes