EnOcean inopérant suite migration Jeedom v4

Bonjour tout le monde,

Ce week-end j’ai migré le raspberry de Raspbian Jessie vers Buster (migration sur place, pas de nouvelle installation), puis migré Jeedom de la v3.3.29 vers la v4.0.38. Quasiment tout s’est bien passé sauf la partie EnOcean.

Aujourd’hui je n’ai qu’un capteur EnOcean, il s’agit d’un detecteur d’ouverture Nodon. Il était parfaitement reconnu en v3 et répondait rapidement en cas de changement d’état. Depuis la migration, l’état ne change plus, pourtant l’équipement est toujours présent dans Jeedom. Quand je teste les commandes (Etatet dBm), des valeurs sont retournées mais elles ne sont pas a jour. Si j’ouvre la porte ou si je détache le capteur pour l’amener a coté de la box, les valeurs ne changent pas, meme apres 15min.

Du coup j’ai supprimer l’équipement, puis ajouter a nouveau. la procédure s’est déroulée sans problème et les valeurs se sont mises à jour. Cependant le problème est revenu aussitot !

Après avoir passé le démon en « Debug », voici ce que le log « Openenocean » contient. Le contenu est le meme toutes les 5min (le « Openenocean_update » est vide)

[2020-01-21 18:20:11][INFO] : Lancement démon openenocean : /usr/bin/python /var/www/jeedom/plugins/openenocean/resources/openenoceand/openenoceand.py --device /dev/ttyUSB1 --loglevel debug --socketport 55006 --callback http://127.0.0.1:80/jeedom/plugins/openenocean/core/php/jeeOpenEnOcean.php --apikey <CLEF_CHANGEE> --cycle 0.3 --pid /tmp/jeedom/openenocean/deamon.pid
[2020-01-21 18:20:13][INFO] : Start openenoceand
[2020-01-21 18:20:13][INFO] : Log level : debug
[2020-01-21 18:20:13][INFO] : Socket port : 55006
[2020-01-21 18:20:13][INFO] : Socket host : 127.0.0.1
[2020-01-21 18:20:13][INFO] : PID file : /tmp/jeedom/openenocean/deamon.pid
[2020-01-21 18:20:13][INFO] : Apikey : <CLEF_CHANGEE>
[2020-01-21 18:20:13][INFO] : Callback : http://127.0.0.1:80/jeedom/plugins/openenocean/core/php/jeeOpenEnOcean.php
[2020-01-21 18:20:13][INFO] : Cycle : 0.3
[2020-01-21 18:20:14][INFO] : Loading profile file : D5-00-01.xml
...
[2020-01-21 18:20:20][INFO] : Loading profile file : A5-14-05.xml
[2020-01-21 18:20:20][INFO] : Successfully loaded 87 profiles !
[2020-01-21 18:20:20][DEBUG] : Writing PID 13810 to /tmp/jeedom/openenocean/deamon.pid
[2020-01-21 18:20:20][DEBUG] : Init request module v2.21.0
[2020-01-21 18:20:20][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-01-21 18:20:20][DEBUG] : http://127.0.0.1:80 "GET /jeedom/plugins/openenocean/core/php/jeeOpenEnOcean.php?apikey=<CLEF_CHANGEE> HTTP/1.1" 200 0
[2020-01-21 18:20:20][DEBUG] : Socket interface started
[2020-01-21 18:20:20][DEBUG] : LoopNetServer Thread started
[2020-01-21 18:20:20][DEBUG] : Start listening...
[2020-01-21 18:20:20][DEBUG] : Listening on: [127.0.0.1:55006]
[2020-01-21 18:20:20][INFO] : SerialCommunicator started
[2020-01-21 18:20:20][DEBUG] : Replacing Packet.optional with default value.
[2020-01-21 18:20:20][INFO] : Sending packet
[2020-01-21 18:20:20][DEBUG] : 0x05 ['0x8'] [] OrderedDict()
[2020-01-21 18:20:20][INFO] : Sending packet
[2020-01-21 18:20:20][DEBUG] : 0x05 ['0x8'] [] OrderedDict()
[2020-01-21 18:20:20][INFO] : Sending packet
[2020-01-21 18:20:20][DEBUG] : 0x05 ['0x8'] [] OrderedDict()
[2020-01-21 18:20:20][DEBUG] : [85, 0, 5, 1, 2, 219, 0, 255, 221, 124, 0, 10, 161]
[2020-01-21 18:20:20][DEBUG] : 0x02 ['0x0', '0xff', '0xdd', '0x7c', '0x0'] ['0xa'] OrderedDict()
[2020-01-21 18:20:20][INFO] : The Base ID of your controler is <AABBCCDD_CHANGE>.
[2020-01-21 18:20:20][DEBUG] : Replacing Packet.optional with default value.
[2020-01-21 18:20:20][DEBUG] : Send to jeedom :  {'baseid': '<AABBCCDD_CHANGE>'}
[2020-01-21 18:20:20][DEBUG] : Read Socket Thread Launched
[2020-01-21 18:20:20][DEBUG] : Read Device Thread Launched
[2020-01-21 18:20:20][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-01-21 18:20:20][DEBUG] : Receive response packet : 2
[2020-01-21 18:20:20][INFO] : Sending packet
[2020-01-21 18:20:20][DEBUG] : Response is : OK
[2020-01-21 18:20:20][DEBUG] : 0x05 ['0x3'] [] OrderedDict()
[2020-01-21 18:20:20][INFO] : Sending packet
[2020-01-21 18:20:20][DEBUG] : 0x05 ['0x3'] [] OrderedDict()
[2020-01-21 18:20:20][INFO] : Sending packet
[2020-01-21 18:20:20][DEBUG] : 0x05 ['0x3'] [] OrderedDict()
[2020-01-21 18:20:20][DEBUG] : [85, 0, 5, 1, 2, 219, 0, 255, 221, 124, 0, 10, 161]
[2020-01-21 18:20:20][DEBUG] : 0x02 ['0x0', '0xff', '0xdd', '0x7c', '0x0'] ['0xa'] OrderedDict()
[2020-01-21 18:20:20][DEBUG] : Receive response packet : 2
[2020-01-21 18:20:20][DEBUG] : Response is : OK
[2020-01-21 18:20:20][DEBUG] : [85, 0, 5, 1, 2, 219, 0, 255, 221, 124, 0, 10, 161]
[2020-01-21 18:20:20][DEBUG] : 0x02 ['0x0', '0xff', '0xdd', '0x7c', '0x0'] ['0xa'] OrderedDict()
[2020-01-21 18:20:20][DEBUG] : Receive response packet : 2
[2020-01-21 18:20:20][DEBUG] : http://127.0.0.1:80 "POST /jeedom/plugins/openenocean/core/php/jeeOpenEnOcean.php?apikey=<CLEF_CHANGEE> HTTP/1.1" 200 0
[2020-01-21 18:20:20][DEBUG] : Response is : OK
[2020-01-21 18:20:20][DEBUG] : [85, 0, 33, 0, 2, 38, 0, 2, 15, 0, 0, 2, 6, 9, 0, 5, 140, 186, 248, 69, 79, 1, 3, 71, 65, 84, 69, 87, 65, 89, 67, 84, 82, 76, 0, 0, 0, 0, 0, 148]
[2020-01-21 18:20:20][DEBUG] : 0x02 ['0x0', '0x2', '0xf', '0x0', '0x0', '0x2', '0x6', '0x9', '0x0', '0x5', '0x8c', '0xba', '0xf8', '0x45', '0x4f', '0x1', '0x3', '0x47', '0x41', '0x54', '0x45', '0x57', '0x41', '0x59', '0x43', '0x54', '0x52', '0x4c', '0x0', '0x0', '0x0', '0x0', '0x0'] [] OrderedDict()
[2020-01-21 18:20:20][DEBUG] : Receive response packet : 2
[2020-01-21 18:20:20][DEBUG] : Response is : OK
[2020-01-21 18:20:20][DEBUG] : Send to jeedom :  {'app_description': 'GATEWAYCTRL\x00\x00\x00\x00\x00', 'app_version': u'02:0F:00:00', 'return_code': u'00', 'api_version': u'02:06:09:00', 'chip_version': u'45:4F:01:03'}
[2020-01-21 18:20:20][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-01-21 18:20:21][DEBUG] : [85, 0, 33, 0, 2, 38, 0, 2, 15, 0, 0, 2, 6, 9, 0, 5, 140, 186, 248, 69, 79, 1, 3, 71, 65, 84, 69, 87, 65, 89, 67, 84, 82, 76, 0, 0, 0, 0, 0, 148]
[2020-01-21 18:20:21][DEBUG] : 0x02 ['0x0', '0x2', '0xf', '0x0', '0x0', '0x2', '0x6', '0x9', '0x0', '0x5', '0x8c', '0xba', '0xf8', '0x45', '0x4f', '0x1', '0x3', '0x47', '0x41', '0x54', '0x45', '0x57', '0x41', '0x59', '0x43', '0x54', '0x52', '0x4c', '0x0', '0x0', '0x0', '0x0', '0x0'] [] OrderedDict()
[2020-01-21 18:20:21][DEBUG] : http://127.0.0.1:80 "POST /jeedom/plugins/openenocean/core/php/jeeOpenEnOcean.php?apikey=<CLEF_CHANGEE> HTTP/1.1" 200 0
[2020-01-21 18:20:21][DEBUG] : Receive response packet : 2
[2020-01-21 18:20:21][DEBUG] : Response is : OK
[2020-01-21 18:20:21][DEBUG] : Send to jeedom :  {'app_description': 'GATEWAYCTRL\x00\x00\x00\x00\x00', 'app_version': u'02:0F:00:00', 'return_code': u'00', 'api_version': u'02:06:09:00', 'chip_version': u'45:4F:01:03'}
[2020-01-21 18:20:21][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-01-21 18:20:21][DEBUG] : http://127.0.0.1:80 "POST /jeedom/plugins/openenocean/core/php/jeeOpenEnOcean.php?apikey=<CLEF_CHANGEE> HTTP/1.1" 200 0
[2020-01-21 18:20:23][DEBUG] : Client connected to [127.0.0.1:52638]
[2020-01-21 18:20:23][DEBUG] : Message read from socket: {"apikey":"<CLEF_CHANGEE>","cmd":"add","device":{"id":"<0123465CHANGE>","profils":[{"func":"00","type":"01","rorg":"d5","ignoreRelease":"","allButtons":""}]}}
[2020-01-21 18:20:23][DEBUG] : Client disconnected from [127.0.0.1:52638]
[2020-01-21 18:20:23][DEBUG] : Message received in socket JEEDOM_SOCKET_MESSAGE
[2020-01-21 18:20:23][DEBUG] : Received command from jeedom : add
[2020-01-21 18:20:23][DEBUG] : Add device : {u'id': u'<0123465CHANGE>', u'profils': [{u'rorg': u'd5', u'ignoreRelease': u'', u'allButtons': u'', u'type': u'01', u'func': u'00'}]}

Quelqu’un aurait une idée ?
Pour info, je vois dans le log que ca fait des appels sur 127.0.0.1 (localhost), mais dans la config. réseau de Jeedom j’ai bien mon IP (192.168.x.y) de renseignée l’accès interne.

Merci !

As-tu essayé de réinstaller les dépendances du plugin?

Oui plusieurs fois. Aujourd’hui j’ai vu qu’une MAJ du plugin était dispo, je l’ai faite pas de changement. Du coup à nouveau une réinstallation des dépendances pour voir, et toujours pareil.

Je suis perplexe…

A la fin du log que j’ai mis on voit un « Add device : {u’id’: u’<0123465CHANGE>’, u’profils’: [{u’rorg’: u’d5’, u’ignoreRelease’: u’’, u’allButtons’: u’’, u’type’: u’01’, u’func’: u’00’}]} » avec bien l’D du capteur. Je me demande si Jeedom essaie toujours de l’inclure ?

Hello tout le monde, je ferme ce sujet car le problème s’est réglé de lui meme après quelques jours. Aucune idée du pourquoi ni du comment, surtout qu’en informatique les choses se règlent rarement d’elles memes… :sweat_smile:

Bon dimanche a tous!

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