Pb commande action message avec mqtt2modbus

Bonjour,
Je n’arrive pas à faire fonctionner une commande action message alors que le plugin fonctionne parfaitement par ailleurs. Je dois passer à côté de quelque chose !!!
Ci-joint les copies d’écran du paramétrage qui fonctionne avec MyModbus




Je n’ai pas de message d’erreur. Le log est vide même en mode debug lorsque je lance l’action.
Je suis à votre disposition pour des informations complémentaires
Merci pour vos éclairages

et le démon a été redémarrer?
en log debug impossible d’avoir un log vide à moins d’avoir un soucis sur le système
il doit y avoir un log info et debug lors de lecture et écriture, je viens de retester de mon coté

Oui j’ai redémarré le démon.
ci-après le log en debug

[2024-08-25 09:00:10][DEBUG] : preConfig_topic_prefix
[2024-08-25 09:00:10][DEBUG] : postConfig_topic_prefix
[2024-08-25 09:00:10][DEBUG] : Listening to topic:'modbus2mqtt'
[2024-08-25 09:00:10][DEBUG] : handle Mqtt Message:{"modbus2mqtt":{"carte_entrees":{"modbus2mqtt_status":0},"compteurs_eau":{"modbus2mqtt_status":0},"vmc":{"modbus2mqtt_status":0},"carte_sorties":{"modbus2mqtt_status":0}}}
[2024-08-25 09:00:10][DEBUG] : found eqLogic 268:{"modbus2mqtt_status":0}
[2024-08-25 09:00:10][DEBUG] : value for cmd modbus2mqtt_status=0
[2024-08-25 09:00:10][DEBUG] : found eqLogic 269:{"modbus2mqtt_status":0}
[2024-08-25 09:00:10][DEBUG] : value for cmd modbus2mqtt_status=0
[2024-08-25 09:00:10][DEBUG] : found eqLogic 265:{"modbus2mqtt_status":0}
[2024-08-25 09:00:10][DEBUG] : value for cmd modbus2mqtt_status=0
[2024-08-25 09:00:10][DEBUG] : found eqLogic 270:{"modbus2mqtt_status":0}
[2024-08-25 09:00:10][DEBUG] : value for cmd modbus2mqtt_status=0
[2024-08-25 09:00:12][DEBUG] : Informations reçues de mqtt2 : {"ip":"127.0.0.1","port":"1883","protocol":"mqtt","user":"jeedom","password":"xxx"}
[2024-08-25 09:00:12][INFO] : Lancement démon
[2024-08-25 09:00:13][DEBUG] : params to send to daemon:{"action":"start","eqLogicId":"268","topic":"carte_entrees"}
[2024-08-25 09:00:13][DEBUG] : params to send to daemon:{"action":"start","eqLogicId":"270","topic":"carte_sorties"}
[2024-08-25 09:00:13][DEBUG] : params to send to daemon:{"action":"start","eqLogicId":"269","topic":"compteurs_eau"}
[2024-08-25 09:00:13][DEBUG] : params to send to daemon:{"action":"start","eqLogicId":"265","topic":"vmc"}
[2024-08-25 09:00:13][DEBUG] : handle Mqtt Message:{"modbus2mqtt":{"carte_entrees":{"modbus2mqtt_status":0},"carte_sorties":{"modbus2mqtt_status":1},"compteurs_eau":{"modbus2mqtt_status":1},"vmc":{"modbus2mqtt_status":1}}}
[2024-08-25 09:00:13][DEBUG] : found eqLogic 268:{"modbus2mqtt_status":0}
[2024-08-25 09:00:13][DEBUG] : value for cmd modbus2mqtt_status=0
[2024-08-25 09:00:13][DEBUG] : found eqLogic 270:{"modbus2mqtt_status":1}
[2024-08-25 09:00:13][DEBUG] : value for cmd modbus2mqtt_status=1
[2024-08-25 09:00:13][DEBUG] : found eqLogic 269:{"modbus2mqtt_status":1}
[2024-08-25 09:00:13][DEBUG] : value for cmd modbus2mqtt_status=1
[2024-08-25 09:00:13][DEBUG] : found eqLogic 265:{"modbus2mqtt_status":1}
[2024-08-25 09:00:13][DEBUG] : value for cmd modbus2mqtt_status=1
[2024-08-25 09:00:14][DEBUG] : handle Mqtt Message:{"modbus2mqtt":{"carte_entrees":{"modbus2mqtt_status":0},"vmc":{"modbus2mqtt_status":0},"compteurs_eau":{"modbus2mqtt_status":0},"carte_sorties":{"modbus2mqtt_status":0}}}
[2024-08-25 09:00:14][DEBUG] : found eqLogic 268:{"modbus2mqtt_status":0}
[2024-08-25 09:00:14][DEBUG] : value for cmd modbus2mqtt_status=0
[2024-08-25 09:00:14][DEBUG] : found eqLogic 265:{"modbus2mqtt_status":0}
[2024-08-25 09:00:14][DEBUG] : value for cmd modbus2mqtt_status=0
[2024-08-25 09:00:14][DEBUG] : found eqLogic 269:{"modbus2mqtt_status":0}
[2024-08-25 09:00:14][DEBUG] : value for cmd modbus2mqtt_status=0
[2024-08-25 09:00:14][DEBUG] : found eqLogic 270:{"modbus2mqtt_status":0}
[2024-08-25 09:00:14][DEBUG] : value for cmd modbus2mqtt_status=0
[2024-08-25 09:00:15][DEBUG] : Listening to topic:'modbus2mqtt'
[2024-08-25 09:00:17][DEBUG] : Informations reçues de mqtt2 : {"ip":"127.0.0.1","port":"1883","protocol":"mqtt","user":"jeedom","password":"5nb5E9QBeiddOUrNmV5RW3dR12lnNxh6idwWJZw8PSsOEn2Vf7yDuPWdYmLj96s6"}
[2024-08-25 09:00:17][INFO] : Lancement démon
[2024-08-25 09:00:18][DEBUG] : params to send to daemon:{"action":"start","eqLogicId":"268","topic":"carte_entrees"}
[2024-08-25 09:00:18][DEBUG] : params to send to daemon:{"action":"start","eqLogicId":"270","topic":"carte_sorties"}
[2024-08-25 09:00:18][DEBUG] : params to send to daemon:{"action":"start","eqLogicId":"269","topic":"compteurs_eau"}
[2024-08-25 09:00:18][DEBUG] : params to send to daemon:{"action":"start","eqLogicId":"265","topic":"vmc"}
[2024-08-25 09:00:18][DEBUG] : handle Mqtt Message:{"modbus2mqtt":{"carte_entrees":{"modbus2mqtt_status":1},"carte_sorties":{"modbus2mqtt_status":1},"compteurs_eau":{"modbus2mqtt_status":1},"vmc":{"modbus2mqtt_status":1}}}
[2024-08-25 09:00:18][DEBUG] : found eqLogic 268:{"modbus2mqtt_status":1}
[2024-08-25 09:00:18][DEBUG] : value for cmd modbus2mqtt_status=1
[2024-08-25 09:00:18][DEBUG] : found eqLogic 270:{"modbus2mqtt_status":1}
[2024-08-25 09:00:18][DEBUG] : value for cmd modbus2mqtt_status=1
[2024-08-25 09:00:18][DEBUG] : found eqLogic 269:{"modbus2mqtt_status":1}
[2024-08-25 09:00:18][DEBUG] : value for cmd modbus2mqtt_status=1
[2024-08-25 09:00:18][DEBUG] : found eqLogic 265:{"modbus2mqtt_status":1}
[2024-08-25 09:00:18][DEBUG] : value for cmd modbus2mqtt_status=1
[2024-08-25 09:00:24][DEBUG] : handle Mqtt Message:{"modbus2mqtt":{"carte_entrees":{"entree_1":0,"entree_2":0,"entree_3":0,"entree_4":0,"entree_5":0,"entree_6":0,"entree_7":0,"entree_8":0,"entree_9":0,"entree_10":0,"entree_11":0,"entree_12":0,"entree_13":0,"entree_14":0,"entree_15":0,"entree_16":0,"entree_17":0,"entree_18":0,"entree_19":0,"entree_20":0,"entree_21":0,"entree_22":0,"entree_23":0,"entree_24":0,"entree_25":0,"entree_26":0,"entree_27":0,"entree_28":0,"entree_29":0,"entree_30":0,"entree_31":0,"entree_32":0}}}
[2024-08-25 09:00:24][DEBUG] : found eqLogic 268:{"entree_1":0,"entree_2":0,"entree_3":0,"entree_4":0,"entree_5":0,"entree_6":0,"entree_7":0,"entree_8":0,"entree_9":0,"entree_10":0,"entree_11":0,"entree_12":0,"entree_13":0,"entree_14":0,"entree_15":0,"entree_16":0,"entree_17":0,"entree_18":0,"entree_19":0,"entree_20":0,"entree_21":0,"entree_22":0,"entree_23":0,"entree_24":0,"entree_25":0,"entree_26":0,"entree_27":0,"entree_28":0,"entree_29":0,"entree_30":0,"entree_31":0,"entree_32":0}
[2024-08-25 09:00:24][DEBUG] : value for cmd entree_1=0
[2024-08-25 09:00:24][DEBUG] : value for cmd entree_2=0
[2024-08-25 09:00:24][DEBUG] : value for cmd entree_3=0
[2024-08-25 09:00:24][DEBUG] : value for cmd entree_4=0
[2024-08-25 09:00:24][DEBUG] : value for cmd entree_5=0
[2024-08-25 09:00:24][DEBUG] : value for cmd entree_6=0
[2024-08-25 09:00:24][DEBUG] : value for cmd entree_7=0
[2024-08-25 09:00:24][DEBUG] : value for cmd entree_8=0
[2024-08-25 09:00:24][DEBUG] : value for cmd entree_9=0
[2024-08-25 09:00:24][DEBUG] : value for cmd entree_10=0
[2024-08-25 09:00:24][DEBUG] : value for cmd entree_11=0
[2024-08-25 09:00:24][DEBUG] : value for cmd entree_12=0
[2024-08-25 09:00:24][DEBUG] : value for cmd entree_13=0
[2024-08-25 09:00:24][DEBUG] : value for cmd entree_14=0
[2024-08-25 09:00:24][DEBUG] : value for cmd entree_15=0
[2024-08-25 09:00:24][DEBUG] : value for cmd entree_16=0
[2024-08-25 09:00:24][DEBUG] : value for cmd entree_17=0
[2024-08-25 09:00:24][DEBUG] : value for cmd entree_18=0
[2024-08-25 09:00:24][DEBUG] : value for cmd entree_19=0
[2024-08-25 09:00:24][DEBUG] : value for cmd entree_20=0
[2024-08-25 09:00:24][DEBUG] : value for cmd entree_21=0
[2024-08-25 09:00:24][DEBUG] : value for cmd entree_22=0
[2024-08-25 09:00:24][DEBUG] : value for cmd entree_23=0
[2024-08-25 09:00:24][DEBUG] : value for cmd entree_24=0
[2024-08-25 09:00:24][DEBUG] : value for cmd entree_25=0
[2024-08-25 09:00:24][DEBUG] : value for cmd entree_26=0
[2024-08-25 09:00:24][DEBUG] : value for cmd entree_27=0
[2024-08-25 09:00:24][DEBUG] : value for cmd entree_28=0
[2024-08-25 09:00:24][DEBUG] : value for cmd entree_29=0
[2024-08-25 09:00:24][DEBUG] : value for cmd entree_30=0
[2024-08-25 09:00:24][DEBUG] : value for cmd entree_31=0
[2024-08-25 09:00:24][DEBUG] : value for cmd entree_32=0
[2024-08-25 09:00:49][DEBUG] : handle Mqtt Message:{"modbus2mqtt":{"vmc":{"T_insufflation":19,"T_interieur":20.7,"T_neuf":20.1,"T_extraction":19,"debit_actuel":80}}}
[2024-08-25 09:00:49][DEBUG] : found eqLogic 265:{"T_insufflation":19,"T_interieur":20.7,"T_neuf":20.1,"T_extraction":19,"debit_actuel":80}
[2024-08-25 09:00:49][DEBUG] : value for cmd T_insufflation=19
[2024-08-25 09:00:49][DEBUG] : value for cmd T_interieur=20.7
[2024-08-25 09:00:49][DEBUG] : value for cmd T_neuf=20.1
[2024-08-25 09:00:49][DEBUG] : value for cmd T_extraction=19
[2024-08-25 09:00:49][DEBUG] : value for cmd debit_actuel=80
[2024-08-25 09:01:19][DEBUG] : handle Mqtt Message:{"modbus2mqtt":{"compteurs_eau":{"consommation_eau_ville":389703,"consommation_eau_arrosage":127461}}}
[2024-08-25 09:01:19][DEBUG] : found eqLogic 269:{"consommation_eau_ville":389703,"consommation_eau_arrosage":127461}
[2024-08-25 09:01:19][DEBUG] : value for cmd consommation_eau_ville=389703
[2024-08-25 09:01:19][DEBUG] : value for cmd consommation_eau_arrosage=127461

