Pb commande action message avec mqtt2modbus

Un petit UP :smiling_face:

Désolé, j’ai manqué ta réponse précédente.

Du coup je suppose que ca ne fonctionne pas, pourtant aucune erreur.
Peux-tu passer en debug, redémarrer le démon et faire le même test?

Et voila en mode debug

[2024-09-13 08:57:38] INFO  : Signal 15 caught, exiting...
[2024-09-13 08:57:38] INFO  : Cancelling 6 tasks
[2024-09-13 08:57:38] INFO  : Disconnected from modbus & MQTT
[2024-09-13 08:57:38] INFO  : Disconnected from MQTT.
[2024-09-13 08:57:38] INFO  : Disconnected from MQTT.
[2024-09-13 08:57:38] INFO  : Disconnected from modbus & MQTT
[2024-09-13 08:57:38] INFO  : Disconnected from MQTT.
[2024-09-13 08:57:38] INFO  : Disconnected from modbus & MQTT
[2024-09-13 08:57:38] INFO  : Listening cancelled
[2024-09-13 08:57:38] INFO  : Send async cancelled
[2024-09-13 08:57:38] INFO  : Shutdown
[2024-09-13 08:57:40] INFO  : Starting daemon with log level: debug
[2024-09-13 08:57:40] DEBUG  : Writing PID 597167 to /tmp/jeedom/modbus2mqtt/daemon.pid
[2024-09-13 08:57:40] INFO  : Listening on 127.0.0.1:55071
[2024-09-13 08:57:40] INFO  : Send async started with a cycle of 0.5s
[2024-09-13 08:57:41] DEBUG  : Received new message on socket
[2024-09-13 08:57:41] DEBUG  : Close connection
[2024-09-13 08:57:41] INFO  : Starting modbus4mqtt for 268 and topic carte_entrees
[2024-09-13 08:57:41] DEBUG  : connect mqtt to 127.0.0.1 on 1883 with user jeedom-bas
[2024-09-13 08:57:41] DEBUG  : will publish to modbus2mqtt-bas/carte_entrees
[2024-09-13 08:57:41] INFO  : Start polling...
[2024-09-13 08:57:41] DEBUG  : Received new message on socket
[2024-09-13 08:57:41] DEBUG  : Received new message on socket
[2024-09-13 08:57:41] DEBUG  : Close connection
[2024-09-13 08:57:41] DEBUG  : Close connection
[2024-09-13 08:57:41] INFO  : Starting modbus4mqtt for 270 and topic carte_sorties
[2024-09-13 08:57:41] DEBUG  : connect mqtt to 127.0.0.1 on 1883 with user jeedom-bas
[2024-09-13 08:57:41] DEBUG  : will publish to modbus2mqtt-bas/carte_sorties
[2024-09-13 08:57:41] INFO  : Connected to MQTT.
[2024-09-13 08:57:41] INFO  : Starting modbus4mqtt for 269 and topic compteurs_eau
[2024-09-13 08:57:41] DEBUG  : connect mqtt to 127.0.0.1 on 1883 with user jeedom-bas
[2024-09-13 08:57:41] DEBUG  : will publish to modbus2mqtt-bas/compteurs_eau
[2024-09-13 08:57:41] INFO  : Connected to MQTT.
[2024-09-13 08:57:41] INFO  : Subscribed to modbus2mqtt-bas/carte_sorties/on_1
[2024-09-13 08:57:41] INFO  : Subscribed to modbus2mqtt-bas/carte_sorties/off_1
[2024-09-13 08:57:41] INFO  : Start polling...
[2024-09-13 08:57:41] INFO  : Start polling...
[2024-09-13 08:57:41] INFO  : Connected to MQTT.
[2024-09-13 08:57:41] INFO  : Signal 15 caught, exiting...
[2024-09-13 08:57:41] INFO  : Cancelling 6 tasks
[2024-09-13 08:57:41] DEBUG  : polling cancelled
[2024-09-13 08:57:41] INFO  : Disconnected from modbus & MQTT
[2024-09-13 08:57:41] DEBUG  : polling cancelled
[2024-09-13 08:57:41] INFO  : Disconnected from MQTT.
[2024-09-13 08:57:41] INFO  : Disconnected from MQTT.
[2024-09-13 08:57:41] INFO  : Disconnected from modbus & MQTT
[2024-09-13 08:57:41] DEBUG  : polling cancelled
[2024-09-13 08:57:41] INFO  : Disconnected from MQTT.
[2024-09-13 08:57:41] INFO  : Disconnected from modbus & MQTT
[2024-09-13 08:57:41] INFO  : Listening cancelled
[2024-09-13 08:57:41] INFO  : Send async cancelled
[2024-09-13 08:57:41] INFO  : Shutdown
[2024-09-13 08:57:41] DEBUG  : Removing PID file /tmp/jeedom/modbus2mqtt/daemon.pid
[2024-09-13 08:57:41] DEBUG  : Exit 0
[2024-09-13 08:57:45] INFO  : Starting daemon with log level: debug
[2024-09-13 08:57:45] DEBUG  : Writing PID 597201 to /tmp/jeedom/modbus2mqtt/daemon.pid
[2024-09-13 08:57:45] INFO  : Listening on 127.0.0.1:55071
[2024-09-13 08:57:45] INFO  : Send async started with a cycle of 0.5s
[2024-09-13 08:57:46] DEBUG  : Received new message on socket
[2024-09-13 08:57:46] DEBUG  : Close connection
[2024-09-13 08:57:46] INFO  : Starting modbus4mqtt for 268 and topic carte_entrees
[2024-09-13 08:57:46] DEBUG  : connect mqtt to 127.0.0.1 on 1883 with user jeedom-bas
[2024-09-13 08:57:46] DEBUG  : will publish to modbus2mqtt-bas/carte_entrees
[2024-09-13 08:57:46] INFO  : Start polling...
[2024-09-13 08:57:46] DEBUG  : Received new message on socket
[2024-09-13 08:57:46] DEBUG  : Received new message on socket
[2024-09-13 08:57:46] DEBUG  : Close connection
[2024-09-13 08:57:46] DEBUG  : Close connection
[2024-09-13 08:57:46] INFO  : Starting modbus4mqtt for 270 and topic carte_sorties
[2024-09-13 08:57:46] DEBUG  : connect mqtt to 127.0.0.1 on 1883 with user jeedom-bas
[2024-09-13 08:57:46] DEBUG  : will publish to modbus2mqtt-bas/carte_sorties
[2024-09-13 08:57:46] INFO  : Connected to MQTT.
[2024-09-13 08:57:46] INFO  : Starting modbus4mqtt for 269 and topic compteurs_eau
[2024-09-13 08:57:46] DEBUG  : connect mqtt to 127.0.0.1 on 1883 with user jeedom-bas
[2024-09-13 08:57:46] DEBUG  : will publish to modbus2mqtt-bas/compteurs_eau
[2024-09-13 08:57:46] INFO  : Connected to MQTT.
[2024-09-13 08:57:46] INFO  : Subscribed to modbus2mqtt-bas/carte_sorties/on_1
[2024-09-13 08:57:46] INFO  : Subscribed to modbus2mqtt-bas/carte_sorties/off_1
[2024-09-13 08:57:46] INFO  : Start polling...
[2024-09-13 08:57:46] INFO  : Start polling...
[2024-09-13 08:57:46] INFO  : Connected to MQTT.
[2024-09-13 08:57:51] DEBUG  : Publish 0 to modbus2mqtt-bas/carte_entrees/entree_1
[2024-09-13 08:57:51] DEBUG  : Publish 0 to modbus2mqtt-bas/carte_entrees/entree_2
[2024-09-13 08:57:51] DEBUG  : Publish 0 to modbus2mqtt-bas/carte_entrees/entree_3
[2024-09-13 08:57:51] DEBUG  : Publish 0 to modbus2mqtt-bas/carte_entrees/entree_4
[2024-09-13 08:57:51] DEBUG  : Publish 0 to modbus2mqtt-bas/carte_entrees/entree_5
[2024-09-13 08:57:51] DEBUG  : Publish 0 to modbus2mqtt-bas/carte_entrees/entree_6
[2024-09-13 08:57:51] DEBUG  : Publish 0 to modbus2mqtt-bas/carte_entrees/entree_7
[2024-09-13 08:57:51] DEBUG  : Publish 0 to modbus2mqtt-bas/carte_entrees/entree_8
[2024-09-13 08:57:51] DEBUG  : Publish 0 to modbus2mqtt-bas/carte_entrees/entree_9
[2024-09-13 08:57:51] DEBUG  : Publish 0 to modbus2mqtt-bas/carte_entrees/entree_10
[2024-09-13 08:57:51] DEBUG  : Publish 0 to modbus2mqtt-bas/carte_entrees/entree_11
[2024-09-13 08:57:51] DEBUG  : Publish 0 to modbus2mqtt-bas/carte_entrees/entree_12
[2024-09-13 08:57:51] DEBUG  : Publish 0 to modbus2mqtt-bas/carte_entrees/entree_13
[2024-09-13 08:57:51] DEBUG  : Publish 0 to modbus2mqtt-bas/carte_entrees/entree_14
[2024-09-13 08:57:51] DEBUG  : Publish 0 to modbus2mqtt-bas/carte_entrees/entree_15
[2024-09-13 08:57:51] DEBUG  : Publish 0 to modbus2mqtt-bas/carte_entrees/entree_16
[2024-09-13 08:57:51] DEBUG  : Publish 1 to modbus2mqtt-bas/carte_entrees/entree_17
[2024-09-13 08:57:51] DEBUG  : Publish 1 to modbus2mqtt-bas/carte_entrees/entree_18
[2024-09-13 08:57:51] DEBUG  : Publish 0 to modbus2mqtt-bas/carte_entrees/entree_19
[2024-09-13 08:57:51] DEBUG  : Publish 0 to modbus2mqtt-bas/carte_entrees/entree_20
[2024-09-13 08:57:51] DEBUG  : Publish 0 to modbus2mqtt-bas/carte_entrees/entree_21
[2024-09-13 08:57:51] DEBUG  : Publish 0 to modbus2mqtt-bas/carte_entrees/entree_22
[2024-09-13 08:57:51] DEBUG  : Publish 0 to modbus2mqtt-bas/carte_entrees/entree_23
[2024-09-13 08:57:51] DEBUG  : Publish 0 to modbus2mqtt-bas/carte_entrees/entree_24
[2024-09-13 08:57:51] DEBUG  : Publish 1 to modbus2mqtt-bas/carte_entrees/entree_25
[2024-09-13 08:57:51] DEBUG  : Publish 1 to modbus2mqtt-bas/carte_entrees/entree_26
[2024-09-13 08:57:51] DEBUG  : Publish 1 to modbus2mqtt-bas/carte_entrees/entree_27
[2024-09-13 08:57:51] DEBUG  : Publish 1 to modbus2mqtt-bas/carte_entrees/entree_28
[2024-09-13 08:57:51] DEBUG  : Publish 1 to modbus2mqtt-bas/carte_entrees/entree_29
[2024-09-13 08:57:51] DEBUG  : Publish 1 to modbus2mqtt-bas/carte_entrees/entree_30
[2024-09-13 08:57:51] DEBUG  : Publish 1 to modbus2mqtt-bas/carte_entrees/entree_31
[2024-09-13 08:57:51] DEBUG  : Publish 1 to modbus2mqtt-bas/carte_entrees/entree_32
[2024-09-13 08:57:51] DEBUG  : Publish 0 to modbus2mqtt-bas/carte_sorties/uno
[2024-09-13 08:57:51] DEBUG  : Publish 0 to modbus2mqtt-bas/carte_sorties/dos
[2024-09-13 08:58:46] DEBUG  : Publish 412225 to modbus2mqtt-bas/compteurs_eau/consommation_eau_ville
[2024-09-13 08:58:46] DEBUG  : Publish 148838 to modbus2mqtt-bas/compteurs_eau/consommation_eau_arrosage
[2024-09-13 08:59:33] INFO  : got a message: modbus2mqtt-bas/carte_sorties/on_1: b'1'
[2024-09-13 08:59:33] DEBUG  : set value 1 in holding at 1 of type int16
[2024-09-13 08:59:44] INFO  : got a message: modbus2mqtt-bas/carte_sorties/off_1: b'2'
[2024-09-13 08:59:44] DEBUG  : set value 2 in holding at 1 of type int16

donc le log dit qu’il a écrit l’info et aucune erreur

je vais avoir du mal à savoir pourquoi l’écriture semble refusée par ton device

Je comprends.
Si je fais le parallèle avec le plugin Mymodbus, le paramétrage qui fonctionne est le suivant:


La seule différence notable que j’identifie est l’inversion d’octets Il est possible que cela vienne de là.
Merci de ton avis

je peux essayer d’ajouter cette option si tu veux tester ca

Ok on fait ça.

Voila, ca sera dans la beta demain

Bonjour,
Super ça fonctionne c’était bien cela.

Lorsque tu feras évoluer ce plugin, je suis preneur d’un type « float 32 » largement utilisée par les équipements en mode RTU :smirk:
Encore merci pour ta réactivité.
Bonne journée

2 « J'aime »

je suis pas contre mais par soucis de clarté et pour mon suivi, peux-tu ouvrir un nouveau post avec cette demande?
ainsi tu peux cocher le post « solution » sur celui-ci (qui concernait donc les actions messages)

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