Plugin apc (apcups) valeurs des tensions erronées

Bonjour
Je rencontre un problème avec le plugin APC
Toutes les valeurs semble correct mais celles de " courant entrant " et " voltage pile " sont incorrect
Pour le « courant entrant » cela semble être celle du « pourcentage batterie » et pour « voltage pile » cela semble être celle du « temps sur batterie ».
Est il possible d’avoir les bonnes valeurs ( courant entrant et voltage pile )?

Bonjour,
Je n’ai pas le même constat chez moi ;

Il faut fournir plus d’info avec ce type de demande: capture d’écran du problème, log montrant les valeurs etc

Vous dites vous même « cela semble être »; comment donc affirmer qu’il y a un problème et comment celui ci pourrait être résolu si c’était le cas ?

Bonjour,
D’accord et merci pour votre réponse
Voici une capture d’écran du plugin sur le dashboard et les logs :
Capture d’écran 2020-11-15 090447

log apcups

[2020-11-15 09:00:15][DEBUG] : Get information string APC      : 001,028,0679 DATE     : 2020-11-15 08:59:59 +0100   HOSTNAME : NUC VERSION  : 3.14.14 (31 May 2016) debian UPSNAME  : jeedom UPS_IDEN CABLE    : USB Cable DRIVER   : USB UPS Driver UPSMODE  : Stand Alone STARTTIME: 2020-11-14 22:50:05 +0100   MODEL    : Protection Station STATUS   : ONLINE  LOADPCT  : 4.0 Percent BCHARGE  : 100.0 Percent TIMELEFT : 31.2 Minutes MBATTCHG : 5 Percent MINTIMEL : 3 Minutes MAXTIME  : 0 Seconds OUTPUTV  : 230.0 Volts DWAKE    : -1 Seconds LOTRANS  : 184.0 Volts HITRANS  : 264.0 Volts ALARMDEL : 30 Seconds NUMXFERS : 0 TONBATT  : 0 Seconds CUMONBATT: 0 Seconds XOFFBATT : N/A STATFLAG : 0x05000008 SERIALNO : AN2E49008 END APC  : 2020-11-15 09:00:15 +0100    from apcaccess
[2020-11-15 09:00:15][DEBUG] : Get information key APC with value 001,028,0679
[2020-11-15 09:00:15][DEBUG] : Get information key DATE with value 2020-11-15 08:59:59 +0100
[2020-11-15 09:00:15][DEBUG] : Get information key HOSTNAME with value NUC
[2020-11-15 09:00:15][DEBUG] : Get information key VERSION with value 3.14.14 (31 May 2016) debian
[2020-11-15 09:00:15][DEBUG] : Get information key UPSNAME with value jeedom UPS_IDEN
[2020-11-15 09:00:15][DEBUG] : Get information key CABLE with value USB Cable
[2020-11-15 09:00:15][DEBUG] : Get information key DRIVER with value USB UPS Driver
[2020-11-15 09:00:15][DEBUG] : Get information key UPSMODE with value Stand Alone
[2020-11-15 09:00:15][DEBUG] : Get information key STARTTIME with value 2020-11-14 22:50:05 +0100
[2020-11-15 09:00:15][DEBUG] : Get information key MODEL with value Protection Station
[2020-11-15 09:00:15][DEBUG] : Get information key STATUS with value ONLINE
[2020-11-15 09:00:15][DEBUG] : Get information key LOADPCT with value 4.0 Percent
[2020-11-15 09:00:15][DEBUG] : Get information key BCHARGE with value 100.0 Percent
[2020-11-15 09:00:15][DEBUG] : Get information key TIMELEFT with value 31.2 Minutes
[2020-11-15 09:00:15][DEBUG] : Get information key MBATTCHG with value 5 Percent
[2020-11-15 09:00:15][DEBUG] : Get information key MINTIMEL with value 3 Minutes
[2020-11-15 09:00:15][DEBUG] : Get information key MAXTIME with value 0 Seconds
[2020-11-15 09:00:15][DEBUG] : Get information key OUTPUTV with value 230.0 Volts
[2020-11-15 09:00:15][DEBUG] : Get information key DWAKE with value -1 Seconds
[2020-11-15 09:00:15][DEBUG] : Get information key LOTRANS with value 184.0 Volts
[2020-11-15 09:00:15][DEBUG] : Get information key HITRANS with value 264.0 Volts
[2020-11-15 09:00:15][DEBUG] : Get information key ALARMDEL with value 30 Seconds
[2020-11-15 09:00:15][DEBUG] : Get information key NUMXFERS with value 0
[2020-11-15 09:00:15][DEBUG] : Get information key TONBATT with value 0 Seconds
[2020-11-15 09:00:15][DEBUG] : Get information key CUMONBATT with value 0 Seconds
[2020-11-15 09:00:15][DEBUG] : Get information key XOFFBATT with value N/A
[2020-11-15 09:00:15][DEBUG] : Get information key STATFLAG with value 0x05000008
[2020-11-15 09:00:15][DEBUG] : Get information key SERIALNO with value AN2E49008
[2020-11-15 09:00:15][DEBUG] : Get information key END APC with value 2020-11-15 09:00:15 +0100
[2020-11-15 09:00:15][DEBUG] : Update command loadpct
[2020-11-15 09:00:15][DEBUG] :  => apply default case
[2020-11-15 09:00:15][DEBUG] :  => update command loadpct with 4.0
[2020-11-15 09:00:15][DEBUG] : Update command bcharge
[2020-11-15 09:00:15][DEBUG] :  => apply default case
[2020-11-15 09:00:15][DEBUG] :  => update battery status
[2020-11-15 09:00:15][DEBUG] :  => update command bcharge with 100.0
[2020-11-15 09:00:15][DEBUG] : Update command linev
[2020-11-15 09:00:15][DEBUG] :  => apply default case
[2020-11-15 09:00:15][DEBUG] :  => update command linev with 100.0
[2020-11-15 09:00:15][DEBUG] : Update command event
[2020-11-15 09:00:15][DEBUG] :  => ignore
[2020-11-15 09:00:15][DEBUG] : Update command model
[2020-11-15 09:00:15][DEBUG] :  => apply model case
[2020-11-15 09:00:15][DEBUG] :  => update command model with Protection Station
[2020-11-15 09:00:15][DEBUG] : Update command outpower
[2020-11-15 09:00:15][DEBUG] :  => apply outpower case
[2020-11-15 09:00:15][DEBUG] :  => update command outpower with 17.16
[2020-11-15 09:00:15][DEBUG] : Update command status
[2020-11-15 09:00:15][DEBUG] :  => apply default case
[2020-11-15 09:00:15][DEBUG] :  => update command status with ONLINE
[2020-11-15 09:00:15][DEBUG] : Update command timeleft
[2020-11-15 09:00:15][DEBUG] :  => apply default case
[2020-11-15 09:00:15][DEBUG] :  => update command timeleft with 31.2
[2020-11-15 09:00:15][DEBUG] : Update command battv
[2020-11-15 09:00:15][DEBUG] :  => apply default case
[2020-11-15 09:00:15][DEBUG] :  => update command battv with 31.2
[2020-11-15 09:01:11][DEBUG] : Get information string APC      : 001,028,0679 DATE     : 2020-11-15 09:00:59 +0100   HOSTNAME : NUC VERSION  : 3.14.14 (31 May 2016) debian UPSNAME  : jeedom UPS_IDEN CABLE    : USB Cable DRIVER   : USB UPS Driver UPSMODE  : Stand Alone STARTTIME: 2020-11-14 22:50:05 +0100   MODEL    : Protection Station STATUS   : ONLINE  LOADPCT  : 4.0 Percent BCHARGE  : 100.0 Percent TIMELEFT : 31.2 Minutes MBATTCHG : 5 Percent MINTIMEL : 3 Minutes MAXTIME  : 0 Seconds OUTPUTV  : 230.0 Volts DWAKE    : -1 Seconds LOTRANS  : 184.0 Volts HITRANS  : 264.0 Volts ALARMDEL : 30 Seconds NUMXFERS : 0 TONBATT  : 0 Seconds CUMONBATT: 0 Seconds XOFFBATT : N/A STATFLAG : 0x05000008 SERIALNO : AN2E49008 END APC  : 2020-11-15 09:01:11 +0100    from apcaccess
[2020-11-15 09:01:11][DEBUG] : Get information key APC with value 001,028,0679
[2020-11-15 09:01:11][DEBUG] : Get information key DATE with value 2020-11-15 09:00:59 +0100
[2020-11-15 09:01:11][DEBUG] : Get information key HOSTNAME with value NUC
[2020-11-15 09:01:11][DEBUG] : Get information key VERSION with value 3.14.14 (31 May 2016) debian
[2020-11-15 09:01:11][DEBUG] : Get information key UPSNAME with value jeedom UPS_IDEN
[2020-11-15 09:01:11][DEBUG] : Get information key CABLE with value USB Cable
[2020-11-15 09:01:11][DEBUG] : Get information key DRIVER with value USB UPS Driver
[2020-11-15 09:01:11][DEBUG] : Get information key UPSMODE with value Stand Alone
[2020-11-15 09:01:11][DEBUG] : Get information key STARTTIME with value 2020-11-14 22:50:05 +0100
[2020-11-15 09:01:11][DEBUG] : Get information key MODEL with value Protection Station
[2020-11-15 09:01:11][DEBUG] : Get information key STATUS with value ONLINE
[2020-11-15 09:01:11][DEBUG] : Get information key LOADPCT with value 4.0 Percent
[2020-11-15 09:01:11][DEBUG] : Get information key BCHARGE with value 100.0 Percent
[2020-11-15 09:01:11][DEBUG] : Get information key TIMELEFT with value 31.2 Minutes
[2020-11-15 09:01:11][DEBUG] : Get information key MBATTCHG with value 5 Percent
[2020-11-15 09:01:11][DEBUG] : Get information key MINTIMEL with value 3 Minutes
[2020-11-15 09:01:11][DEBUG] : Get information key MAXTIME with value 0 Seconds
[2020-11-15 09:01:11][DEBUG] : Get information key OUTPUTV with value 230.0 Volts
[2020-11-15 09:01:11][DEBUG] : Get information key DWAKE with value -1 Seconds
[2020-11-15 09:01:11][DEBUG] : Get information key LOTRANS with value 184.0 Volts
[2020-11-15 09:01:11][DEBUG] : Get information key HITRANS with value 264.0 Volts
[2020-11-15 09:01:11][DEBUG] : Get information key ALARMDEL with value 30 Seconds
[2020-11-15 09:01:11][DEBUG] : Get information key NUMXFERS with value 0
[2020-11-15 09:01:11][DEBUG] : Get information key TONBATT with value 0 Seconds
[2020-11-15 09:01:11][DEBUG] : Get information key CUMONBATT with value 0 Seconds
[2020-11-15 09:01:11][DEBUG] : Get information key XOFFBATT with value N/A
[2020-11-15 09:01:11][DEBUG] : Get information key STATFLAG with value 0x05000008
[2020-11-15 09:01:11][DEBUG] : Get information key SERIALNO with value AN2E49008
[2020-11-15 09:01:11][DEBUG] : Get information key END APC with value 2020-11-15 09:01:11 +0100
[2020-11-15 09:01:11][DEBUG] : Update command loadpct
[2020-11-15 09:01:11][DEBUG] :  => apply default case
[2020-11-15 09:01:11][DEBUG] :  => update command loadpct with 4.0
[2020-11-15 09:01:11][DEBUG] : Update command bcharge
[2020-11-15 09:01:11][DEBUG] :  => apply default case
[2020-11-15 09:01:11][DEBUG] :  => update battery status
[2020-11-15 09:01:11][DEBUG] :  => update command bcharge with 100.0
[2020-11-15 09:01:11][DEBUG] : Update command linev
[2020-11-15 09:01:11][DEBUG] :  => apply default case
[2020-11-15 09:01:11][DEBUG] :  => update command linev with 100.0
[2020-11-15 09:01:11][DEBUG] : Update command event
[2020-11-15 09:01:11][DEBUG] :  => ignore
[2020-11-15 09:01:11][DEBUG] : Update command model
[2020-11-15 09:01:11][DEBUG] :  => apply model case
[2020-11-15 09:01:11][DEBUG] :  => update command model with Protection Station
[2020-11-15 09:01:11][DEBUG] : Update command outpower
[2020-11-15 09:01:11][DEBUG] :  => apply outpower case
[2020-11-15 09:01:11][DEBUG] :  => update command outpower with 17.16
[2020-11-15 09:01:11][DEBUG] : Update command status
[2020-11-15 09:01:11][DEBUG] :  => apply default case
[2020-11-15 09:01:11][DEBUG] :  => update command status with ONLINE
[2020-11-15 09:01:11][DEBUG] : Update command timeleft
[2020-11-15 09:01:11][DEBUG] :  => apply default case
[2020-11-15 09:01:11][DEBUG] :  => update command timeleft with 31.2
[2020-11-15 09:01:11][DEBUG] : Update command battv
[2020-11-15 09:01:11][DEBUG] :  => apply default case
[2020-11-15 09:01:11][DEBUG] :  => update command battv with 31.2
[2020-11-15 09:02:10][DEBUG] : Get information string APC      : 001,028,0679 DATE     : 2020-11-15 09:02:00 +0100   HOSTNAME : NUC VERSION  : 3.14.14 (31 May 2016) debian UPSNAME  : jeedom UPS_IDEN CABLE    : USB Cable DRIVER   : USB UPS Driver UPSMODE  : Stand Alone STARTTIME: 2020-11-14 22:50:05 +0100   MODEL    : Protection Station STATUS   : ONLINE  LOADPCT  : 4.0 Percent BCHARGE  : 100.0 Percent TIMELEFT : 31.2 Minutes MBATTCHG : 5 Percent MINTIMEL : 3 Minutes MAXTIME  : 0 Seconds OUTPUTV  : 230.0 Volts DWAKE    : -1 Seconds LOTRANS  : 184.0 Volts HITRANS  : 264.0 Volts ALARMDEL : 30 Seconds NUMXFERS : 0 TONBATT  : 0 Seconds CUMONBATT: 0 Seconds XOFFBATT : N/A STATFLAG : 0x05000008 SERIALNO : AN2E49008 END APC  : 2020-11-15 09:02:10 +0100    from apcaccess
[2020-11-15 09:02:10][DEBUG] : Get information key APC with value 001,028,0679
[2020-11-15 09:02:10][DEBUG] : Get information key DATE with value 2020-11-15 09:02:00 +0100
[2020-11-15 09:02:10][DEBUG] : Get information key HOSTNAME with value NUC
[2020-11-15 09:02:10][DEBUG] : Get information key VERSION with value 3.14.14 (31 May 2016) debian
[2020-11-15 09:02:10][DEBUG] : Get information key UPSNAME with value jeedom UPS_IDEN
[2020-11-15 09:02:10][DEBUG] : Get information key CABLE with value USB Cable
[2020-11-15 09:02:10][DEBUG] : Get information key DRIVER with value USB UPS Driver
[2020-11-15 09:02:10][DEBUG] : Get information key UPSMODE with value Stand Alone
[2020-11-15 09:02:10][DEBUG] : Get information key STARTTIME with value 2020-11-14 22:50:05 +0100
[2020-11-15 09:02:10][DEBUG] : Get information key MODEL with value Protection Station
[2020-11-15 09:02:10][DEBUG] : Get information key STATUS with value ONLINE
[2020-11-15 09:02:10][DEBUG] : Get information key LOADPCT with value 4.0 Percent
[2020-11-15 09:02:10][DEBUG] : Get information key BCHARGE with value 100.0 Percent
[2020-11-15 09:02:10][DEBUG] : Get information key TIMELEFT with value 31.2 Minutes
[2020-11-15 09:02:10][DEBUG] : Get information key MBATTCHG with value 5 Percent
[2020-11-15 09:02:10][DEBUG] : Get information key MINTIMEL with value 3 Minutes
[2020-11-15 09:02:10][DEBUG] : Get information key MAXTIME with value 0 Seconds
[2020-11-15 09:02:10][DEBUG] : Get information key OUTPUTV with value 230.0 Volts
[2020-11-15 09:02:10][DEBUG] : Get information key DWAKE with value -1 Seconds
[2020-11-15 09:02:10][DEBUG] : Get information key LOTRANS with value 184.0 Volts
[2020-11-15 09:02:10][DEBUG] : Get information key HITRANS with value 264.0 Volts
[2020-11-15 09:02:10][DEBUG] : Get information key ALARMDEL with value 30 Seconds
[2020-11-15 09:02:10][DEBUG] : Get information key NUMXFERS with value 0
[2020-11-15 09:02:10][DEBUG] : Get information key TONBATT with value 0 Seconds
[2020-11-15 09:02:10][DEBUG] : Get information key CUMONBATT with value 0 Seconds
[2020-11-15 09:02:10][DEBUG] : Get information key XOFFBATT with value N/A
[2020-11-15 09:02:10][DEBUG] : Get information key STATFLAG with value 0x05000008
[2020-11-15 09:02:10][DEBUG] : Get information key SERIALNO with value AN2E49008
[2020-11-15 09:02:10][DEBUG] : Get information key END APC with value 2020-11-15 09:02:10 +0100
[2020-11-15 09:02:10][DEBUG] : Update command loadpct
[2020-11-15 09:02:10][DEBUG] :  => apply default case
[2020-11-15 09:02:10][DEBUG] :  => update command loadpct with 4.0
[2020-11-15 09:02:10][DEBUG] : Update command bcharge
[2020-11-15 09:02:10][DEBUG] :  => apply default case
[2020-11-15 09:02:10][DEBUG] :  => update battery status
[2020-11-15 09:02:10][DEBUG] :  => update command bcharge with 100.0
[2020-11-15 09:02:10][DEBUG] : Update command linev
[2020-11-15 09:02:10][DEBUG] :  => apply default case
[2020-11-15 09:02:10][DEBUG] :  => update command linev with 100.0
[2020-11-15 09:02:10][DEBUG] : Update command event
[2020-11-15 09:02:10][DEBUG] :  => ignore
[2020-11-15 09:02:10][DEBUG] : Update command model
[2020-11-15 09:02:10][DEBUG] :  => apply model case
[2020-11-15 09:02:10][DEBUG] :  => update command model with Protection Station
[2020-11-15 09:02:10][DEBUG] : Update command outpower
[2020-11-15 09:02:10][DEBUG] :  => apply outpower case
[2020-11-15 09:02:10][DEBUG] :  => update command outpower with 17.16
[2020-11-15 09:02:10][DEBUG] : Update command status
[2020-11-15 09:02:10][DEBUG] :  => apply default case
[2020-11-15 09:02:10][DEBUG] :  => update command status with ONLINE
[2020-11-15 09:02:10][DEBUG] : Update command timeleft
[2020-11-15 09:02:10][DEBUG] :  => apply default case
[2020-11-15 09:02:10][DEBUG] :  => update command timeleft with 31.2
[2020-11-15 09:02:10][DEBUG] : Update command battv
[2020-11-15 09:02:10][DEBUG] :  => apply default case
[2020-11-15 09:02:10][DEBUG] :  => update command battv with 31.2