Quand j’écrivais le log est vide cela voulait dire vide d’information concernant ces commandes

merci de mettre le log dans un Texte préformaté

Vous utilisez quoi pour préformater un log ?

le bouton </>

image

il faut regarder dans le log du démon, ca c’est le log du plugin
dans celui là on verra l’info qui remonte lorsqu’elle sera mise à jour

Bonsoir,
Voila ci-après ce que j’obtiens dans le log du démon en lançant les 2 commandes action:

  • message 1 → 1
  • message 2 → 2.
    ça ne me parle pas du tout. Des idées de pistes à explorer ?
[2024-08-26 21:42:00][DEBUG] : Current transaction state - TRANSACTION_COMPLETE
[2024-08-26 21:42:00][DEBUG] : Running transaction 3414
[2024-08-26 21:42:00][DEBUG] : SEND: 0xd 0x56 0x0 0x0 0x0 0x6 0x2 0x3 0x0 0x80 0x0 0x20
[2024-08-26 21:42:00][DEBUG] : New Transaction state 'SENDING'
[2024-08-26 21:42:00][DEBUG] : Changing transaction state from 'SENDING' to 'WAITING FOR REPLY'
[2024-08-26 21:42:00][DEBUG] : Changing transaction state from 'WAITING FOR REPLY' to 'PROCESSING REPLY'
[2024-08-26 21:42:00][DEBUG] : RECV: 0xd 0x56 0x0 0x0 0x0 0x43 0x2 0x3 0x40 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x1 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x1 0x0 0x1 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x1 0x0 0x1 0x0 0x1
[2024-08-26 21:42:00][DEBUG] : Processing: 0xd 0x56 0x0 0x0 0x0 0x43 0x2 0x3 0x40 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x1 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x1 0x0 0x1 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x1 0x0 0x1 0x0 0x1
[2024-08-26 21:42:00][DEBUG] : Factory Response[ReadHoldingRegistersResponse: 3]
[2024-08-26 21:42:00][DEBUG] : Adding transaction 3414
[2024-08-26 21:42:00][DEBUG] : Getting transaction 3414
[2024-08-26 21:42:00][DEBUG] : Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE'
[2024-08-26 21:42:00][DEBUG] : Current transaction state - TRANSACTION_COMPLETE
[2024-08-26 21:42:00][DEBUG] : Running transaction 25604
[2024-08-26 21:42:00][DEBUG] : SEND: 0x64 0x4 0x0 0x0 0x0 0x6 0x1 0x3 0x0 0x1 0x0 0x1
[2024-08-26 21:42:00][DEBUG] : New Transaction state 'SENDING'
[2024-08-26 21:42:00][DEBUG] : Changing transaction state from 'SENDING' to 'WAITING FOR REPLY'
[2024-08-26 21:42:00][DEBUG] : Changing transaction state from 'WAITING FOR REPLY' to 'PROCESSING REPLY'
[2024-08-26 21:42:00][DEBUG] : RECV: 0x64 0x4 0x0 0x0 0x0 0x5 0x1 0x3 0x2 0x0 0x0
[2024-08-26 21:42:00][DEBUG] : Processing: 0x64 0x4 0x0 0x0 0x0 0x5 0x1 0x3 0x2 0x0 0x0
[2024-08-26 21:42:00][DEBUG] : Factory Response[ReadHoldingRegistersResponse: 3]
[2024-08-26 21:42:00][DEBUG] : Adding transaction 25604
[2024-08-26 21:42:00][DEBUG] : Getting transaction 25604
[2024-08-26 21:42:00][DEBUG] : Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE'
[2024-08-26 21:42:05][DEBUG] : Current transaction state - TRANSACTION_COMPLETE
[2024-08-26 21:42:05][DEBUG] : Running transaction 3415
[2024-08-26 21:42:05][DEBUG] : SEND: 0xd 0x57 0x0 0x0 0x0 0x6 0x2 0x3 0x0 0x80 0x0 0x20
[2024-08-26 21:42:05][DEBUG] : New Transaction state 'SENDING'
[2024-08-26 21:42:05][DEBUG] : Changing transaction state from 'SENDING' to 'WAITING FOR REPLY'
[2024-08-26 21:42:05][DEBUG] : Changing transaction state from 'WAITING FOR REPLY' to 'PROCESSING REPLY'
[2024-08-26 21:42:05][DEBUG] : RECV: 0xd 0x57 0x0 0x0 0x0 0x43 0x2 0x3 0x40 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x1 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x1 0x0 0x1 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x1 0x0 0x1 0x0 0x1
[2024-08-26 21:42:05][DEBUG] : Processing: 0xd 0x57 0x0 0x0 0x0 0x43 0x2 0x3 0x40 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x1 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x1 0x0 0x1 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x1 0x0 0x1 0x0 0x1
[2024-08-26 21:42:05][DEBUG] : Factory Response[ReadHoldingRegistersResponse: 3]
[2024-08-26 21:42:05][DEBUG] : Adding transaction 3415
[2024-08-26 21:42:05][DEBUG] : Getting transaction 3415
[2024-08-26 21:42:05][DEBUG] : Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE'
[2024-08-26 21:42:05][DEBUG] : Current transaction state - TRANSACTION_COMPLETE
[2024-08-26 21:42:05][DEBUG] : Running transaction 25605
[2024-08-26 21:42:05][DEBUG] : SEND: 0x64 0x5 0x0 0x0 0x0 0x6 0x1 0x3 0x0 0x1 0x0 0x1
[2024-08-26 21:42:05][DEBUG] : New Transaction state 'SENDING'
[2024-08-26 21:42:05][DEBUG] : Changing transaction state from 'SENDING' to 'WAITING FOR REPLY'
[2024-08-26 21:42:05][DEBUG] : Changing transaction state from 'WAITING FOR REPLY' to 'PROCESSING REPLY'
[2024-08-26 21:42:05][DEBUG] : RECV: 0x64 0x5 0x0 0x0 0x0 0x5 0x1 0x3 0x2 0x0 0x0
[2024-08-26 21:42:05][DEBUG] : Processing: 0x64 0x5 0x0 0x0 0x0 0x5 0x1 0x3 0x2 0x0 0x0
[2024-08-26 21:42:05][DEBUG] : Factory Response[ReadHoldingRegistersResponse: 3]
[2024-08-26 21:42:05][DEBUG] : Adding transaction 25605
[2024-08-26 21:42:05][DEBUG] : Getting transaction 25605
[2024-08-26 21:42:05][DEBUG] : Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE'
[2024-08-26 21:42:06][DEBUG] : Current transaction state - TRANSACTION_COMPLETE
[2024-08-26 21:42:06][DEBUG] : Running transaction 25606
[2024-08-26 21:42:06][DEBUG] : SEND: 0x64 0x6 0x0 0x0 0x0 0x6 0x1 0x6 0x0 0x1 0x0 0x1
[2024-08-26 21:42:06][DEBUG] : New Transaction state 'SENDING'
[2024-08-26 21:42:06][DEBUG] : Changing transaction state from 'SENDING' to 'WAITING FOR REPLY'
[2024-08-26 21:42:06][DEBUG] : Changing transaction state from 'WAITING FOR REPLY' to 'PROCESSING REPLY'
[2024-08-26 21:42:06][DEBUG] : RECV: 0x64 0x6 0x0 0x0 0x0 0x6 0x1 0x6 0x0 0x1 0x0 0x1
[2024-08-26 21:42:06][DEBUG] : Processing: 0x64 0x6 0x0 0x0 0x0 0x6 0x1 0x6 0x0 0x1 0x0 0x1
[2024-08-26 21:42:06][DEBUG] : Factory Response[WriteSingleRegisterResponse: 6]
[2024-08-26 21:42:06][DEBUG] : Adding transaction 25606
[2024-08-26 21:42:06][DEBUG] : Getting transaction 25606
[2024-08-26 21:42:06][DEBUG] : Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE'
[2024-08-26 21:42:09][DEBUG] : Current transaction state - TRANSACTION_COMPLETE
[2024-08-26 21:42:09][DEBUG] : Running transaction 25607
[2024-08-26 21:42:09][DEBUG] : SEND: 0x64 0x7 0x0 0x0 0x0 0x6 0x1 0x6 0x0 0x1 0x0 0x2
[2024-08-26 21:42:09][DEBUG] : New Transaction state 'SENDING'
[2024-08-26 21:42:09][DEBUG] : Changing transaction state from 'SENDING' to 'WAITING FOR REPLY'
[2024-08-26 21:42:09][DEBUG] : Changing transaction state from 'WAITING FOR REPLY' to 'PROCESSING REPLY'
[2024-08-26 21:42:09][DEBUG] : RECV: 0x64 0x7 0x0 0x0 0x0 0x6 0x1 0x6 0x0 0x1 0x0 0x2
[2024-08-26 21:42:09][DEBUG] : Processing: 0x64 0x7 0x0 0x0 0x0 0x6 0x1 0x6 0x0 0x1 0x0 0x2
[2024-08-26 21:42:09][DEBUG] : Factory Response[WriteSingleRegisterResponse: 6]
[2024-08-26 21:42:09][DEBUG] : Adding transaction 25607
[2024-08-26 21:42:09][DEBUG] : Getting transaction 25607
[2024-08-26 21:42:09][DEBUG] : Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE'
[2024-08-26 21:42:10][DEBUG] : Current transaction state - TRANSACTION_COMPLETE
[2024-08-26 21:42:10][DEBUG] : Running transaction 3416
[2024-08-26 21:42:10][DEBUG] : SEND: 0xd 0x58 0x0 0x0 0x0 0x6 0x2 0x3 0x0 0x80 0x0 0x20
[2024-08-26 21:42:10][DEBUG] : New Transaction state 'SENDING'
[2024-08-26 21:42:10][DEBUG] : Changing transaction state from 'SENDING' to 'WAITING FOR REPLY'
[2024-08-26 21:42:10][DEBUG] : Changing transaction state from 'WAITING FOR REPLY' to 'PROCESSING REPLY'
[2024-08-26 21:42:10][DEBUG] : RECV: 0xd 0x58 0x0 0x0 0x0 0x43 0x2 0x3 0x40 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x1 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x1 0x0 0x1 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x1 0x0 0x1 0x0 0x1
[2024-08-26 21:42:10][DEBUG] : Processing: 0xd 0x58 0x0 0x0 0x0 0x43 0x2 0x3 0x40 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x1 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x1 0x0 0x1 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x1 0x0 0x1 0x0 0x1
[2024-08-26 21:42:10][DEBUG] : Factory Response[ReadHoldingRegistersResponse: 3]
[2024-08-26 21:42:10][DEBUG] : Adding transaction 3416
[2024-08-26 21:42:10][DEBUG] : Getting transaction 3416
[2024-08-26 21:42:10][DEBUG] : Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE'
[2024-08-26 21:42:10][DEBUG] : Current transaction state - TRANSACTION_COMPLETE
[2024-08-26 21:42:10][DEBUG] : Running transaction 25608
[2024-08-26 21:42:10][DEBUG] : SEND: 0x64 0x8 0x0 0x0 0x0 0x6 0x1 0x3 0x0 0x1 0x0 0x1
[2024-08-26 21:42:10][DEBUG] : New Transaction state 'SENDING'
[2024-08-26 21:42:10][DEBUG] : Changing transaction state from 'SENDING' to 'WAITING FOR REPLY'
[2024-08-26 21:42:10][DEBUG] : Changing transaction state from 'WAITING FOR REPLY' to 'PROCESSING REPLY'
[2024-08-26 21:42:10][DEBUG] : RECV: 0x64 0x8 0x0 0x0 0x0 0x5 0x1 0x3 0x2 0x0 0x0
[2024-08-26 21:42:10][DEBUG] : Processing: 0x64 0x8 0x0 0x0 0x0 0x5 0x1 0x3 0x2 0x0 0x0
[2024-08-26 21:42:10][DEBUG] : Factory Response[ReadHoldingRegistersResponse: 3]
[2024-08-26 21:42:10][DEBUG] : Adding transaction 25608
[2024-08-26 21:42:10][DEBUG] : Getting transaction 25608
[2024-08-26 21:42:10][DEBUG] : Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE'
[2024-08-26 21:42:15][DEBUG] : Current transaction state - TRANSACTION_COMPLETE
[2024-08-26 21:42:15][DEBUG] : Running transaction 3417
[2024-08-26 21:42:15][DEBUG] : SEND: 0xd 0x59 0x0 0x0 0x0 0x6 0x2 0x3 0x0 0x80 0x0 0x20
[2024-08-26 21:42:15][DEBUG] : New Transaction state 'SENDING'
[2024-08-26 21:42:15][DEBUG] : Changing transaction state from 'SENDING' to 'WAITING FOR REPLY'
[2024-08-26 21:42:16][DEBUG] : Changing transaction state from 'WAITING FOR REPLY' to 'PROCESSING REPLY'
[2024-08-26 21:42:16][DEBUG] : RECV: 0xd 0x59 0x0 0x0 0x0 0x43 0x2 0x3 0x40 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x1 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x1 0x0 0x1 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x1 0x0 0x1 0x0 0x1
[2024-08-26 21:42:16][DEBUG] : Processing: 0xd 0x59 0x0 0x0 0x0 0x43 0x2 0x3 0x40 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x1 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x1 0x0 0x1 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x1 0x0 0x1 0x0 0x1
[2024-08-26 21:42:16][DEBUG] : Factory Response[ReadHoldingRegistersResponse: 3]
[2024-08-26 21:42:16][DEBUG] : Adding transaction 3417
[2024-08-26 21:42:16][DEBUG] : Getting transaction 3417
[2024-08-26 21:42:16][DEBUG] : Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE'
[2024-08-26 21:42:16][DEBUG] : Current transaction state - TRANSACTION_COMPLETE
[2024-08-26 21:42:16][DEBUG] : Running transaction 25609
[2024-08-26 21:42:16][DEBUG] : SEND: 0x64 0x9 0x0 0x0 0x0 0x6 0x1 0x3 0x0 0x1 0x0 0x1
[2024-08-26 21:42:16][DEBUG] : New Transaction state 'SENDING'
[2024-08-26 21:42:16][DEBUG] : Changing transaction state from 'SENDING' to 'WAITING FOR REPLY'
[2024-08-26 21:42:16][DEBUG] : Changing transaction state from 'WAITING FOR REPLY' to 'PROCESSING REPLY'
[2024-08-26 21:42:16][DEBUG] : RECV: 0x64 0x9 0x0 0x0 0x0 0x5 0x1 0x3 0x2 0x0 0x0
[2024-08-26 21:42:16][DEBUG] : Processing: 0x64 0x9 0x0 0x0 0x0 0x5 0x1 0x3 0x2 0x0 0x0
[2024-08-26 21:42:16][DEBUG] : Factory Response[ReadHoldingRegistersResponse: 3]
[2024-08-26 21:42:16][DEBUG] : Adding transaction 25609
[2024-08-26 21:42:16][DEBUG] : Getting transaction 25609
[2024-08-26 21:42:16][DEBUG] : Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE'

