Network UPS Tools add-on

Thank you for the the pull reqest @NotoriousBDG :+1: . I merged it and NUT builds on latest stable hassio.

1 Like

Got this setup and working with my APC Back-UPS pro 1500 but i can not get the current wattage to show. I can get the ups.realpower.nominal to show but this is not the current load on the system in watts. Any body got an idea how to get this to show?

1 Like

help pls

starting version 3.2.4
    Network UPS Tools - UPS driver controller 3.6.0-5670-ga94ef24fb3
    Network UPS Tools - PowerCom protocol UPS driver 0.17 (3.6.0-5670-ga94ef24fb3)
    Unable to open auto: No such file or directory
    Things to try:
     - Check 'port=' in ups.conf
     - Check owner/permissions of all parts of path
    Fatal error: unusable configuration
    Driver failed to start (exit status=1)

Hi, I’ve added the repo but i’m not able to install the add-on

the “install” label turns red after a few seconds without install the add-on

any help?

hass.io v 0.69.0

I have the same problem, the build fails in hassio 0.69.0.
I opened an issue in https://github.com/asciinaut/hassio-addons/issues/2 .

Try using this forked repo:
https://github.com/colindunn/hassio-addons

4 Likes

It works all right. Thank you very much!

First of all, great work!
Unfortunately I can not install the add-on. It does not complete the installation process and the ‘instal’ button turns red.
Am I too incompetent to do it? :wink:
Thank you

I’m having a similar problem. Addon stopped working so I uninstalled and can’t reinstall.

Just tried the forked repo and all working now. Thanks Network UPS Tools add-on

I’ve installed the forked repo from colindunn but i have an 2.2kVA APC Smart UPS with serial communication. I’ve connected it with the same serial cable it was working on a windows PC and plugged a usb-serial converter in the raspi 3B+. Hassio reports the following hardware:
Hardware

  • serial:
    • /dev/ttyAMA0
    • /dev/ttyUSB0

so in the add on configuration i just mofified this in the standard configuration:
“upsname”: “ups”,
“driver”: “apcsmart”,
“port”: “/dev/ttyUSB0”

now when i try to start the service i get the following:

Network UPS Tools - UPS driver controller 3.8.0-3727-geade014bef
Network UPS Tools - APC Smart protocol driver 3.1 (3.8.0-3727-geade014bef)
Fatal error: unusable configuration
APC command table version 3.1
Unable to open /dev/ttyUSB0: No such file or directory
Things to try:

  • Check ‘port=’ in ups.conf
  • Check owner/permissions of all parts of path
    Driver failed to start (exit status=1)

@PAVazquez I have the same behaviour .
I have tried “chmod g+rw /dev/ttyUSB0” but it didn’t help me.
usermod command is missing in Hass.io.

Did anyone try the NUT addon that @frenck and @dale3h are adding to the community repo?

Its not released into the repo yet, but I expect it would be possible to clone as a local addon or to add it to another repo…

For now I will be using the forked repo linked by @MichaelSchemmer.

I’m unable to get the addon-nut in the Community Has.io repo to work. This is the error in the logs:

[cont-init.d] 90-upsdrvctl: executing... 
INFO: Starting the UPS drivers
Network UPS Tools - UPS driver controller 3.8.0-3727-geade014bef
Network UPS Tools - Generic HID driver 0.41 (3.8.0-3727-geade014bef)
USB communication driver 0.33
No matching HID UPS found
Driver failed to start (exit status=1)
[cont-init.d] 90-upsdrvctl: exited 1.
[cont-finish.d] executing container finish scripts...
[cont-finish.d] 99-message.sh: executing... 
-----------------------------------------------------------
                Oops! Something went wrong.
 
 We are so sorry, but something went terribly wrong when
 starting or running this add-on.
 
 Be sure to check the log above, line by line, for hints.
-----------------------------------------------------------
[cont-finish.d] 99-message.sh: exited 0.
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.

I’m able to get NUT setup on a separate RPI without any issues. It looks like the add-on can’t find the USB cable attached to the RPi. This is using a CyberPower UPS. I also have a Aeotec Z-Wave USB dongle attached to the same RPi3… not sure if that might a factor.

The other repo works fine (for me)

It doesn’t appear that either repo is working colindunn/hassio-addons or hassio-addons/addon-nut (or just isn’t visible in the add on store).

Any thoughts on how to install?

I installed colindunn’s repo last week. Its working fine for me.
You need to add the repo before it will show it the store:

https://github.com/colindunn/hassio-addons

@hijinx, I have installed it in the past, but isn’t available and is erroring.

Am I missing something?
2019-04-10_09-36-47

Cannot install the NUT server on Hassio

@ASCIInaut any thoughts? I would really appriecate it.

The repo owner needs to update the config.json to add:

  "arch": [
    "aarch64",
    "amd64",
    "armv7",
    "i386"
  ],

This is mandatory for hassio addons now.

I had the same error. It was solved by powercycling the UPS.