Probleme de remontée d'info ONDULEUR / ASI APC

Hello, voila , suite à la perte du contenu de deux congelo pendant les vacances ,j’ai décidé de m’equiper d’un onduleur pour « capter » quand j’avais une coupure de courant (et etre informé …).

J’ai regardé une peu les conseils, et j’ai vu : onduleur APC + plugin APC , et zou … (sujet de 2019 …°.

Zou je me lance … j’achete un onduleur APC Back UPS 1200VA – BX1200MI …

mais visiblement ils ont du changer un truc ( ou je suis un boulet … ou les deux :wink: ). Mais je n’arrive pas à faire marcher ( enfin je n’arrive pas a remonter les infos de mon onduleur dans mon jeedom.

Mon jeedom tourne dans une « boite » integré que j’ai acheté directement chez jeedom (avec un peu de support, etc etc => jeedom SMART ).

Ce que j’ai compris ( et fait ) avec ce que j’ai lu a droite a gauche …

  • branchement electrique et demarrage de l’onduleur
  • connexion de l’onduleur via la cable fourni par PAC (USB A dans l’onduleur – vers USB – B dans ma box jeedom – j’avais initialement branché un RJ45 dans la prise « in », mais visiblement ca cause pas en IP , ma box ne lui a jamais attribué une IP :D).
  • installation – reinstallation / activation du plugin APC de lunarok …

Bah ca remonte pas oO . Je suis pas foutu de voir ce qui est bien pris en compte/branché en USB sur ma box jeedom … ( j’ai cherché , en vain pour le moment …).

J’ai cherché dans les logs , je vois « rien » .

Voila, si y’a un truc tout con ( ou pas tout con qui soit dans mes cordes … que je ne n’aurais pas fait … suis preneur de tous conseils ;), car la mon « ASI » marche en fait ( je l’ai pluggué sur PC , avec l’interface/soft " PowerChute Serial Shutdown," je vois les infos que devrait capté le plugin … , mais comme j’arrive pas à le voir dans mon jeedom, ca perd un peu d’interet :/.

Merci bcp pour l’aide que vous pourriez m’apporter.

Est ce que ces tous « nouveaux onduleurs » ( j’ai cru comprendre que la version que j’ai est plutot « récente » sont compatibles avec le plugin ( et inversement ) ??

Encore merci, tout de bon (y)

Salut
As-tu installé un serveur nut aur ton PI?

Antoine

Salut,

Avec APC il ne faut pas de nut
Il y a le soft d’apc qui sera installé pour causer avec l’onduleur.

@cremsou pas la peine de tag l’auteur du plugin, voir point 16 Comment nous aider à vous aider - ou Comment poser une bonne question?

Pour le reste, sans plus d’information personne ne peut aider. Comme d’habitude: page santé jeedom, config plugin/ équipement, tous les logs…

Ca roule , merci pour les réponses.
Je ne savais pas ( nul n’est censé ignorer la loi, mais je n’avais pas conscience/connaissance du point 16 :confused: , mes excuses.

Alors, pour la santé de JEEDOM :

image

Pour les logs du plugin apcups : ( ca boucle comme ca toutes les minutes … j’avais mis le plugin en debug pour tenter de voir des choses ).

> [2023-08-31 07:49:02][DEBUG] : Get information string APC      : 001,017,0421 DATE     : 2023-08-30 22:07:24 +0000   HOSTNAME : Jeedom VERSION  : 3.14.14 (31 May 2016) debian CABLE    : USB Cable DRIVER   : USB UPS Driver UPSMODE  : Stand Alone STARTTIME: 2023-08-30 22:05:19 +0000   STATUS   : COMMLOST  MBATTCHG : 5 Percent MINTIMEL : 3 Minutes MAXTIME  : 0 Seconds NUMXFERS : 0 TONBATT  : 0 Seconds CUMONBATT: 0 Seconds XOFFBATT : N/A STATFLAG : 0x05000100 END APC  : 2023-08-31 05:49:02 +0000    from apcaccess
> [2023-08-31 07:49:02][DEBUG] : Get information key APC with value 001,017,0421
> [2023-08-31 07:49:02][DEBUG] : Get information key DATE with value 2023-08-30 22:07:24 +0000
> [2023-08-31 07:49:02][DEBUG] : Get information key HOSTNAME with value Jeedom
> [2023-08-31 07:49:02][DEBUG] : Get information key VERSION with value 3.14.14 (31 May 2016) debian
> [2023-08-31 07:49:02][DEBUG] : Get information key CABLE with value USB Cable
> [2023-08-31 07:49:02][DEBUG] : Get information key DRIVER with value USB UPS Driver
> [2023-08-31 07:49:02][DEBUG] : Get information key UPSMODE with value Stand Alone
> [2023-08-31 07:49:02][DEBUG] : Get information key STARTTIME with value 2023-08-30 22:05:19 +0000
> [2023-08-31 07:49:02][DEBUG] : Get information key STATUS with value COMMLOST
> [2023-08-31 07:49:02][DEBUG] : Get information key MBATTCHG with value 5 Percent
> [2023-08-31 07:49:02][DEBUG] : Get information key MINTIMEL with value 3 Minutes
> [2023-08-31 07:49:02][DEBUG] : Get information key MAXTIME with value 0 Seconds
> [2023-08-31 07:49:02][DEBUG] : Get information key NUMXFERS with value 0
> [2023-08-31 07:49:02][DEBUG] : Get information key TONBATT with value 0 Seconds
> [2023-08-31 07:49:02][DEBUG] : Get information key CUMONBATT with value 0 Seconds
> [2023-08-31 07:49:02][DEBUG] : Get information key XOFFBATT with value N/A
> [2023-08-31 07:49:02][DEBUG] : Get information key STATFLAG with value 0x05000100
> [2023-08-31 07:49:02][DEBUG] : Get information key END APC with value 2023-08-31 05:49:02 +0000
> [2023-08-31 07:49:02][DEBUG] : Update command loadpct
> [2023-08-31 07:49:02][DEBUG] :  => apply default case
> [2023-08-31 07:49:02][DEBUG] :  => update command loadpct with 
> [2023-08-31 07:49:02][DEBUG] : Update command bcharge
> [2023-08-31 07:49:02][DEBUG] :  => apply default case
> [2023-08-31 07:49:02][DEBUG] :  => update battery status
> [2023-08-31 07:49:02][DEBUG] :  => update command bcharge with 
> [2023-08-31 07:49:02][DEBUG] : Update command linev
> [2023-08-31 07:49:02][DEBUG] :  => apply default case
> [2023-08-31 07:49:02][DEBUG] :  => update command linev with 
> [2023-08-31 07:49:02][DEBUG] : Update command event
> [2023-08-31 07:49:02][DEBUG] :  => ignore
> [2023-08-31 07:49:02][DEBUG] : Update command model
> [2023-08-31 07:49:02][DEBUG] :  => apply model case
> [2023-08-31 07:49:02][DEBUG] :  => update command model with 
> [2023-08-31 07:49:02][DEBUG] : Update command outpower
> [2023-08-31 07:49:02][DEBUG] :  => apply outpower case
> [2023-08-31 07:49:02][DEBUG] :  => update command outpower with 0
> [2023-08-31 07:49:02][DEBUG] : Update command status
> [2023-08-31 07:49:02][DEBUG] :  => apply default case
> [2023-08-31 07:49:02][DEBUG] :  => update command status with COMMLOST
> [2023-08-31 07:49:02][DEBUG] : Update command timeleft
> [2023-08-31 07:49:02][DEBUG] :  => apply default case
> [2023-08-31 07:49:02][DEBUG] :  => update command timeleft with COMMLOST
> [2023-08-31 07:49:02][DEBUG] : Update command battv
> [2023-08-31 07:49:02][DEBUG] :  => apply default case
> [2023-08-31 07:49:02][DEBUG] :  => update command battv with COMMLOST

Pour la log apcups_package :

0000|+ echo '*******************Begin of package installation******************'
0001|*******************Begin of package installation******************
0002|+ touch /tmp/jeedom_install_in_progress_apcups
0003|+ echo 1
0004|+ echo 2
0005|+ sudo apt update
0006|WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
0007|Get:1 http://security.debian.org/debian-security buster/updates InRelease [34.8 kB]
0008|Get:2 http://ftp.uk.debian.org/debian buster InRelease [122 kB]
0009|Get:3 http://www.deb-multimedia.org buster InRelease [18.1 kB]
0010|Get:4 http://ftp.uk.debian.org/debian buster-updates InRelease [56.6 kB]
0011|Get:5 https://deb.nodesource.com/node_16.x buster InRelease [4584 B]
0012|Get:6 https://oph.mdrjr.net/meveric all InRelease [19.4 kB]
0013|Get:7 https://oph.mdrjr.net/meveric buster InRelease [4131 B]
0014|Get:8 https://oph.mdrjr.net/meveric all/main arm64 Packages [30.6 kB]
0015|Get:9 https://deb.nodesource.com/node_16.x buster/main arm64 Packages [778 B]
0016|Get:10 https://oph.mdrjr.net/meveric buster/main arm64 Packages [47.9 kB]
0017|Reading package lists...
0018|E: Repository 'http://security.debian.org/debian-security buster/updates InRelease' changed its 'Suite' value from 'oldstable' to 'oldoldstable'
0019|E: Repository 'http://www.deb-multimedia.org buster InRelease' changed its 'Suite' value from 'oldstable' to 'oldoldstable'
0020|E: Repository 'http://ftp.uk.debian.org/debian buster InRelease' changed its 'Suite' value from 'oldstable' to 'oldoldstable'
0021|E: Repository 'http://ftp.uk.debian.org/debian buster-updates InRelease' changed its 'Suite' value from 'oldstable-updates' to 'oldoldstable-updates'
0022|+ echo 3
0023|+ sudo apt install -o Dpkg::Options::=--force-confdef -y apcupsd
0024|WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
0025|Reading package lists...
0026|Building dependency tree...
0027|Reading state information...
0028|The following additional packages will be installed:
0029|libusb-0.1-4
0030|Suggested packages:
0031|apcupsd-cgi
0032|Recommended packages:
0033|apcupsd-doc s-nail | mailx
0034|The following NEW packages will be installed:
0035|apcupsd libusb-0.1-4
0036|0 upgraded, 2 newly installed, 0 to remove and 234 not upgraded.
0037|Need to get 266 kB of archives.
0038|After this operation, 906 kB of additional disk space will be used.
0039|Get:1 http://ftp.uk.debian.org/debian buster/main arm64 libusb-0.1-4 arm64 2:0.1.12-32 [21.5 kB]
0040|Get:2 http://ftp.uk.debian.org/debian buster/main arm64 apcupsd arm64 3.14.14-2 [244 kB]
0041|debconf: unable to initialize frontend: Dialog
0042|debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
0043|debconf: falling back to frontend: Readline
0044|debconf: unable to initialize frontend: Readline
0045|debconf: (This frontend requires a controlling tty.)
0046|debconf: falling back to frontend: Teletype
0047|dpkg-preconfigure: unable to re-open stdin:
0048|Fetched 266 kB in 0s (1371 kB/s)
0049|Selecting previously unselected package libusb-0.1-4:arm64.
0050|(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 79688 files and directories currently installed.)
0051|Preparing to unpack .../libusb-0.1-4_2%3a0.1.12-32_arm64.deb ...
0052|Unpacking libusb-0.1-4:arm64 (2:0.1.12-32) ...
0053|Selecting previously unselected package apcupsd.
0054|Preparing to unpack .../apcupsd_3.14.14-2_arm64.deb ...
0055|Unpacking apcupsd (3.14.14-2) ...
0056|Setting up libusb-0.1-4:arm64 (2:0.1.12-32) ...
0057|Setting up apcupsd (3.14.14-2) ...
0058|debconf: unable to initialize frontend: Dialog
0059|debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
0060|debconf: falling back to frontend: Readline
0061|Created symlink /etc/systemd/system/multi-user.target.wants/apcupsd.service -> /lib/systemd/system/apcupsd.service.
0062|Processing triggers for systemd (241-7~deb10u4) ...
0063|Processing triggers for libc-bin (2.28-10) ...
0064|+ echo 4
0065|+ php /var/www/html/core/class/../php/jeecli.php plugin dependancy_end apcups
0066|+ rm /tmp/jeedom_install_in_progress_apcups
0067|+ echo '*******************End of package installation******************'
0068|*******************End of package installation******************

Coté de ce que je vois dans le plugin : ( j’a ajouté l’onduleur à la main car il n’est pas apparu seul … 127.0.0.1 , port 3551 …)

image

Et qq soit la commande que je teste, j’ai un retour = 0

image

PS : quand je change le port (ex 3552 ald 3551 …) , j’ai une erreur : ( ce qui me fait penser que le plugin arrive a joindre l’onduleur sur 3551 MAIS qu’il arrive pas à chopper les infos ??? ).

image

A dispo pour donner plus d’info, logs , autre capture d’ecran ,test, pour un peu que je comprenne ce qu’on me demande ;).

Merci bcp d’avance en tout cas…

y a pas de soucis :wink:


dans le log d’installation on voit l’erreur:

E: Repository 'http://security.debian.org/debian-security buster/updates InRelease' changed its 'Suite' value from 'oldstable' to 'oldoldstable'

une rechercher sur cette ligne et voir ici par exemple => Installation Plugin BLEA, dépendances KO - #2 par Mips

sudo apt-get --allow-releaseinfo-change update

relancez les dépendances ensuite

Ok, merci.

Mon jeedom est sur une box « smart », et pour l’heure je ne m’y suis jamais connecté en ligne de commande (je fais tout par l 'interface web oO).

Du coup , je cherche (et je devrais trouver) comment faire ca ;).

Je vous tient au jus … encore merci.

Menu configuration jeedom > onglet os/db > bouton administration système
image

tapez la commande et cliquez sur ok
image

ou alors faites un ticket au support, le core devrait gérer cette update sur une smart

==> c’est fait. Merci, j’essayerai de faire un ticket au support.

Get:1 http://security.debian.org/debian-security buster/updates InRelease [34.8 kB]
Get:2 http://www.deb-multimedia.org buster InRelease [18.1 kB]
Get:3 http://ftp.uk.debian.org/debian buster InRelease [122 kB]
Get:4 http://ftp.uk.debian.org/debian buster-updates InRelease [56.6 kB]
Get:5 https://deb.nodesource.com/node_16.x buster InRelease [4584 B]
Get:6 http://security.debian.org/debian-security buster/updates/non-free Sources [4048 B]
Get:7 http://security.debian.org/debian-security buster/updates/main Sources [346 kB]
Get:8 http://security.debian.org/debian-security buster/updates/main arm64 Packages [540 kB]
Get:9 http://security.debian.org/debian-security buster/updates/main Translation-en [293 kB]
Get:10 http://security.debian.org/debian-security buster/updates/non-free arm64 Packages [5240 B]
Get:11 http://security.debian.org/debian-security buster/updates/non-free Translation-en [24.4 kB]
Hit:12 https://oph.mdrjr.net/meveric all InRelease
Hit:13 https://oph.mdrjr.net/meveric buster InRelease
Get:14 http://www.deb-multimedia.org buster/main Sources [101 kB]
Get:15 http://www.deb-multimedia.org buster/main arm64 Packages [112 kB]
Fetched 1483 kB in 3s (587 kB/s)
Reading package lists...

J’ai ensuite

  1. relancé les dependances pour le plugin APC => semble pas mieux / rien du tout dans la log apcups_packages
  2. supprimé le plugin et reinstallé le plugin APC + relance dépendances => semble pas mieux / rien du tout dans la log apcups_packages

Je vois dans ma log (apcups) : STATUS = COMMLOST
Comme si jeedom voyait bien l’onduleur mais que la recup d’info n’aboutissait pas :confused: :

> 0454|[2023-09-01 09:27:02]DEBUG : Get information string APC : 001,017,0421 DATE : 2023-08-31 22:08:53 +0000 HOSTNAME : Jeedom VERSION : 3.14.14 (31 May 2016) debian CABLE : USB Cable DRIVER : USB UPS Driver UPSMODE : Stand Alone STARTTIME: 2023-08-31 22:05:18 +0000 STATUS : COMMLOST MBATTCHG : 5 Percent MINTIMEL : 3 Minutes MAXTIME : 0 Seconds NUMXFERS : 0 TONBATT : 0 Seconds CUMONBATT: 0 Seconds XOFFBATT : N/A STATFLAG : 0x05000100 END APC : 2023-09-01 07:27:02 +0000 from apcaccess

Et en continuant de chercher , je tombe sur : https://community.jeedom.com/t/plugin-apcups-commlost/18513, qui malheureusement pour moi n’a pas de solution à ce jour :confused: .

TEST : #heading --18513

Ca fonctionne !!! :slight_smile:
image

Merci @Mips et @Tonio16 d’avoir pris du temps pour moi …
La solution est donc ici => https://community.jeedom.com/t/impossibilite-recuperation-information-onduleur-apc/103464

Connection en ssh à ma jeedom smart vi l’utilitaire « windows » cygwin, depuis mon reseau local : ( j’avais jamais fait oO ).

ssh root@ip_de_jeedom
mdp : Mjeedom96

Puis les commandes indiquées dans le poste de @Duvid (merci aussi à lui …).

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