Y a rien dans le log là, ca m’a l’air trop bref comme log.
Plugin en stable ou beta?
Essayes la beta (juste pour être sur que je test la même chose) et laisses le log level à INFO pour l’instant, il n’y a encore rien à debug et ca génère trop de log pour ce qu’on a besoin.

Bon, résultats des tests.
j’étais en stable et je suis passé en beta. A partie de ce moment là les équipements qui fonctionnaient bien n’ont plus été mis à jour. Et ceci malgré,

  • de multiples relances du démon,
  • une réinstallation des dépendances,
  • un redémarrage complet de Jeedom.
    Il me semble que le démon n’arrivait plus à échanger avec les équipements Modbus. Je te joins les différents logs.
======================================================================
== 27/08/2024 19:16:46 == Dependencies installation for modbus2mqtt
======================================================================

[  5% ] : Clean apt...
[  9% ] : Clean apt : [  OK  ]
[ 10% ] : Update apt...
[ 19% ] : Update apt : [  OK  ]
[ 20% ] : Init python3 & prerequisites...
[ 31% ] : Init python3 & prerequisites : [  OK  ]
[ 32% ] : Init pyEnv...
** PyEnv not required: 3.9.2 >= 3.9 **
** python3 path: python3 **
[ 43% ] : Init pyEnv : [  OK  ]
[ 44% ] : Setting up virtual environment...
** Version of python in VENV: Python 3.9.2
[ 79% ] : Setting up virtual environment : [  OK  ]
[ 80% ] : Install the required python packages...
[ 89% ] : Install the required python packages : [  OK  ]
[ 90% ] : Summary of installed packages...
aiohappyeyeballs==2.3.7
aiohttp==3.10.5
aiosignal==1.3.1
async-timeout==4.0.3
attrs==24.2.0
certifi==2024.7.4
charset-normalizer==3.3.2
frozenlist==1.4.1
idna==3.7
jeedomdaemon==0.10.1
multidict==6.0.5
paho-mqtt==2.1.0
pkg_resources==0.0.0
pymodbus==3.6.9
pyserial==3.5
requests==2.32.3
ruamel.yaml==0.18.6
ruamel.yaml.clib==0.2.8
six==1.16.0
urllib3==2.2.2
yarl==1.9.4
[ 99% ] : Summary of installed packages : [  OK  ]
[100% ] : Finished !