log apcups_dep


Reading package lists...
Building dependency tree...
Reading state information...
apcupsd is already the newest version (3.14.14-2).
The following packages were automatically installed and are no longer required:
  libnspr4 libnss3 libupsclient4
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 113 not upgraded.
Fichier de conf déjà modifier

Ok le problème est plus clair effectivement; juste ne pas oublier de mettre les logs dans un Texte préformaté avec l'outils </> la prochaine fois pour que ca soit plus lisible.

Je confirme que je n’ai pas le même comportement chez moi mais je n’ai pas encore vu ce qu’il n’allait pas dans vos logs.
Quel modèle d’onduleur?

Désolé je ne connais pas cette outils de préformatage de texte.
Mon onduleur est un Eaton ups protection station 650.

L’outils c’est le bouton que j’ai indiqué visible quand on rédige un message.

Le plug-in est fait pour les onduleurs APC. J’ignore la compatibilité avec les autres onduleurs.

1 « J'aime »

ok je le saurai pour la prochaine fois pour </>.
Le plugin fonctionne avec cette onduleur … juste cette erreur.
Je voulais savoir si il était possible de diriger la bonne valeur (qui est dans le log ) vers la bonne commande .

il faut configurer

Configurer apcupsd

nano /etc/apcupsd/apcupsd.conf

