core: Network UPS Tools (NUT) integration not connecting to Network UPS Tools Add-on
The problem
I can get “Network UPS Tools” add-on to connect with the NUT integration.
Tried removing the add-on, restarting, and installing it again. Then the device is discovered, but it always fails to connect when I enter the username and password defined in the Add-on settings section.
What version of Home Assistant Core has the issue?
core-2022.7.6
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Network UPS Tools (NUT)
Link to integration documentation on our website
https://www.home-assistant.io/integrations/nut
Diagnostics information
I only see the user and password fields in /config/integrations (not the host or port as I previously did)
then, when clicking “Configure”
Then, when I click “Submit”, I get this:
Add-on is installed (v0.11.0) and it looks it is working fine as per the logs
Example YAML snippet
No response
Anything in the logs that might be useful for us?
-----------------------------------------------------------
Add-on: Network UPS Tools
Manage battery backup (UPS) devices
-----------------------------------------------------------
Add-on version: 0.11.0
You are running the latest version of this add-on.
System: Home Assistant OS 8.2 (amd64 / generic-x86-64)
Home Assistant Core: 2022.7.3
Home Assistant Supervisor: 2022.07.0
-----------------------------------------------------------
Please, share the above information when looking for help
or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
cont-init: info: /etc/cont-init.d/00-banner.sh exited 0
cont-init: info: running /etc/cont-init.d/01-log-level.sh
Log level is set to INFO
cont-init: info: /etc/cont-init.d/01-log-level.sh exited 0
cont-init: info: running /etc/cont-init.d/02-set-timezone.sh
[09:43:33] INFO: Configuring timezone
cont-init: info: /etc/cont-init.d/02-set-timezone.sh exited 0
cont-init: info: running /etc/cont-init.d/nut.sh
[09:43:33] INFO: Setting mode to netserver...
[09:43:33] INFO: Connected USB devices:
Bus 002 Device 002: ID 8087:8000 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 0665:5161 Cypress Semiconductor USB to Serial
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
[09:43:33] INFO: Generating /etc/nut/upsd.users...
[09:43:33] INFO: Configuring user: lyonnups
[09:43:33] INFO: Password is NOT in the Have I Been Pwned database! Nice!
[09:43:34] INFO: Configuring Device named lyonnups...
[09:43:34] INFO: Starting the UPS drivers...
Supported UPS detected with mustek protocol
Vendor information unavailable
No values provided for battery high/low voltages in ups.conf
Using 'guestimation' (low: 10.400000, high: 13.000000)!
Battery runtime will not be calculated (runtimecal not set)
Network UPS Tools - UPS driver controller 2.7.4
cont-init: info: /etc/cont-init.d/nut.sh exited 0
cont-init: info: running /etc/cont-init.d/nutclient.sh
cont-init: info: /etc/cont-init.d/nutclient.sh exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun upsd (no readiness notification)
services-up: info: copying legacy longrun upsmon (no readiness notification)
s6-rc: info: service legacy-services successfully started
[09:43:36] INFO: Starting the UPS information server...
0.000000 fopen /run/nut/upsd.pid: No such file or directory
0.000222 listening on 0.0.0.0 port 3493
0.000379 Connected to UPS [lyonnups]: blazer_usb-lyonnups
[09:43:36] INFO: Starting the UPS monitor and shutdown controller...
0.000000 fopen /run/nut/upsmon.pid: No such file or directory
0.000179 Using power down flag file /etc/killpower
0.000325 UPS: lyonnups@localhost (master) (power value 1)
0.000366 debug level is '1'
0.000371 Warning: running as one big root process by request (upsmon -p)
0.000516 Init SSL without certificate database
0.001605 Trying to connect to UPS [lyonnups@localhost]
0.507247 User upsmonmaster@127.0.0.1 logged into UPS [lyonnups]
0.002299 Logged into UPS lyonnups@localhost
Additional information
Was working previously when host and port fields were entered in the popup.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 24
In my case it helped to change the host to:
a0d7b954-nut
(I had localhost). https://github.com/home-assistant/core/issues/55888#issuecomment-1179123795@bdraco, @ollo69, maybe it would be worthwhile to expose this in the documentation of both the integration and the addon? Or set it as the default value in the integration configuration?
After spending hours on this, this is the only thing that worked for me. Thank You
link doesnt work for me. having the same problem. nut running on the router, cannot connect anymore from the Home Assistant plugin.
@maisonobe @Radixb Here is the solution. https://community.home-assistant.io/t/how-to-configure-nut/399153/16