======================================================================
== OK == Installation Successful 
======================================================================

modbus2mqtt_daemon.txt (68,1 Ko)
Je suis donc revenu en version stable et le dialogue avec les deux équipements a été rétabli.
J’ai refait mes deux tests en log level INFO mais le log reste vide de ces infos. Il s’agit de l’équipement 270. Je te la joins au cas où.

[2024-08-27 19:35:09][INFO] : Starting daemon
[2024-08-27 19:35:09][INFO] : Log level: info
[2024-08-27 19:35:09][INFO] : Listening on 127.0.0.1:55071
[2024-08-27 19:35:10][INFO] : Starting modbus4mqtt for 268 and topic carte_entrees
[2024-08-27 19:35:10][INFO] : Start polling...
[2024-08-27 19:35:10][INFO] : Starting modbus4mqtt for 270 and topic carte_sorties
[2024-08-27 19:35:10][INFO] : Connected to MQTT.
[2024-08-27 19:35:10][INFO] : Starting modbus4mqtt for 269 and topic compteurs_eau
[2024-08-27 19:35:10][INFO] : Connected to MQTT.
[2024-08-27 19:35:10][INFO] : Start polling...
[2024-08-27 19:35:10][INFO] : Start polling...
[2024-08-27 19:35:10][INFO] : Connected to MQTT.
[2024-08-27 19:35:10][INFO] : Ready
[2024-08-27 19:40:05][INFO] : Signal 15 caught, exiting...
[2024-08-27 19:40:05][INFO] : Stopping modbus4mqtt for 268
[2024-08-27 19:40:05][INFO] : Stopping modbus4mqtt for 270
[2024-08-27 19:40:05][INFO] : Stopping modbus4mqtt for 269
[2024-08-27 19:40:05][INFO] : Listening cancelled
[2024-08-27 19:40:05][INFO] : Disconnected from modbus & MQTT
[2024-08-27 19:40:05][INFO] : Disconnected from MQTT.
[2024-08-27 19:40:05][INFO] : Disconnected from MQTT.
[2024-08-27 19:40:05][INFO] : Disconnected from modbus & MQTT
[2024-08-27 19:40:05][INFO] : Disconnected from MQTT.
[2024-08-27 19:40:05][INFO] : Disconnected from modbus & MQTT
[2024-08-27 19:40:09][INFO] : Starting daemon
[2024-08-27 19:40:09][INFO] : Log level: info
[2024-08-27 19:40:09][INFO] : Listening on 127.0.0.1:55071
[2024-08-27 19:40:10][INFO] : Starting modbus4mqtt for 268 and topic carte_entrees
[2024-08-27 19:40:10][INFO] : Start polling...
[2024-08-27 19:40:10][INFO] : Starting modbus4mqtt for 270 and topic carte_sorties
[2024-08-27 19:40:10][INFO] : Connected to MQTT.
[2024-08-27 19:40:10][INFO] : Starting modbus4mqtt for 269 and topic compteurs_eau
[2024-08-27 19:40:10][INFO] : Connected to MQTT.
[2024-08-27 19:40:10][INFO] : Start polling...
[2024-08-27 19:40:10][INFO] : Start polling...
[2024-08-27 19:40:10][INFO] : Connected to MQTT.
[2024-08-27 19:40:10][INFO] : Ready

