Bonjour @Noyax37,
C’est exactement ce qu’il me faut. J’ai suivi ton tuto pas à pas et tout semble fonctionner excepté la dernière étape. En effet, le compteur ne se créé pas. Ça risque d’être un peu long avec les captures mais voilà ce que j’ai fait:
Sur la jeedom source ou est branché le modem
Sur la jeedom cible qui ou est installé le broker
J’ai beau chercher mon erreur, je ne la vois pas. Le problème pourrait-il venir du fait que j"ai utilisé le plugin MQTT Manager (mqtt2) plutôt que jMQTT ?
Voici également les logs DEBUG de la jeedom cible :
Teleinfo
[2023-09-06 06:09:51][INFO] : [deamon_start_MQTT] Démarrage du service
[2023-09-06 06:09:51][INFO] : ---------------------------------------------
[2023-09-06 06:09:51][INFO] : [MQTT] Démarrage service MQTT
[2023-09-06 06:09:51][INFO] : SocketHost : 127.0.0.1
[2023-09-06 06:09:51][INFO] : Socketport :
[2023-09-06 06:09:51][INFO] : Broker : 127.0.0.1
[2023-09-06 06:09:51][INFO] : Port du Broker : 1883
[2023-09-06 06:09:51][INFO] : topic : "#"
[2023-09-06 06:09:51][INFO] : ---------------------------------------------
[2023-09-06 06:09:51][INFO] : [découverte MQTT] Exécution du service : nice -n 19 /usr/bin/python3 /var/www/html/plugins/teleinfo/ressources/teleinfo_mqtt.py --socketport 55065 --mqtt True --mqtt_broker 127.0.0.1 --mqtt_port 1883 --apikey XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --mqtt_keepalive 45 --mqtt_username jeedom --mqtt_password XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --modem aucun --callback http://127.0.0.1:80/plugins/teleinfo/core/php/jeeTeleinfo.php --loglevel debug --mqtt_topic "#"
[2023-09-06 06:09:53][INFO] : [mqtt] Service OK
[2023-09-06 06:09:53][INFO] : [mqtt] Voir les logs MQTT dans le fichier correspondant
[2023-09-06 06:09:53][INFO] : ---------------------------------------------
[2023-09-06 06:09:53][DEBUG] : [TELEINFO_deamon_infoMqtt] test pid
[2023-09-06 06:09:53][DEBUG] : [TELEINFO_deamon_infoMqtt] démon Mqtt => ok
[2023-09-06 06:09:53][DEBUG] : [TELEINFO_deamon_modem] état : sans
[2023-09-06 06:09:53][DEBUG] : [TELEINFO_deamon_MQTT] état : ok
[2023-09-06 06:09:53][DEBUG] : [TELEINFO_deamon_prod] état : sans
[2023-09-06 06:09:53][DEBUG] : [TELEINFO_deamon] état global => retour: ok
[2023-09-06 06:09:58][DEBUG] : [TELEINFO_deamon_infoMqtt] test pid
[2023-09-06 06:09:58][DEBUG] : [TELEINFO_deamon_infoMqtt] démon Mqtt => ok
[2023-09-06 06:09:58][DEBUG] : [TELEINFO_deamon_modem] état : sans
[2023-09-06 06:09:58][DEBUG] : [TELEINFO_deamon_MQTT] état : ok
[2023-09-06 06:09:58][DEBUG] : [TELEINFO_deamon_prod] état : sans
[2023-09-06 06:09:58][DEBUG] : [TELEINFO_deamon] état global => retour: ok
[2023-09-06 06:09:58][DEBUG] : [TELEINFO_deamon_infoMqtt] test pid
[2023-09-06 06:09:58][DEBUG] : [TELEINFO_deamon_infoMqtt] démon Mqtt => ok
[2023-09-06 06:09:58][DEBUG] : [TELEINFO_deamon_modem] état : sans
[2023-09-06 06:09:58][DEBUG] : [TELEINFO_deamon_MQTT] état : ok
[2023-09-06 06:09:58][DEBUG] : [TELEINFO_deamon_prod] état : sans
[2023-09-06 06:09:58][DEBUG] : [TELEINFO_deamon] état global => retour: ok
[2023-09-06 06:10:02][DEBUG] : calculatepapp
[2023-09-06 06:10:03][DEBUG] : [TELEINFO_deamon_infoMqtt] test pid
[2023-09-06 06:10:03][DEBUG] : [TELEINFO_deamon_infoMqtt] démon Mqtt => ok
[2023-09-06 06:10:03][DEBUG] : [TELEINFO_deamon_modem] état : sans
[2023-09-06 06:10:03][DEBUG] : [TELEINFO_deamon_MQTT] état : ok
[2023-09-06 06:10:03][DEBUG] : [TELEINFO_deamon_prod] état : sans
[2023-09-06 06:10:03][DEBUG] : [TELEINFO_deamon] état global => retour: ok
[2023-09-06 06:10:03][DEBUG] : [TELEINFO_deamon_infoMqtt] test pid
[2023-09-06 06:10:03][DEBUG] : [TELEINFO_deamon_infoMqtt] démon Mqtt => ok
[2023-09-06 06:10:03][DEBUG] : [TELEINFO_deamon_modem] état : sans
[2023-09-06 06:10:03][DEBUG] : [TELEINFO_deamon_MQTT] état : ok
[2023-09-06 06:10:03][DEBUG] : [TELEINFO_deamon_prod] état : sans
[2023-09-06 06:10:03][DEBUG] : [TELEINFO_deamon] état global => retour: ok
[2023-09-06 06:10:03][DEBUG] : [TELEINFO_deamon_infoMqtt] test pid
[2023-09-06 06:10:03][DEBUG] : [TELEINFO_deamon_infoMqtt] démon Mqtt => ok
[2023-09-06 06:10:03][DEBUG] : [TELEINFO_deamon_modem] état : sans
[2023-09-06 06:10:03][DEBUG] : [TELEINFO_deamon_MQTT] état : ok
[2023-09-06 06:10:03][DEBUG] : [TELEINFO_deamon_prod] état : sans
[2023-09-06 06:10:03][DEBUG] : [TELEINFO_deamon] état global => retour: ok
[2023-09-06 06:10:03][INFO] : ----- Calcul des statistiques temps réel -----
[2023-09-06 06:10:03][INFO] : Date de début : 2023-09-06 00:00:00
[2023-09-06 06:10:03][INFO] : Date de fin : 2023-09-06 06:10:03
[2023-09-06 06:10:03][INFO] : Liste index HP : EASF02,EASF04,EASF06,HCHP,BBRHPJB,BBRHPJW,BBRHPJR,EJPHPM
[2023-09-06 06:10:03][INFO] : Liste index HC : EASF01,EASF03,EASF05,HCHC,BBRHCJB,BBRHCJW,BBRHCJR,EJPHN
[2023-09-06 06:10:03][INFO] : Liste index Production : EAIT
[2023-09-06 06:10:03][INFO] : Liste index Conso Totale : BASE,EAST,HCHP,HCHC,BBRHPJB,BBRHPJW,BBRHPJR,BBRHCJB,BBRHCJW,BBRHCJR,EJPHPM,EJPHN
[2023-09-06 06:10:03][INFO] : ----------------------------------------------
[2023-09-06 06:10:08][DEBUG] : [TELEINFO_deamon_infoMqtt] test pid
[2023-09-06 06:10:08][DEBUG] : [TELEINFO_deamon_infoMqtt] démon Mqtt => ok
[2023-09-06 06:10:08][DEBUG] : [TELEINFO_deamon_modem] état : sans
[2023-09-06 06:10:08][DEBUG] : [TELEINFO_deamon_MQTT] état : ok
[2023-09-06 06:10:08][DEBUG] : [TELEINFO_deamon_prod] état : sans
[2023-09-06 06:10:08][DEBUG] : [TELEINFO_deamon] état global => retour: ok
Teleinfo_deamon_Mqtt
[2023-09-06 06:39:23][DEBUG] : MQTT------Topic : jeedom/cmd/event/1354
[2023-09-06 06:39:23][DEBUG] : MQTT------Data : {"value":"650","humanName":"[Appartement][Téléinfo (Electricité)][PAPP]","unite":"","name":"PAPP","type":"info","subtype":"numeric"}
[2023-09-06 06:39:26][DEBUG] : MQTT------Topic : jeedom/cmd/event/1351
[2023-09-06 06:39:26][DEBUG] : MQTT------Data : {"value":"26108850","humanName":"[Appartement][Téléinfo (Electricité)][BASE]","unite":"","name":"BASE","type":"info","subtype":"numeric"}
[2023-09-06 06:39:33][DEBUG] : MQTT------Topic : jeedom/cmd/event/1351
[2023-09-06 06:39:33][DEBUG] : MQTT------Data : {"value":"26108851","humanName":"[Appartement][Téléinfo (Electricité)][BASE]","unite":"","name":"BASE","type":"info","subtype":"numeric"}
[2023-09-06 06:39:33][DEBUG] : MQTT------Topic : jeedom/cmd/event/1354
[2023-09-06 06:39:33][DEBUG] : MQTT------Data : {"value":"670","humanName":"[Appartement][Téléinfo (Electricité)][PAPP]","unite":"","name":"PAPP","type":"info","subtype":"numeric"}
[2023-09-06 06:39:36][DEBUG] : MQTT------Topic : jeedom/cmd/event/1354
[2023-09-06 06:39:36][DEBUG] : MQTT------Data : {"value":"660","humanName":"[Appartement][Téléinfo (Electricité)][PAPP]","unite":"","name":"PAPP","type":"info","subtype":"numeric"}
[2023-09-06 06:39:39][DEBUG] : MQTT------Topic : jeedom/cmd/event/1351
[2023-09-06 06:39:39][DEBUG] : MQTT------Data : {"value":"26108852","humanName":"[Appartement][Téléinfo (Electricité)][BASE]","unite":"","name":"BASE","type":"info","subtype":"numeric"}
[2023-09-06 06:39:46][DEBUG] : MQTT------Topic : jeedom/cmd/event/1351
[2023-09-06 06:39:46][DEBUG] : MQTT------Data : {"value":"26108853","humanName":"[Appartement][Téléinfo (Electricité)][BASE]","unite":"","name":"BASE","type":"info","subtype":"numeric"}
[2023-09-06 06:39:46][DEBUG] : MQTT------Topic : jeedom/cmd/event/1354
[2023-09-06 06:39:46][DEBUG] : MQTT------Data : {"value":"650","humanName":"[Appartement][Téléinfo (Electricité)][PAPP]","unite":"","name":"PAPP","type":"info","subtype":"numeric"}
[2023-09-06 06:39:52][DEBUG] : MQTT------Topic : jeedom/cmd/event/1351
[2023-09-06 06:39:52][DEBUG] : MQTT------Data : {"value":"26108854","humanName":"[Appartement][Téléinfo (Electricité)][BASE]","unite":"","name":"BASE","type":"info","subtype":"numeric"}
[2023-09-06 06:39:52][DEBUG] : MQTT------Topic : jeedom/cmd/event/1354
[2023-09-06 06:39:52][DEBUG] : MQTT------Data : {"value":"660","humanName":"[Appartement][Téléinfo (Electricité)][PAPP]","unite":"","name":"PAPP","type":"info","subtype":"numeric"}
[2023-09-06 06:39:56][DEBUG] : MQTT------Topic : jeedom/cmd/event/1354
[2023-09-06 06:39:56][DEBUG] : MQTT------Data : {"value":"650","humanName":"[Appartement][Téléinfo (Electricité)][PAPP]","unite":"","name":"PAPP","type":"info","subtype":"numeric"}
[2023-09-06 06:39:58][DEBUG] : MQTT------Topic : jeedom/cmd/event/1351
[2023-09-06 06:39:58][DEBUG] : MQTT------Data : {"value":"26108855","humanName":"[Appartement][Téléinfo (Electricité)][BASE]","unite":"","name":"BASE","type":"info","subtype":"numeric"}
[2023-09-06 06:40:07][DEBUG] : MQTT------Topic : jeedom/cmd/event/1351
[2023-09-06 06:40:07][DEBUG] : MQTT------Data : {"value":"26108856","humanName":"[Appartement][Téléinfo (Electricité)][BASE]","unite":"","name":"BASE","type":"info","subtype":"numeric"}
[2023-09-06 06:40:07][DEBUG] : MQTT------Topic : jeedom/cmd/event/1354
[2023-09-06 06:40:07][DEBUG] : MQTT------Data : {"value":"660","humanName":"[Appartement][Téléinfo (Electricité)][PAPP]","unite":"","name":"PAPP","type":"info","subtype":"numeric"}
[2023-09-06 06:40:08][DEBUG] : MQTT------Topic : jeedom/cmd/event/1354
[2023-09-06 06:40:08][DEBUG] : MQTT------Data : {"value":"650","humanName":"[Appartement][Téléinfo (Electricité)][PAPP]","unite":"","name":"PAPP","type":"info","subtype":"numeric"}
[2023-09-06 06:40:09][DEBUG] : MQTT------Topic : jeedom/cmd/event/1357
[2023-09-06 06:40:09][DEBUG] : MQTT------Data : {"value":"8198","humanName":"[Appartement][Téléinfo (Electricité)][STAT_TODAY]","unite":"Wh","name":"STAT_TODAY","type":"info","subtype":"numeric"}
[2023-09-06 06:40:09][DEBUG] : MQTT------Topic : jeedom/cmd/event/1614
[2023-09-06 06:40:09][DEBUG] : MQTT------Data : {"value":"8198","humanName":"[Appartement][Téléinfo (Electricité)][STAT_TODAY_INDEX00]","unite":"Wh","name":"STAT_TODAY_INDEX00","type":"info","subtype":"numeric"}
[2023-09-06 06:40:12][DEBUG] : MQTT------Topic : jeedom/cmd/event/1615
[2023-09-06 06:40:12][DEBUG] : MQTT------Data : {"value":"1.69","humanName":"[Appartement][Téléinfo (Electricité)][STAT_TODAY_INDEX00_COUT]","unite":"€","name":"STAT_TODAY_INDEX00_COUT","type":"info","subtype":"numeric"}
[2023-09-06 06:40:12][DEBUG] : MQTT------Topic : jeedom/cmd/event/1351
[2023-09-06 06:40:12][DEBUG] : MQTT------Data : {"value":"26108857","humanName":"[Appartement][Téléinfo (Electricité)][BASE]","unite":"","name":"BASE","type":"info","subtype":"numeric"}
[2023-09-06 06:40:13][DEBUG] : MQTT------Topic : jeedom/cmd/event/1354
[2023-09-06 06:40:13][DEBUG] : MQTT------Data : {"value":"670","humanName":"[Appartement][Téléinfo (Electricité)][PAPP]","unite":"","name":"PAPP","type":"info","subtype":"numeric"}
[2023-09-06 06:40:14][DEBUG] : MQTT------Topic : jeedom/cmd/event/1359
[2023-09-06 06:40:14][DEBUG] : MQTT------Data : {"value":"8198","humanName":"[Appartement][Téléinfo (Electricité)][STAT_TODAY_HP]","unite":"Wh","name":"STAT_TODAY_HP","type":"info","subtype":"numeric"}
[2023-09-06 06:40:18][DEBUG] : MQTT------Topic : jeedom/cmd/event/1351
[2023-09-06 06:40:18][DEBUG] : MQTT------Data : {"value":"26108858","humanName":"[Appartement][Téléinfo (Electricité)][BASE]","unite":"","name":"BASE","type":"info","subtype":"numeric"}
[2023-09-06 06:40:18][DEBUG] : MQTT------Topic : jeedom/cmd/event/1354
[2023-09-06 06:40:18][DEBUG] : MQTT------Data : {"value":"650","humanName":"[Appartement][Téléinfo (Electricité)][PAPP]","unite":"","name":"PAPP","type":"info","subtype":"numeric"}
[2023-09-06 06:40:20][DEBUG] : MQTT------Topic : jeedom/cmd/event/1354
[2023-09-06 06:40:20][DEBUG] : MQTT------Data : {"value":"660","humanName":"[Appartement][Téléinfo (Electricité)][PAPP]","unite":"","name":"PAPP","type":"info","subtype":"numeric"}
[2023-09-06 06:40:24][DEBUG] : MQTT------Topic : jeedom/cmd/event/1351
[2023-09-06 06:40:24][DEBUG] : MQTT------Data : {"value":"26108859","humanName":"[Appartement][Téléinfo (Electricité)][BASE]","unite":"","name":"BASE","type":"info","subtype":"numeric"}
[2023-09-06 06:40:25][DEBUG] : MQTT------Topic : jeedom/cmd/event/1354
J’aurais enfin une dernière question qui est de savoir si il est prévu que le pligin passe en stable dans cette présente version ?
Merci d’avance et pardon d’avoir été si long.