Edit: Veröffentlicht. Bitte gern testen.(kein Neustart erforderlich)
Einbindung einer APC Back-UPS USV (USB) in die Loxone Visualisierung
Einklappen
X
-
-
Da schon die vorgängige Frage seit gut 8 Monaten nicht beantwortet wurde..
Ich kenne das Plugin nicht. Da es aber offensichtlich auf apcupsd basiert, können (theoretisch) beliebig viele UPS angebunden werden.
Manual
If you have several UPSes or you just want to give your UPS a fixed name, you can use rules like the following:
KERNEL=="hiddev*", SYSFS{serial}=="JB0319033692", SYMLINK="ups0"
KERNEL=="hiddev*", SYSFS{serial}=="JB0320004845", SYMLINK="ups1"
Kommentar
-
Habe das gefunden:
Aber bei mir hat es nicht funktioniert
Im Anhang das Fehler ....... kann mir jemand helfen?
Danke
Kommentar
-
Kommentar
-
Ich habe es gemacht wie in die Beschreibung:
Set up the apcupsd configuration files
The original apcupsd.conf file needs to be removed and replaced with separate config files for each UPS. The conf files need to be named with a pattern matching apcupsd*.conf or the modified init.d script will not find them.
und habe diese 2 erstellt:
$ sudo nano /etc/apcupsd/apcupsd-network.conf
$ sudo nano /etc/apcupsd/apcupsd-server.conf -
Ja:
## apcupsd.conf v1.1 ##
# apcupsd-network.conf
# General Configuration Directives
UPSNAME Network
UPSTYPE usb
UPSCABLE usb
DEVICE /dev/usb/ups-network
POLLTIME 60
#LOCKFILE /var/lock
# Configuration Directives Used by the Network Information Server
NETSERVER on
NISIP 127.0.0.1
NISPORT 3551
EVENTSFILE /var/log/apcupsd-network.events
#EVENTSFILEMAX 10
# Configuration Directives used during Power Failures
BATTERYLEVEL -1
MINUTES -1
TIMEOUT 0
ANNOY 0
ANNOYDELAY 0
NOLOGON disable
#NOLOGONDIR /etc
KILLDELAY 0
SCRIPTDIR /etc/apcupsd/scripts-network
PWRFAILDIR /etc/apcupsd/scripts-network
# Configuration Directives used to Control System Logging
STATTIME 0
#STATFILE /var/log/apcupsd-network.status
DATATIME 0
FACILITY DAEMON
# Configuration Directives for Sharing a UPS
UPSCLASS standalone
UPSMODE disable
-
-
Kommentar
-
Hi,
bei mir funktioniert im Grunde das Ganze Setup, nur meldet bei mir die USV nicht alle Werte zurück wie in den Threads davor dargestellt. So bekomme ich keine Spannung, Kapazität, etc...
Woran kann das liegen?
Befehl apcaccess liefert was retour, und apcupsd status meldet running.
APC : 001,018,0434
DATE : 2024-02-10 22:36:36 +0100
HOSTNAME : loxberry
VERSION : 3.14.14 (31 May 2016) debian
UPSNAME : USV
CABLE : Ethernet Link
DRIVER : SNMP UPS Driver
UPSMODE : Stand Alone
STARTTIME: 2024-02-10 21:22:15 +0100
STATUS :
MBATTCHG : 5 Percent
MINTIMEL : 3 Minutes
MAXTIME : 0 Seconds
NUMXFERS : 0
TONBATT : 0 Seconds
CUMONBATT: 0 Seconds
XOFFBATT : N/A
STATFLAG : 0x05000000
END APC : 2024-02-10 22:37:02 +0100
Edit: Mir ist nochwas aufgefallen.
- service apcupsd report funktioniert nicht so wie im screenshot oben.
Vielen Dank!
lg,
AndyZuletzt geändert von aldriana; 10.02.2024, 23:02.Kommentar
-
Hallo Allerseits,
Ich habe nun für meinem Fall den Fehler gefunden, nach einer Recherche hier: http://www.apcupsd.org/manual/#quick...-for-beginners
In dem Dokument werden weitere USV Type Settings gelistet. Eine davon ist „RFC“.
Ich habe also beim Connection String IP:PORT:RFC:161 in der apcupsd.conf konfiguriert.
Damit funktioniert jetzt meine ABB UPS auch über Loxberry und die Werte kommen brav in der Loxone App an.
Lg,
Andreas
-
-
Hallo, ich habe das Problem das in der APCUPSD.CONF der Paramter „DEVICE“ nach dem Neustart vom Loxberry überschrieben wird. Habe das File Read-Only und mit chgflags schg schreibgeschützt. Hilft alles nichts, nach dem Reboot überschreibt apcupsd die Datei und löscht die Einträge hinter dem Paramter. Wie habt ihr das gelöst? Danke! Lg, AndyKommentar
-
Hallo,
Ich konnte das Problem nun lösen. Offenbar trifft das alle User die ether Verwendung und daher das DEVICE Attribut anders als Default setzen müssen.
1) sichern der Inhalte der apcupsd.conf
2) löschen der apcupsd.conf
3) reboot
4) /etc/apcupsd ist nun ohne config und der service startet nicht
5) leere apcupsd.conf erzeugen (nano)
6) Inhalte reinkopieren
7) Speichern
8) chattr +i für die apcupsd.conf setzen
9) reboot
Nach erneutem Reboot wird die Config nicht mehr überschrieben.
PS: Die aktuelle apcupsd version hat für USVs die nicht von APC sind und mit einer SNMP Web Pro Karte ausgestattet sind nun auch weitere USV Hersteller damit kompatibel gemacht. Wenn man sich gar nicht sicher ist, welche USV Type man unter DEVICE wählen soll kann den Wert weglassen. Korrekt wäre dann:
DEVICE IP:PORT(zwei mal doppelpunkt)public
DEVICE 192.168.1.100:161:ublic
: P = Smiley
Lg,
AndyZuletzt geändert von aldriana; 12.02.2024, 12:02.
-
Kommentar