Giter VIP home page Giter VIP logo

Comments (7)

mcfrojd avatar mcfrojd commented on May 29, 2024 1

Tried to install it on Ubuntu Server 22.10 (32-bit) instead of Pi OS Lite (64-bit), but i still can not add it to home-assistant.

Another question, is it possible to make the script install the new version 2.8.0 instead of the 2.7.4 that seems to be the latest one when "apt install nut"

from nutandrpi.

mcfrojd avatar mcfrojd commented on May 29, 2024 1

Ah.. My mistake.
When i chaged the ip to 205 Home-Assistant was able to connect.
Thanks for your help.
Maybe you find time and a way to upgrade to latest version in the future.

from nutandrpi.

dzomaya avatar dzomaya commented on May 29, 2024

Hey @mcfrojd

But when trying to connect with Windows NUT Client or when trying to add the server into Home-Assistant i dont seem to be able to connect.

I haven't tested this, but my hunch is you'll be able to get it working by adding a LISTEN directive with the appropriate address and port to the /etc/upsd.conf.
The default config here gets the web server and SNMP going — which use port 80 and 161 (the snmp in your netstat output) — but doesn't modify the default LISTEN settings for upsd. The default upsd port is 3493 and the default behavior is to listen on localhost (which is happening based on your netstat showing localhost:nut).

Example LISTEN directives below:

LISTEN 127.0.0.1 3493 # localhost IPv4
LISTEN 192.0.2.11 3493 # Another IPv4 address

After you make config changes you can reload upsd like this

upsd -c reload

If you're able to test it out and it works, let me know!

Another question, is it possible to make the script install the new version 2.8.0 instead of the 2.7.4 that seems to be the latest one when "apt install nut"

Good question! We could add something that installs from source code. I've kinda debated whether or not it makes sense to depend on the package managers or to go out and get specific versions of NUT and build from source. I expect that most of the popular OS repos will have 2.8.0 "soon" and the problem will solve itself, but I don't have a good feel for exactly how long "soon" is.

from nutandrpi.

mcfrojd avatar mcfrojd commented on May 29, 2024

Hello.

I added the lines:

LISTEN 127.0.0.1 3493
LISTEN 192.168.111.90 3493
LISTEN 192.168.111.25 3493

to the file /etc/nut/upsd.conf

Now the windows nut client gives these log lines:

[Id 5: 2022-11-28 17:01:49] Connection to Nut Host 192.168.111.205:3493 Failed: Value can not be null. Parametername: value
[Id 3: 2022-11-28 17:01:49] Disconnected from Nut Host
[Id 2: 2022-11-28 17:01:49] Connection to Nut Host 192.168.111.205:3493 Established

So at least it was able to connect a short while.

Home-Assistant can't connect still.

from nutandrpi.

dzomaya avatar dzomaya commented on May 29, 2024

@mcfrojd
Is the IP address of the PI 192.168.111.205?
If so, use that in the LISTEN directive

from nutandrpi.

dzomaya avatar dzomaya commented on May 29, 2024

Cool, thanks @mcfrojd!
I'll close this question and create a feature request for 2.8.0.
If you have other questions, just reply back. Thanks for using the project!

from nutandrpi.

dzomaya avatar dzomaya commented on May 29, 2024

Created #3 and closing this one.

from nutandrpi.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.