Bonjour,
j’ai un petit soucis avec les remontés de mon onduleur
je viens d’installer le plugin hier soir et après avoir suivie les différents poste sur le problème de remonté, j’y suis arrivé
par contre. j’ai plusieurs fois la même valeur pour différente fonction ( batterie - charge - courant entrant )
y a t il un endroit ou je dois configurer un fichier pour recuperer les informations ?
Merci
Informations Jeedom Delta
Core : 4.4.13 (master)
DNS Jeedom Delta : non
Plugin : Onduleur (APC)
Version : 2022-10-09 20:36:56 (stable)
Il ne faut pas identifié les développeur pour infos , et en plus tu n’aura aucune réponse de ce développeur (par expérience si le plugin n’a pas été mis a jour depuis des années alors qui a des bugs, c’'est que le développeur n’est plus ici ou pas ici )
Mais donner plus d’information sur ton problème, tu auras surement plus de réponse
merci pour ton retour, c’est un smart ups 1500 APC
j’ai rien modifie de spécifique, juste fait la config des différents tuto pour que cela fonctionne
3- Paramétrage apcupsd :
a-Editer le fichier /etc/apcupsd/apcupsd.conf avec nano
Dans la directive UPSCABLE mettre UPSCABLE usb
Idem pour:
UPSTYPE usb
#DEVICE /dev/ttyS0
b- Editer le fichier /etc/default/apcupsd
root@pve2:/etc/default# cat apcupsd
# Defaults for apcupsd initscript (unused with systemd as init).
# Set to "yes" to enable startup of apcupsd.
ISCONFIGURED=yes
Le ISCONFIGURED est à mettre à yes
les remonte se font bien mais j’ai trois infos avec les mêmes valeur qui changent en même temps
voici le retour que j’ai avec la commande : sudo apcaccess
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Aug 23 18:06:14 2024 from 192.168.1.49
pi@Jeedom:~ $ sudo apcaccess
APC : 001,027,0657
DATE : 2024-08-25 13:28:31 +0200
HOSTNAME : Jeedom
VERSION : 3.14.14 (31 May 2016) debian
UPSNAME : Jeedom
CABLE : USB Cable
DRIVER : USB UPS Driver
UPSMODE : Stand Alone
STARTTIME: 2024-08-23 06:00:45 +0200
MODEL : Smart-UPS_1500
STATUS : ONLINE
BCHARGE : 100.0 Percent
TIMELEFT : 17.0 Minutes
MBATTCHG : 5 Percent
MINTIMEL : 3 Minutes
MAXTIME : 0 Seconds
ALARMDEL : No alarm
BATTV : 26.2 Volts
NUMXFERS : 0
TONBATT : 0 Seconds
CUMONBATT: 0 Seconds
XOFFBATT : N/A
STATFLAG : 0x05000008
MANDATE : 2019-04-28
SERIALNO : AS1917264629
NOMBATTV : 24.0 Volts
FIRMWARE : UPS 15.5 / ID=1015
END APC : 2024-08-25 13:28:32 +0200
pi@Jeedom:~ $
et voici les info en mode debug
[2024-08-25 13:28:40] DEBUG : Update command battv
[2024-08-25 13:28:40] DEBUG : => apply default case
[2024-08-25 13:28:40] DEBUG : => update command battv with 26.2
[2024-08-25 13:29:40] DEBUG : Get information string APC : 001,027,0657 DATE : 2024-08-25 13:29:37 +0200 HOSTNAME : Jeedom VERSION : 3.14.14 (31 May 2016) debian UPSNAME : Jeedom CABLE : USB Cable DRIVER : USB UPS Driver UPSMODE : Stand Alone STARTTIME: 2024-08-23 06:00:45 +0200 MODEL : Smart-UPS_1500 STATUS : ONLINE BCHARGE : 100.0 Percent TIMELEFT : 19.5 Minutes MBATTCHG : 5 Percent MINTIMEL : 3 Minutes MAXTIME : 0 Seconds ALARMDEL : No alarm BATTV : 26.2 Volts NUMXFERS : 0 TONBATT : 0 Seconds CUMONBATT: 0 Seconds XOFFBATT : N/A STATFLAG : 0x05000008 MANDATE : 2019-04-28 SERIALNO : AS1917264629 NOMBATTV : 24.0 Volts FIRMWARE : UPS 15.5 / ID=1015 END APC : 2024-08-25 13:29:40 +0200 from apcaccess
[2024-08-25 13:29:40] DEBUG : Get information key APC with value 001,027,0657
[2024-08-25 13:29:40] DEBUG : Get information key DATE with value 2024-08-25 13:29:37 +0200
[2024-08-25 13:29:40] DEBUG : Get information key HOSTNAME with value Jeedom
[2024-08-25 13:29:40] DEBUG : Get information key VERSION with value 3.14.14 (31 May 2016) debian
[2024-08-25 13:29:40] DEBUG : Get information key UPSNAME with value Jeedom
[2024-08-25 13:29:40] DEBUG : Get information key CABLE with value USB Cable
[2024-08-25 13:29:40] DEBUG : Get information key DRIVER with value USB UPS Driver
[2024-08-25 13:29:40] DEBUG : Get information key UPSMODE with value Stand Alone
[2024-08-25 13:29:40] DEBUG : Get information key STARTTIME with value 2024-08-23 06:00:45 +0200
[2024-08-25 13:29:40] DEBUG : Get information key MODEL with value Smart-UPS_1500
[2024-08-25 13:29:40] DEBUG : Get information key STATUS with value ONLINE
[2024-08-25 13:29:40] DEBUG : Get information key BCHARGE with value 100.0 Percent
[2024-08-25 13:29:40] DEBUG : Get information key TIMELEFT with value 19.5 Minutes
[2024-08-25 13:29:40] DEBUG : Get information key MBATTCHG with value 5 Percent
[2024-08-25 13:29:40] DEBUG : Get information key MINTIMEL with value 3 Minutes
[2024-08-25 13:29:40] DEBUG : Get information key MAXTIME with value 0 Seconds
[2024-08-25 13:29:40] DEBUG : Get information key ALARMDEL with value No alarm
[2024-08-25 13:29:40] DEBUG : Get information key BATTV with value 26.2 Volts
[2024-08-25 13:29:40] DEBUG : Get information key NUMXFERS with value 0
[2024-08-25 13:29:40] DEBUG : Get information key TONBATT with value 0 Seconds
[2024-08-25 13:29:40] DEBUG : Get information key CUMONBATT with value 0 Seconds
[2024-08-25 13:29:40] DEBUG : Get information key XOFFBATT with value N/A
[2024-08-25 13:29:40] DEBUG : Get information key STATFLAG with value 0x05000008
[2024-08-25 13:29:40] DEBUG : Get information key MANDATE with value 2019-04-28
[2024-08-25 13:29:40] DEBUG : Get information key SERIALNO with value AS1917264629
[2024-08-25 13:29:40] DEBUG : Get information key NOMBATTV with value 24.0 Volts
[2024-08-25 13:29:40] DEBUG : Get information key FIRMWARE with value UPS 15.5 / ID=1015
[2024-08-25 13:29:40] DEBUG : Get information key END APC with value 2024-08-25 13:29:40 +0200
[2024-08-25 13:29:40] DEBUG : Update command bcharge
[2024-08-25 13:29:40] DEBUG : => apply default case
[2024-08-25 13:29:40] DEBUG : => update battery status
[2024-08-25 13:29:40] DEBUG : => update command bcharge with 100.0
[2024-08-25 13:29:40] DEBUG : Update command loadpct
[2024-08-25 13:29:40] DEBUG : => apply default case
[2024-08-25 13:29:40] DEBUG : => update command loadpct with 100.0
[2024-08-25 13:29:40] DEBUG : Update command linev
[2024-08-25 13:29:40] DEBUG : => apply default case
[2024-08-25 13:29:40] DEBUG : => update command linev with 100.0
[2024-08-25 13:29:40] DEBUG : Update command event
[2024-08-25 13:29:40] DEBUG : => ignore
[2024-08-25 13:29:40] DEBUG : Update command model
[2024-08-25 13:29:40] DEBUG : => apply model case
[2024-08-25 13:29:40] DEBUG : => update command model with Smart-UPS_1500
[2024-08-25 13:29:40] DEBUG : Update command outpower
[2024-08-25 13:29:40] DEBUG : => apply outpower case
[2024-08-25 13:29:40] DEBUG : => update command outpower with 0
[2024-08-25 13:29:40] DEBUG : Update command status
[2024-08-25 13:29:40] DEBUG : => apply default case
[2024-08-25 13:29:40] DEBUG : => update command status with ONLINE
[2024-08-25 13:29:40] DEBUG : Update command timeleft
[2024-08-25 13:29:40] DEBUG : => apply default case
[2024-08-25 13:29:40] DEBUG : => update command timeleft with 19.5
[2024-08-25 13:29:40] DEBUG : Update command battv
[2024-08-25 13:29:40] DEBUG : => apply default case
[2024-08-25 13:29:40] DEBUG : => update command battv with 26.2
[2024-08-25 13:30:57] DEBUG : Get information string APC : 001,027,0657 DATE : 2024-08-25 13:30:56 +0200 HOSTNAME : Jeedom VERSION : 3.14.14 (31 May 2016) debian UPSNAME : Jeedom CABLE : USB Cable DRIVER : USB UPS Driver UPSMODE : Stand Alone STARTTIME: 2024-08-23 06:00:45 +0200 MODEL : Smart-UPS_1500 STATUS : ONLINE BCHARGE : 100.0 Percent TIMELEFT : 14.6 Minutes MBATTCHG : 5 Percent MINTIMEL : 3 Minutes MAXTIME : 0 Seconds ALARMDEL : No alarm BATTV : 26.2 Volts NUMXFERS : 0 TONBATT : 0 Seconds CUMONBATT: 0 Seconds XOFFBATT : N/A STATFLAG : 0x05000008 MANDATE : 2019-04-28 SERIALNO : AS1917264629 NOMBATTV : 24.0 Volts FIRMWARE : UPS 15.5 / ID=1015 END APC : 2024-08-25 13:30:57 +0200 from apcaccess
[2024-08-25 13:30:57] DEBUG : Get information key APC with value 001,027,0657
[2024-08-25 13:30:57] DEBUG : Get information key DATE with value 2024-08-25 13:30:56 +0200
[2024-08-25 13:30:57] DEBUG : Get information key HOSTNAME with value Jeedom
[2024-08-25 13:30:57] DEBUG : Get information key VERSION with value 3.14.14 (31 May 2016) debian
[2024-08-25 13:30:57] DEBUG : Get information key UPSNAME with value Jeedom
[2024-08-25 13:30:57] DEBUG : Get information key CABLE with value USB Cable
[2024-08-25 13:30:57] DEBUG : Get information key DRIVER with value USB UPS Driver
[2024-08-25 13:30:57] DEBUG : Get information key UPSMODE with value Stand Alone
[2024-08-25 13:30:57] DEBUG : Get information key STARTTIME with value 2024-08-23 06:00:45 +0200
[2024-08-25 13:30:57] DEBUG : Get information key MODEL with value Smart-UPS_1500
[2024-08-25 13:30:57] DEBUG : Get information key STATUS with value ONLINE
[2024-08-25 13:30:57] DEBUG : Get information key BCHARGE with value 100.0 Percent
[2024-08-25 13:30:57] DEBUG : Get information key TIMELEFT with value 14.6 Minutes
[2024-08-25 13:30:57] DEBUG : Get information key MBATTCHG with value 5 Percent
[2024-08-25 13:30:57] DEBUG : Get information key MINTIMEL with value 3 Minutes
[2024-08-25 13:30:57] DEBUG : Get information key MAXTIME with value 0 Seconds
[2024-08-25 13:30:57] DEBUG : Get information key ALARMDEL with value No alarm
[2024-08-25 13:30:57] DEBUG : Get information key BATTV with value 26.2 Volts
[2024-08-25 13:30:57] DEBUG : Get information key NUMXFERS with value 0
[2024-08-25 13:30:57] DEBUG : Get information key TONBATT with value 0 Seconds
[2024-08-25 13:30:57] DEBUG : Get information key CUMONBATT with value 0 Seconds
[2024-08-25 13:30:57] DEBUG : Get information key XOFFBATT with value N/A
[2024-08-25 13:30:57] DEBUG : Get information key STATFLAG with value 0x05000008
[2024-08-25 13:30:57] DEBUG : Get information key MANDATE with value 2019-04-28
[2024-08-25 13:30:57] DEBUG : Get information key SERIALNO with value AS1917264629
[2024-08-25 13:30:57] DEBUG : Get information key NOMBATTV with value 24.0 Volts
[2024-08-25 13:30:57] DEBUG : Get information key FIRMWARE with value UPS 15.5 / ID=1015
[2024-08-25 13:30:57] DEBUG : Get information key END APC with value 2024-08-25 13:30:57 +0200
[2024-08-25 13:30:57] DEBUG : Update command bcharge
[2024-08-25 13:30:57] DEBUG : => apply default case
[2024-08-25 13:30:57] DEBUG : => update battery status
[2024-08-25 13:30:57] DEBUG : => update command bcharge with 100.0
[2024-08-25 13:30:57] DEBUG : Update command loadpct
[2024-08-25 13:30:57] DEBUG : => apply default case
[2024-08-25 13:30:57] DEBUG : => update command loadpct with 100.0
[2024-08-25 13:30:57] DEBUG : Update command linev
[2024-08-25 13:30:57] DEBUG : => apply default case
[2024-08-25 13:30:57] DEBUG : => update command linev with 100.0
[2024-08-25 13:30:57] DEBUG : Update command event
[2024-08-25 13:30:57] DEBUG : => ignore
[2024-08-25 13:30:57] DEBUG : Update command model
[2024-08-25 13:30:57] DEBUG : => apply model case
[2024-08-25 13:30:57] DEBUG : => update command model with Smart-UPS_1500
[2024-08-25 13:30:57] DEBUG : Update command outpower
[2024-08-25 13:30:57] DEBUG : => apply outpower case
[2024-08-25 13:30:57] DEBUG : => update command outpower with 0
[2024-08-25 13:30:57] DEBUG : Update command status
[2024-08-25 13:30:57] DEBUG : => apply default case
[2024-08-25 13:30:57] DEBUG : => update command status with ONLINE
[2024-08-25 13:30:57] DEBUG : Update command timeleft
[2024-08-25 13:30:57] DEBUG : => apply default case
[2024-08-25 13:30:57] DEBUG : => update command timeleft with 14.6
[2024-08-25 13:30:57] DEBUG : Update command battv
[2024-08-25 13:30:57] DEBUG : => apply default case
[2024-08-25 13:30:57] DEBUG : => update command battv with 26.2
[2024-08-25 13:31:45] DEBUG : Get information string APC : 001,027,0657 DATE : 2024-08-25 13:31:44 +0200 HOSTNAME : Jeedom VERSION : 3.14.14 (31 May 2016) debian UPSNAME : Jeedom CABLE : USB Cable DRIVER : USB UPS Driver UPSMODE : Stand Alone STARTTIME: 2024-08-23 06:00:45 +0200 MODEL : Smart-UPS_1500 STATUS : ONLINE BCHARGE : 100.0 Percent TIMELEFT : 15.1 Minutes MBATTCHG : 5 Percent MINTIMEL : 3 Minutes MAXTIME : 0 Seconds ALARMDEL : No alarm BATTV : 26.2 Volts NUMXFERS : 0 TONBATT : 0 Seconds CUMONBATT: 0 Seconds XOFFBATT : N/A STATFLAG : 0x05000008 MANDATE : 2019-04-28 SERIALNO : AS1917264629 NOMBATTV : 24.0 Volts FIRMWARE : UPS 15.5 / ID=1015 END APC : 2024-08-25 13:31:45 +0200 from apcaccess
[2024-08-25 13:31:45] DEBUG : Get information key APC with value 001,027,0657
[2024-08-25 13:31:45] DEBUG : Get information key DATE with value 2024-08-25 13:31:44 +0200
[2024-08-25 13:31:45] DEBUG : Get information key HOSTNAME with value Jeedom
[2024-08-25 13:31:45] DEBUG : Get information key VERSION with value 3.14.14 (31 May 2016) debian
[2024-08-25 13:31:45] DEBUG : Get information key UPSNAME with value Jeedom
[2024-08-25 13:31:45] DEBUG : Get information key CABLE with value USB Cable
[2024-08-25 13:31:45] DEBUG : Get information key DRIVER with value USB UPS Driver
[2024-08-25 13:31:45] DEBUG : Get information key UPSMODE with value Stand Alone
[2024-08-25 13:31:45] DEBUG : Get information key STARTTIME with value 2024-08-23 06:00:45 +0200
[2024-08-25 13:31:45] DEBUG : Get information key MODEL with value Smart-UPS_1500
[2024-08-25 13:31:45] DEBUG : Get information key STATUS with value ONLINE
[2024-08-25 13:31:45] DEBUG : Get information key BCHARGE with value 100.0 Percent
[2024-08-25 13:31:45] DEBUG : Get information key TIMELEFT with value 15.1 Minutes
[2024-08-25 13:31:45] DEBUG : Get information key MBATTCHG with value 5 Percent
[2024-08-25 13:31:45] DEBUG : Get information key MINTIMEL with value 3 Minutes
[2024-08-25 13:31:45] DEBUG : Get information key MAXTIME with value 0 Seconds
[2024-08-25 13:31:45] DEBUG : Get information key ALARMDEL with value No alarm
[2024-08-25 13:31:45] DEBUG : Get information key BATTV with value 26.2 Volts
[2024-08-25 13:31:45] DEBUG : Get information key NUMXFERS with value 0
[2024-08-25 13:31:45] DEBUG : Get information key TONBATT with value 0 Seconds
[2024-08-25 13:31:45] DEBUG : Get information key CUMONBATT with value 0 Seconds
[2024-08-25 13:31:45] DEBUG : Get information key XOFFBATT with value N/A
[2024-08-25 13:31:45] DEBUG : Get information key STATFLAG with value 0x05000008
[2024-08-25 13:31:45] DEBUG : Get information key MANDATE with value 2019-04-28
[2024-08-25 13:31:45] DEBUG : Get information key SERIALNO with value AS1917264629
[2024-08-25 13:31:45] DEBUG : Get information key NOMBATTV with value 24.0 Volts
[2024-08-25 13:31:45] DEBUG : Get information key FIRMWARE with value UPS 15.5 / ID=1015
[2024-08-25 13:31:45] DEBUG : Get information key END APC with value 2024-08-25 13:31:45 +0200
[2024-08-25 13:31:45] DEBUG : Update command bcharge
[2024-08-25 13:31:45] DEBUG : => apply default case
[2024-08-25 13:31:45] DEBUG : => update battery status
[2024-08-25 13:31:45] DEBUG : => update command bcharge with 100.0
[2024-08-25 13:31:45] DEBUG : Update command loadpct
[2024-08-25 13:31:45] DEBUG : => apply default case
[2024-08-25 13:31:45] DEBUG : => update command loadpct with 100.0
[2024-08-25 13:31:45] DEBUG : Update command linev
[2024-08-25 13:31:45] DEBUG : => apply default case
[2024-08-25 13:31:45] DEBUG : => update command linev with 100.0
[2024-08-25 13:31:45] DEBUG : Update command event
[2024-08-25 13:31:45] DEBUG : => ignore
[2024-08-25 13:31:45] DEBUG : Update command model
[2024-08-25 13:31:45] DEBUG : => apply model case
[2024-08-25 13:31:45] DEBUG : => update command model with Smart-UPS_1500
[2024-08-25 13:31:45] DEBUG : Update command outpower
[2024-08-25 13:31:45] DEBUG : => apply outpower case
[2024-08-25 13:31:45] DEBUG : => update command outpower with 0
[2024-08-25 13:31:45] DEBUG : Update command status
[2024-08-25 13:31:45] DEBUG : => apply default case
[2024-08-25 13:31:45] DEBUG : => update command status with ONLINE
[2024-08-25 13:31:45] DEBUG : Update command timeleft
[2024-08-25 13:31:45] DEBUG : => apply default case
[2024-08-25 13:31:45] DEBUG : => update command timeleft with 15.1
[2024-08-25 13:31:45] DEBUG : Update command battv
[2024-08-25 13:31:45] DEBUG : => apply default case
[2024-08-25 13:31:45] DEBUG : => update command battv with 26.2
Attention, les tutos « » car c’est des modif pour que cela fonctionne ne sont pas toujours adapté à ton cas
Moi je n’ai pas fait tout a fait ça et cela fonctionne
Tu avez quoi comme problème a la base ? commlost ?
nano /etc/apcupsd/apcupsd.conf
supprimer le port qui se trouve aprés DEVICE et enregistrer
nano /etc/default/apcupsd
mettre : ISCONFIGURED=yes et enregistrer
systemctl restart apcupsd
oui c’est cela il me semble que au depart, rien ne remontait et la commande remontait commlost, je peux retirer les modif et voir ce que cela fait si tu veux
nano /etc/apcupsd/apcupsd.conf
supprimer le port qui se trouve aprés DEVICE et enregistrer
nano /etc/default/apcupsd
mettre : ISCONFIGURED=yes et enregistrer
systemctl restart apcupsd
Tu n’auras jamais les informations courant entrant ( tension à l’entrée de l’onduleur) et les autres informations. Le plugin fait un sudo apcaccess et récupère les informations une par une. Si tu compares avec le résultat de sudo apcaccess sur ma config tu verras qu’il manque des informations qui ne sont pas données par ton onduleur.
le nombre d’informations renvoyées est spécifique à chaque modèle d’onduleur.