Voila c’est pas terrible mais je suis allé au bout des tests. Si besoin je pourrais cloner ma VM de prod pour en faire une de test avec la version beta du plugin et être ainsi plus réactif.

Pas eu le temps de regarder les logs avant maintenant (c’est mieux de les avoir collé dans un Texte préformaté, pas de fichier, sinon je ne sais pas les lire sur mobile, je dois attendre d’être sur l’ordi)
je n’aurai pas le temps ce weekend, je note ca pour semaine prochaine

Pas de souci pour la semaine prochaine.
Je comprend, comme les logs étaient assez importants j’ai préféré attacher des fichiers mais la prochaine fois je n’enverrai que des « Textes préformatés »
Bon WE

j’ai re-testé la version stable et effectivement il n’y aura pas de log clair dans cette version.
D’un autre coté je ne vais pas passer trop de temps à travailler sur la stable alors que la beta comporte d’autres changements majeurs.

par contre j’ai trouvé un bug dans la beta qui faisait que l’adresse du terminal (le « slave id » ou « unit id ») n’était pas correctement pris en compte.
Cela peut causer l’échec de connexion/lecture que l’on voit dans le log de la beta; c’est pas garanti que ca soit la cause mais certain master peuvent être sensible sur ce point je pense.

Donc le mieux serait de re-tester la beta demain avec ce changement et de continuer à faire en sorte que la beta tourne pour ensuite pouvoir comprendre le problème d’écriture s’il est toujours présent.