mettre les infos correspondantes a eaton 650

nano /etc/default/apcupsd
mettre :
ISCONFIGURED=yes

Une config pour eaton 650

/etc/apcupsd/apcupsd.conf
UPSNAME EATON
UPSCABLE usb
UPSTYPE usb
LOCKFILE /var/lock
SCRIPTDIR /etc/apcupsd
PWRFAILDIR /etc/apcupsd
NOLOGINDIR /etc
ONBATTERYDELAY 6
BATTERYLEVEL 5
MINUTES 3
TIMEOUT 0
ANNOY 300
ANNOYDELAY 60
NOLOGON disable
KILLDELAY 0
NETSERVER on
NISIP 192.168.0.155 <<<---a ajuster avec l'ip de la machine ou est l'onduleur
NISPORT 3551
EVENTSFILE /var/log/apcupsd.events
EVENTSFILEMAX 10
UPSCLASS standalone
UPSMODE disable
STATTIME 0
STATFILE /var/log/apcupsd.status
LOGSTATS off
DATATIME 0

Edit: .
adapter l’IP

toutes les infos ne sont pas disponibles … voir ici celles en affichage

pour finir et voir les infos tape en ssh :
apcaccess status

tu devrait obtenir un résultat proche de celui-ci :

root@pve:/# apcaccess status
APC      : 001,029,0725
DATE     : 2020-11-15 12:10:01 +0100  
HOSTNAME : pve
VERSION  : 3.14.14 (31 May 2016) debian
UPSNAME  : EATON
CABLE    : USB Cable
DRIVER   : USB UPS Driver
UPSMODE  : Stand Alone
STARTTIME: 2020-10-18 09:58:24 +0200  
MODEL    : Ellipse ECO
STATUS   : ONLINE   '<<<------------- si ça fonctionne si non OFFLINE -->> revoir ta configuration'
LOADPCT  : 9.0 Percent
BCHARGE  : 100.0 Percent
TIMELEFT : 35.9 Minutes
MBATTCHG : 5 Percent
MINTIMEL : 3 Minutes
MAXTIME  : 0 Seconds
OUTPUTV  : 230.0 Volts
DWAKE    : -1 Seconds
LOTRANS  : 184.0 Volts
HITRANS  : 264.0 Volts
ALARMDEL : 30 Seconds
NUMXFERS : 1
XONBATT  : 2020-10-19 13:36:59 +0200  
TONBATT  : 0 Seconds
CUMONBATT: 1 Seconds
XOFFBATT : 2020-10-19 13:37:00 +0200  
STATFLAG : 0x05000008
SERIALNO : 000000000

