[SOLVED]APC Back-UPS BX 2200VA connected via USB to ubuntu machine running HA. Any way to interface with it?

Did you install apcupsd on debian first? or just the add-on?

Can i have an example of your configuration, what do you use on user etc?

1 Like

I just installed using the HASSIO Add-on manager. Here is how I have it configured in the Addon.

users:
  - username: admin
    password: *****
    instcmds:
      - all
    actions: []
devices:
  - name: myups
    driver: usbhid-ups
    port: auto
    config: []
mode: netserver
shutdown_host: 'true'

What are these credentials? Just random or do you set them somewhere?

They can be set to your preference they are used for the integration:

Think i got it.

Installing apcupsd made my installation hang, couldnt reach HA.

Removed it and trying again.

I got it to launch the server,
image

I set a simple username and pass, but I cant get the integration to connect.
image

Any ideas?

Using a0d7b954_nut as host as suggested here also does not work…

Not sure try changing this and using the host as your Hassio ip address or hostname.
image

That was the issue, I never entered the port there, was empty by default…
Works great.
Thanks for sticking with me :slight_smile:

1 Like

Hi there, I’m trying to add an APC UPS connected via USB with this integration too.
Sorry, for the dumb question, I’m unable to install NUT as it fails to connect per @krash post (failed to connect).
I can see the APC is connected to my USB docker container (Bus 001 Device 002: ID 051d:0003).
What simple step am I missing here?
I’ve tried changing my host to the IP of my HA instance. No luck…
The add-on doesn’t actually load into HA as it fails to connect…
Is there something I need to load via apt in my host OS?

Any assistance greatly appreciated.

I dont know if it will help, but here is what i did:

Here is my config:


Which gives these logs when the add-on is started/restarted:

And then you need to add the integration, by clicking “+add integration” and searching for NUT:


I just did these steps and it worked.

Thank you!
My problem seems to begin even before this.
The add-on fails to install at all.
Which means I’m unable to modify the options as you’ve shown them.
I try To enable the integration, I’m immediately presented with the dialogue box, which fails no matter what I enter.
As a result of the failure I have no option to modify the add-on.
Hmm, I must be doing something totally silly.

No need to run any apt installations from the host OS then?

Once again thanks so much for replying.
I’m out at the moment, I’ll trawl my logs to see what’s reported.
sigh.

Does it fail constantly? I’ve had some failed installations at times (especially on HA upgrades) due to network connection.
They resolved themselves after a couple of days.

I dont remember having to install something extra.

This fails for me consistently.

In your original reply to me you mentioned you modified your config, then added the add-on?
What config were you modifying if not the add-on?
Is it in the configturation.yaml?

I’m trying the add the add-on, then modify the options yaml, then start the add-on. but the add-on isn’t loading…
This from my logs when I try and add the integration:

Failure getting NUT ups alias, Socket error.

What are you referring to exactly please?

I don’t know where I can find this
your options without adding the add-on in HA…

Understood.
Your issue is one step before my steps.
Maybe go to github and raise an issue with the developers? So you can troubleshoot the installation part?

1 Like

Gosh, I restarted HA, started again and it’s up!
Great thread. Got me over the line!

Thank you so much!

yeah HA sometimes refuses to download stuff :slight_smile:
well done!

I believe you need another docker container with NUT with your battery backup connected. You will then use the ip& port of that docker container to set it up in HA.

Thanks after struggling with this. This was the one thing I over looked.

If it helps anyone:
In add-ons: Install Network UPS Tools
Configuration below:

devices:
  - name: apcups
    driver: usbhid-ups
    port: auto
    config:
      - vendorid = 051d
mode: netserver
shutdown_host: 'false'
users:
  - actions: []
    instcmds:
      - all
    password: pasword
    username: apc

Put port 3493 under network

then in Devices & Services install NUT