Bonjour,
J’ai cloné la machine de prod et fait un peu de nettoyage pour ne garder que ce qui est pertinent.
J’ai installé la beta. Bonne nouvelle la lecture de la carte d’entrées fonctionne. Comme il y a plusieurs interfaces sur le concentrateur USR N540 « l’unit id » est essentiel.
J’ai refait des tests d’écriture:

  • le premier avec un message vide et j’obtiens:
0000|[2024-09-03 08:42:02] ERROR  : Failed to convert register value for writing. Bad/missing value_map? Topic: on_1, Value: b''

ce qui semble logique

  • le deuxième avec la valeur 1 dans le message de la commande on_1 et là le log n’affiche rien de plus et la commande n’a pas d’effet sur l’équipement.

Je reste à disposition pour des tests complémentaires
Bonne journée

en beta en loglevel info?

Absolument

sur le démon aussi?

tu peux redémarrer le démon et refaire le test et me donner un log complet; il faut toujours donner un log complet
juste avec l’erreur j’ai un peu de mal à voir ce qui est passé ou non

Et voila.

0000|[2024-09-03 17:43:30] INFO  : Starting daemon with log level: info
0001|[2024-09-03 17:43:30] INFO  : Listening on 127.0.0.1:55071
0002|[2024-09-03 17:43:30] INFO  : Send async started with a cycle of 0.5s
0003|[2024-09-03 17:43:31] INFO  : Starting modbus4mqtt for 268 and topic carte_entrees
0004|[2024-09-03 17:43:31] INFO  : Start polling...
0005|[2024-09-03 17:43:31] INFO  : Signal 15 caught, exiting...
0006|[2024-09-03 17:43:31] INFO  : Cancelling 8 tasks
0007|[2024-09-03 17:43:31] INFO  : Disconnected from modbus & MQTT
0008|[2024-09-03 17:43:31] INFO  : Listening cancelled
0009|[2024-09-03 17:43:31] INFO  : Send async cancelled
0010|[2024-09-03 17:43:31] INFO  : Shutdown
0011|[2024-09-03 17:43:35] INFO  : Starting daemon with log level: info
0012|[2024-09-03 17:43:35] INFO  : Listening on 127.0.0.1:55071
0013|[2024-09-03 17:43:35] INFO  : Send async started with a cycle of 0.5s
0014|[2024-09-03 17:43:36] INFO  : Starting modbus4mqtt for 268 and topic carte_entrees
0015|[2024-09-03 17:43:36] INFO  : Start polling...
0016|[2024-09-03 17:43:36] INFO  : Starting modbus4mqtt for 270 and topic carte_sorties
0017|[2024-09-03 17:43:36] INFO  : Connected to MQTT.
0018|[2024-09-03 17:43:36] INFO  : Starting modbus4mqtt for 269 and topic compteurs_eau
0019|[2024-09-03 17:43:36] INFO  : Connected to MQTT.
0020|[2024-09-03 17:43:36] INFO  : Subscribed to modbus2mqtt-bas/carte_sorties/on_1
0021|[2024-09-03 17:43:36] INFO  : Subscribed to modbus2mqtt-bas/carte_sorties/off_1
0022|[2024-09-03 17:43:36] INFO  : Start polling...
0023|[2024-09-03 17:43:36] INFO  : Start polling...
0024|[2024-09-03 17:43:36] INFO  : Connected to MQTT.
0025|[2024-09-03 17:44:18] INFO  : got a message: modbus2mqtt-bas/carte_sorties/on_1: b'1'