1 « J'aime »

Merci Olivier

j’ai déjà configuré mon onduleur et il y et bien reconnu et j’ai bien toutes les valeurs,
sauf que celles du courant entrant et le voltage de la pile ne sont pas correct.
Capture d’écran 2020-11-15 090447

Tu est sur un EATON 650 les réponses ne son pas les même qu’un APC

que répond en ssh :
apcaccess status

seule les réponses a cette commande peuvent se retrouver dans le plugin rien d’autre.

a la final voici ce que tu peut obtenir :

Capture d’écran du 2020-11-15 12-32-37

mon pseudo est @olive mais je ne me prénome pas olivier mais Sylvain :joy:

1 « J'aime »

oups désolé … :joy:
ok merci pour ton aide précieuse Sylvain :grin:

Si la réponse conviens a ton utilisation n’oublie pas de solutionner le post merci.

en faites je vois que sur ton apcsaccess status il y a la meme valeur « OUTPUTV : 230.0 Volts » mais on ne peux pas la récupérer dans le plugin c’est ca ?

OUTPUTV : 230.0 Volts c’est la valeur de sortie pas de l’entrée !

Hélas pas présente dans les commandes du plugin

Ok …sympa ton widget pour la batterie ou l’a tu trouvé ?

C’est un widget de @Tarlak tu devrait trouver facilement sur ce forum

2 « J'aime »

Ce sujet a été automatiquement fermé après 24 heures suivant le dernier commentaire. Aucune réponse n’est permise dorénavant.