Inhaltsverzeichnis

NUT Network UPS Tools

NUT 🇬🇧 steht für Network UPS Tools und ist ein Client/Server-Framework zur Ansteuerung und Verwaltung einer USV (unterbrechungsfreie Stromversorgung, englisch: UPS). Unterstützt werden über 100 verschiedene Hersteller und Modelle 🇬🇧. Die Kernprogrammkomponenten arbeiten als Systemdienst (Daemon), d.h. diese werden automatisch beim Einschalten des Rechners gestartet und arbeiten im Hintergrund.

1)

apt install nut

Installation

As Netclient

Als Slave

nano /etc/nut/nut.conf

MODE=netclient

Installation für GreenCell GC 600VA

https://mic22.medium.com/basic-nut-configuration-for-green-cell-ups-and-home-assistant-integration-e08affcc54f

Debian as Client for QNAP-USP-Server

nano /etc/nut/nut.conf

MODE=netclient

nano /etc/nut/upsmon.conf

MONITOR qnapups@192.168.123.3 1 [username-qnap] [password] slave

Das ist eigentlich alles.

service nut-client stop
service nut-client start

Testen mit:

upsc qnapups@192.168.123.3

2024:

Edit vi /etc/nut/upsd.users

[your_username]
  password = YOUR_PASSWORD_HERE
  actions = SET
  instcmds = ALL
  upsmon master

Meins:


8. Reload config upsd -c reload and then restart the driver upsdrvctl start just to be sure all is set

home assistant

ch habe eine Green Cell PowerProof USV 650VA 360W

An USB angeschlossen.

Funktioniert, wenn Puffer in USB-Port gelöscht (ausschalten/umstecken)

users:
  - username: gerald
    password: xxxx
    instcmds:
      - all
    actions: []
devices:
  - name: myups
    driver: nutdrv_qx
    port: auto
    config:
      - vendorid = 0665
      - productid = 5161
      - subdriver = cypress
      - pollinterval = 5
      - offdelay = 60
mode: netserver
shutdown_host: false
listen_address: 0.0.0.0

Neuer Nutzer (für QNAP). Gibt Probleme:

  - username: monuser
    password: pass
    actions: []
    instcmds: []