Push des événements

Bonjour

J’ai un onduleur Back-APC BR1600SI. Je remonte bien toutes le commandes mais les événements ne remontent pas.

[2024-03-26 11:06:44]DEBUG :  => apply model case
[2024-03-26 11:06:44]DEBUG :  => update command model with Back-UPS RS 1600SI
[2024-03-26 11:06:44]DEBUG : Update command status
[2024-03-26 11:06:44]DEBUG :  => apply default case
[2024-03-26 11:06:44]DEBUG :  => update command status with ONLINE
[2024-03-26 11:06:44]DEBUG : Update command event
[2024-03-26 11:06:44]DEBUG :  => ignore
[2024-03-26 11:06:44]DEBUG : Update command linev
[2024-03-26 11:06:44]DEBUG :  => apply default case
[2024-03-26 11:06:44]DEBUG :  => update command linev with 235.0
[2024-03-26 11:06:44]DEBUG : Update command outpower
[2024-03-26 11:06:44]DEBUG :  => apply outpower case
[2024-03-26 11:06:44]DEBUG :  => update command outpower with 158.4
[2024-03-26 11:06:44]DEBUG : Update command loadpct
[2024-03-26 11:06:44]DEBUG :  => apply default case
[2024-03-26 11:06:44]DEBUG :  => update command loadpct with 15.0
[2024-03-26 11:06:44]DEBUG : Update command timeleft
[2024-03-26 11:06:44]DEBUG :  => apply default case
[2024-03-26 11:06:44]DEBUG :  => update command timeleft with 54.4
[2024-03-26 11:06:44]DEBUG : Update command bcharge
[2024-03-26 11:06:44]DEBUG :  => apply default case
[2024-03-26 11:06:44]DEBUG :  => update battery status
[2024-03-26 11:06:44]DEBUG :  => update command bcharge with 100.0
[2024-03-26 11:06:44]DEBUG : Update command battv
[2024-03-26 11:06:44]DEBUG :  => apply default case
[2024-03-26 11:06:44]DEBUG :  => update command battv with 27.3
event est ignoré :
[2024-03-26 11:06:44]DEBUG : Update command event
[2024-03-26 11:06:44]DEBUG :  => ignore

Dans la documentation est noté :

Modification d’apccontrol pour activer le push
Dans le fichier /etc/apcupsd/apccontrol, vous devez ajouter en début une ligne pour appeler Jeedom sur les événements.
Copier celle qui est présente sur Jeedom

Malheureusement je ne trouve pas ce qu’il faut ajouter ou modifier.

1 « J'aime »

Salut tu as trouvé une solution, meme problème

Bonjour

Oui, il m’a fallu du temps mais j’ai trouvé:
Dans le fichier /etc/apcupsd/apccontrol

SCRIPTSHELL=/bin/sh
SCRIPTDIR=/etc/apcupsd
WALL=wall

export SYSADMIN=root
export APCUPSD_MAIL="mail"
if [ -f $SCRIPTDIR/config ]; then . $SCRIPTDIR/config ; fi



# Ajout pour Jeedom Modif DL
wget --no-check-certificate -qO- "http://ADRESSEIP_JEEDOM:80/core/api/jeeApi.php?apikey=APIKEY&type=cmd&id=7616&value=$1"

avec :

« ADRESSEIP_JEEDOM » : l’adresse de ton Jeedom

« APIKEY »:

en cliquant sur URL direct, tu trouveras l’APIKEY dans la barre d’adresse

id= Numéro de l’ID de la commande 7616 pour moi

Cordialement

merci , je vais essayer tout de suite

UN GRAND GRAND MERCI
les évènements remontent et me déclenchent mes scénarios comme auparavant (passage de debian 10 a 11)

SCRIPTSHELL=/bin/sh
SCRIPTDIR=/etc/apcupsd
WALL=wall

export SYSADMIN=root
export APCUPSD_MAIL="mail"
if [ -f $SCRIPTDIR/config ]; then . $SCRIPTDIR/config ; fi



# Ajout pour Jeedom Modif DL
wget --no-check-certificate -qO- "http://ADRESSEIP_JEEDOM:80/core/api/jeeApi.php?apikey=APIKEY&type=cmd&id=7616&value=$1"

faire comme ci dessus et modifier DEVICE

MERCI MERCI

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