peux-tu configurer un topic pour la publication (différent que celui de l’écriture)

voici ce que je test:

Et voilà. Dans ces commandes initialement je n’avais pas mis de topic de publication.

0000|[2024-09-03 17:43:30] INFO  : Starting daemon with log level: info
0001|[2024-09-03 17:43:30] INFO  : Listening on 127.0.0.1:55071
0002|[2024-09-03 17:43:30] INFO  : Send async started with a cycle of 0.5s
0003|[2024-09-03 17:43:31] INFO  : Starting modbus4mqtt for 268 and topic carte_entrees
0004|[2024-09-03 17:43:31] INFO  : Start polling...
0005|[2024-09-03 17:43:31] INFO  : Signal 15 caught, exiting...
0006|[2024-09-03 17:43:31] INFO  : Cancelling 8 tasks
0007|[2024-09-03 17:43:31] INFO  : Disconnected from modbus & MQTT
0008|[2024-09-03 17:43:31] INFO  : Listening cancelled
0009|[2024-09-03 17:43:31] INFO  : Send async cancelled
0010|[2024-09-03 17:43:31] INFO  : Shutdown
0011|[2024-09-03 17:43:35] INFO  : Starting daemon with log level: info
0012|[2024-09-03 17:43:35] INFO  : Listening on 127.0.0.1:55071
0013|[2024-09-03 17:43:35] INFO  : Send async started with a cycle of 0.5s
0014|[2024-09-03 17:43:36] INFO  : Starting modbus4mqtt for 268 and topic carte_entrees
0015|[2024-09-03 17:43:36] INFO  : Start polling...
0016|[2024-09-03 17:43:36] INFO  : Starting modbus4mqtt for 270 and topic carte_sorties
0017|[2024-09-03 17:43:36] INFO  : Connected to MQTT.
0018|[2024-09-03 17:43:36] INFO  : Starting modbus4mqtt for 269 and topic compteurs_eau
0019|[2024-09-03 17:43:36] INFO  : Connected to MQTT.
0020|[2024-09-03 17:43:36] INFO  : Subscribed to modbus2mqtt-bas/carte_sorties/on_1
0021|[2024-09-03 17:43:36] INFO  : Subscribed to modbus2mqtt-bas/carte_sorties/off_1
0022|[2024-09-03 17:43:36] INFO  : Start polling...
0023|[2024-09-03 17:43:36] INFO  : Start polling...
0024|[2024-09-03 17:43:36] INFO  : Connected to MQTT.
0025|[2024-09-03 17:44:18] INFO  : got a message: modbus2mqtt-bas/carte_sorties/on_1: b'1'
0026|[2024-09-04 13:33:42] INFO  : Stopping modbus4mqtt for 270
0027|[2024-09-04 13:33:42] INFO  : Starting modbus4mqtt for 270 and topic carte_sorties
0028|[2024-09-04 13:33:42] INFO  : Disconnected from modbus & MQTT
0029|[2024-09-04 13:33:42] INFO  : Start polling...
0030|[2024-09-04 13:33:42] INFO  : Disconnected from MQTT.
0031|[2024-09-04 13:33:42] INFO  : Connected to MQTT.
0032|[2024-09-04 13:33:42] INFO  : Subscribed to modbus2mqtt-bas/carte_sorties/on_1
0033|[2024-09-04 13:33:42] INFO  : Subscribed to modbus2mqtt-bas/carte_sorties/off_1
0034|[2024-09-04 13:36:12] INFO  : Stopping modbus4mqtt for 270
0035|[2024-09-04 13:36:12] INFO  : Starting modbus4mqtt for 270 and topic carte_sorties
0036|[2024-09-04 13:36:12] INFO  : Disconnected from modbus & MQTT
0037|[2024-09-04 13:36:12] INFO  : Start polling...
0038|[2024-09-04 13:36:12] INFO  : Disconnected from MQTT.
0039|[2024-09-04 13:36:12] INFO  : Connected to MQTT.
0040|[2024-09-04 13:36:12] INFO  : Subscribed to modbus2mqtt-bas/carte_sorties/on_1
0041|[2024-09-04 13:36:12] INFO  : Subscribed to modbus2mqtt-bas/carte_sorties/off_1
0042|[2024-09-04 13:37:19] INFO  : got a message: modbus2mqtt-bas/carte_sorties/off_1: b'2'
0043|[2024-09-04 13:37:27] INFO  : got a message: modbus2mqtt-bas/carte_sorties/on_1: b'1'