Panne générale z-wave suite erreur Javascript : TypeError: data.controllerNodeCapabilities is undefined

Page : index.php?v=d&p=plugin
Jeedom_version : 4.0.26
Uname : Linux panoramix 4.15.0-66-generic #75-Ubuntu SMP Tue Oct 1 05:24:09 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux


Message :
Bonjour,

Après plusieurs réinstallations du plugin Openzwave, en stable ou en bêta, je n’arrive toujours pas à régler mon problème. Quand je cherche à accéder au statut de mon réseau ou à sa santé, j’ai systématiquement cette erreur javascript :

https://192.168.0.2/index.php?v=d&m=openzwave&p=openzwave line 2 > scriptElement 396 TypeError: data.controllerNodeCapabilities is undefined

Le problème, c’est que de ce fait je n’ai plus accès à la commande de mes équipements z-wave, et que leurs infos ne remontent pas, même si le démon openzwave tourne normalement…

Que faire ? Merci d’avance pour votre aide…

Donner des logs des versions de jeedom etc
… ça peut aider

Tu n’es pas sous déviant à priori donc sur un OS pas supporté. Je commencerai par la.

Je pensais que le système de rapport de bogues le faisait, désolé. La version de Jeedom est la 4.0.26 comme indiqué plus haut, et ce bogue est d’apparition récente (~une semaine). J’ignorais que seuls les déviants étaient supportés :wink: Plus sérieusement, l’erreur qui m’est présentée est une erreur JavaScript, c’est pas nécessairement lié à Ubuntu je crois, surtout que OpenZwave est vraiment le seul de mes plugins affectés (et j’en ai peut être une quinzaine), et uniquement depuis une semaine… alors que ma configuration tourne sans souci depuis un moment.

Le statut du démon OpenZwave est indiqué OK sur mon interface, tout comme sa configuration. Je n’ai aucune erreur dans le Openzwave_update, et dans Openzwave, j’ai une serie d’erreurs de ce genre :

[2019-11-01 22:14:11][ERROR] : RequestHandler Unknow node id 10

dans Openzwaved, j’ai ça de manière répétée :

2019-11-06 21:25:01.443 Error, contrlr, ERROR: Dropping command, expected response not received after 1 attempt(s)

Bonjour,

Tu tournes sur quel matériel ?

Il semble que le module portant l’id n°10 soit dans les choux non ?

Bonjour,
Je tourne sur un serveur Intel Xeon sous Ubuntu 18.04 LTS localisé chez moi qui porte aussi quelques autres services (mais loin d’être surchargé).

Le problème, c’est qu’il m’indique la même chose pour tous les id de nœuds (dès qu’un scénario en a besoin), alors qu’ils sont listés dans l’interface du plugin, que ça fonctionnait y’a une semaine et que j’ai rien fait à part réinstaller le module… Quand je vais dans « réseau z-wave » ou dans « santé », j’ai l’erreur javascript et les champs non peuplés des valeurs dynamiques à récupérer, alors que dans la conf du plugin, la conf est OK et le démon est OK :confused: du coup je ne comprends pas d’où vient le problème et comment le corriger.

A ta place je commencerai par débrancher la clé ZWAVE pendant 30 minutes, la rebrancher et redémarrer le serveur.

Ensuite mettre les logs zwave en DEBUG pour avoir plus de logs à analyser.

Tu penses que ça sera différent de l’action de redémarrer le serveur (n’ayant pas de service critique dessus, j’en ai profité) ? Parce que je l’ai déjà fait et sans succès, mais jamais essayé de débrancher la clé comme tu l’indiques. Du coup je testerai ça ce soir.

Le restart en DEBUG que j’ai tenté à distance donne ça :
openzwave log :

[2019-11-07 16:18:29][ERROR] : No config file found to backup
[2019-11-07 16:18:32][INFO] : Lancement démon openzwave : /usr/bin/python /var/www/html/plugins/openzwave/core/class/../../resources/openzwaved/openzwaved.py  --device /dev/ttyACM0 --loglevel debug --port 8083 --config_folder /var/www/html/plugins/openzwave/core/class/../../resources/openzwaved/config --data_folder /var/www/html/plugins/openzwave/core/class/../../data --callback http://127.0.0.1:80/plugins/openzwave/core/php/jeeZwave.php --apikey ***** --suppressRefresh 0 --cycle 0.3 --pid /tmp/jeedom/openzwave/deamon.pid
[2019-11-07 16:18:32][INFO] : Start openzwaved
[2019-11-07 16:18:32][INFO] : Log level : debug
[2019-11-07 16:18:32][DEBUG] : PID file : /tmp/jeedom/openzwave/deamon.pid
[2019-11-07 16:18:32][INFO] : Device : /dev/ttyACM0
[2019-11-07 16:18:32][DEBUG] : Apikey : *****
[2019-11-07 16:18:32][INFO] : Callback : http://127.0.0.1:80/plugins/openzwave/core/php/jeeZwave.php
[2019-11-07 16:18:32][INFO] : Cycle : 0.3
[2019-11-07 16:18:32][DEBUG] : Initial disabled nodes list: []
[2019-11-07 16:18:32][DEBUG] : Init request module v2.22.0
[2019-11-07 16:18:32][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2019-11-07 16:18:32][DEBUG] : http://127.0.0.1:80 "GET /plugins/openzwave/core/php/jeeZwave.php?apikey=***** HTTP/1.1" 200 0
[2019-11-07 16:18:32][INFO] : Check if the port REST server available
[2019-11-07 16:18:32][INFO] : --> pass
[2019-11-07 16:18:32][INFO] : Check OpenZWave Devices Database
[2019-11-07 16:18:32][INFO] : --> pass
[2019-11-07 16:18:32][INFO] : Validate zwcfg configuration file(s)
[2019-11-07 16:18:32][DEBUG] : Create network object.
[2019-11-07 16:18:32][DEBUG] : Use sqlite version : (u'3.22.0',)
[2019-11-07 16:18:32][DEBUG] : connect to the louie dispatcher
[2019-11-07 16:18:32][INFO] : ******** The ZWave network is being started ********
[2019-11-07 16:18:32][INFO] : Start Openzwave network.
[2019-11-07 16:18:32][INFO] : OpenZwave Library Version 1.4.0
[2019-11-07 16:18:32][INFO] : Python-OpenZwave Wrapper Version 0.3.1
[2019-11-07 16:18:32][INFO] : --> pass
[2019-11-07 16:18:32][INFO] : Waiting for network to become ready
[2019-11-07 16:18:32][DEBUG] : Writing PID 4806 to /tmp/jeedom/openzwave/deamon.pid
[2019-11-07 16:18:33][INFO] : Démon openzwave lancé
[2019-11-07 16:18:33][DEBUG] : notif_callback : new notification
[2019-11-07 16:18:33][DEBUG] : notif_callback : Notification type : 26, nodeId : 255
[2019-11-07 16:18:33][DEBUG] : notif_callback : call callback context
[2019-11-07 16:18:33][DEBUG] : zwcallback args=[{'homeId': 0, 'notificationCode': 1, 'notificationType': 'Notification', 'nodeId': 255}]
[2019-11-07 16:18:33][DEBUG] : Z-Wave Notification : {'homeId': 0, 'notificationCode': 1, 'notificationType': 'Notification', 'nodeId': 255}
[2019-11-07 16:18:33][DEBUG] : notif_callback : end
[2019-11-07 16:18:34][DEBUG] : notif_callback : new notification
[2019-11-07 16:18:34][DEBUG] : notif_callback : Notification type : 26, nodeId : 255
[2019-11-07 16:18:34][DEBUG] : notif_callback : call callback context
[2019-11-07 16:18:34][DEBUG] : zwcallback args=[{'homeId': 0, 'notificationCode': 1, 'notificationType': 'Notification', 'nodeId': 255}]
[2019-11-07 16:18:34][DEBUG] : Z-Wave Notification : {'homeId': 0, 'notificationCode': 1, 'notificationType': 'Notification', 'nodeId': 255}
[2019-11-07 16:18:34][DEBUG] : notif_callback : end
[2019-11-07 16:18:35][DEBUG] : notif_callback : new notification
[2019-11-07 16:18:35][DEBUG] : notif_callback : Notification type : 26, nodeId : 255
[2019-11-07 16:18:35][DEBUG] : notif_callback : call callback context
[2019-11-07 16:18:35][DEBUG] : zwcallback args=[{'homeId': 0, 'notificationCode': 1, 'notificationType': 'Notification', 'nodeId': 255}]
[2019-11-07 16:18:35][DEBUG] : Z-Wave Notification : {'homeId': 0, 'notificationCode': 1, 'notificationType': 'Notification', 'nodeId': 255}
[2019-11-07 16:18:35][DEBUG] : notif_callback : end
[2019-11-07 16:18:36][DEBUG] : notif_callback : new notification
[2019-11-07 16:18:36][DEBUG] : notif_callback : Notification type : 26, nodeId : 255
[2019-11-07 16:18:36][DEBUG] : notif_callback : call callback context
[2019-11-07 16:18:36][DEBUG] : zwcallback args=[{'homeId': 0, 'notificationCode': 1, 'notificationType': 'Notification', 'nodeId': 255}]
[2019-11-07 16:18:36][DEBUG] : Z-Wave Notification : {'homeId': 0, 'notificationCode': 1, 'notificationType': 'Notification', 'nodeId': 255}
[2019-11-07 16:18:36][DEBUG] : notif_callback : end
[2019-11-07 16:18:37][DEBUG] : notif_callback : new notification
[2019-11-07 16:18:37][DEBUG] : notif_callback : Notification type : 26, nodeId : 255
[2019-11-07 16:18:37][DEBUG] : notif_callback : call callback context
[2019-11-07 16:18:37][DEBUG] : zwcallback args=[{'homeId': 0, 'notificationCode': 1, 'notificationType': 'Notification', 'nodeId': 255}]
[2019-11-07 16:18:37][DEBUG] : Z-Wave Notification : {'homeId': 0, 'notificationCode': 1, 'notificationType': 'Notification', 'nodeId': 255}
[2019-11-07 16:18:37][DEBUG] : notif_callback : end

et openzwaved log :


2019-11-07 16:18:32.264 Always, OpenZwave Version 1.4.0 Starting Up
2019-11-07 16:18:32.265 Info, Setting Up Provided Network Key for Secure Communications
2019-11-07 16:18:32.265 Info, mgr,     Added driver for controller /dev/ttyACM0
2019-11-07 16:18:32.265 Info,   Opening controller /dev/ttyACM0
2019-11-07 16:18:32.265 Info, Trying to open serial port /dev/ttyACM0 (attempt 1)
2019-11-07 16:18:32.265 Info, Serial port /dev/ttyACM0 opened (attempt 1)
2019-11-07 16:18:32.265 Detail, contrlr, Queuing (Command) FUNC_ID_ZW_GET_VERSION: 0x01, 0x03, 0x00, 0x15, 0xe9
2019-11-07 16:18:32.265 Detail, contrlr, Queuing (Command) FUNC_ID_ZW_MEMORY_GET_ID: 0x01, 0x03, 0x00, 0x20, 0xdc
2019-11-07 16:18:32.265 Detail, contrlr, Queuing (Command) FUNC_ID_ZW_GET_CONTROLLER_CAPABILITIES: 0x01, 0x03, 0x00, 0x05, 0xf9
2019-11-07 16:18:32.265 Detail, contrlr, Queuing (Command) FUNC_ID_SERIAL_API_GET_CAPABILITIES: 0x01, 0x03, 0x00, 0x07, 0xfb
2019-11-07 16:18:32.265 Detail, contrlr, Queuing (Command) FUNC_ID_ZW_GET_SUC_NODE_ID: 0x01, 0x03, 0x00, 0x56, 0xaa
2019-11-07 16:18:32.265 Detail,
2019-11-07 16:18:32.265 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x15) - FUNC_ID_ZW_GET_VERSION: 0x01, 0x03, 0x00, 0x15, 0xe9
2019-11-07 16:18:33.266 Error, contrlr, ERROR: Dropping command, expected response not received after 1 attempt(s)
2019-11-07 16:18:33.266 Detail, contrlr, Removing current message
2019-11-07 16:18:33.266 Detail, contrlr, Notification: Notification - TimeOut
2019-11-07 16:18:33.268 Detail,
2019-11-07 16:18:33.268 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x20) - FUNC_ID_ZW_MEMORY_GET_ID: 0x01, 0x03, 0x00, 0x20, 0xdc
2019-11-07 16:18:34.268 Error, contrlr, ERROR: Dropping command, expected response not received after 1 attempt(s)
2019-11-07 16:18:34.268 Detail, contrlr, Removing current message
2019-11-07 16:18:34.268 Detail, contrlr, Notification: Notification - TimeOut
2019-11-07 16:18:34.269 Detail,
2019-11-07 16:18:34.269 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x05) - FUNC_ID_ZW_GET_CONTROLLER_CAPABILITIES: 0x01, 0x03, 0x00, 0x05, 0xf9
2019-11-07 16:18:35.270 Error, contrlr, ERROR: Dropping command, expected response not received after 1 attempt(s)
2019-11-07 16:18:35.270 Detail, contrlr, Removing current message
2019-11-07 16:18:35.270 Detail, contrlr, Notification: Notification - TimeOut
2019-11-07 16:18:35.271 Detail,
2019-11-07 16:18:35.271 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x07) - FUNC_ID_SERIAL_API_GET_CAPABILITIES: 0x01, 0x03, 0x00, 0x07, 0xfb
2019-11-07 16:18:36.271 Error, contrlr, ERROR: Dropping command, expected response not received after 1 attempt(s)
2019-11-07 16:18:36.271 Detail, contrlr, Removing current message
2019-11-07 16:18:36.271 Detail, contrlr, Notification: Notification - TimeOut
2019-11-07 16:18:36.273 Detail,
2019-11-07 16:18:36.273 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x56) - FUNC_ID_ZW_GET_SUC_NODE_ID: 0x01, 0x03, 0x00, 0x56, 0xaa
2019-11-07 16:18:37.273 Error, contrlr, ERROR: Dropping command, expected response not received after 1 attempt(s)
2019-11-07 16:18:37.273 Detail, contrlr, Removing current message
2019-11-07 16:18:37.273 Detail, contrlr, Notification: Notification - TimeOut

quand j’essaie d’ouvrir « réseau z-wave » ou « santé » je vois passer ça dans le log openzwave :

[2019-11-07 16:20:01][INFO] : 200 GET /network?type=info&info=getStatus&apikey=***** (127.0.0.1) 0.64ms
[2019-11-07 16:20:05][INFO] : 200 GET /network?type=info&info=getStatus&apikey=***** (127.0.0.1) 1.18ms
[2019-11-07 16:20:05][INFO] : 200 GET /network?type=info&info=getNeighbours&apikey=***** (127.0.0.1) 0.92ms
[2019-11-07 16:22:49][INFO] : 200 GET /network?type=info&info=getHealth&apikey=***** (127.0.0.1) 0.97ms
[2019-11-07 16:22:52][INFO] : 200 GET /network?type=info&info=getNeighbours&apikey=***** (127.0.0.1) 1.07ms
[2019-11-07 16:22:52][INFO] : 200 GET /network?type=info&info=getStatus&apikey=***** (127.0.0.1) 1.04ms

ce qui laisse penser que les requêtes sont bien faites et répondent…

(j’ai caviardé les apikeys mais elles sont identiques partout et conformes à attendu).

C’est quel modèle ta clé zwave ? T’as le bluetooth sur ton serveur ? activé ?

Bon j’ai quand même bon espoir que le débranchement de la clé remette ton réseau d’aplomb car non tu n’es pas seul (1er lien de la recherche) :grimacing:

J’ai une clé Z-Wave Plus Z-Stick GEN5 d’Aeon Labs. J’ai le bluetooth oui, activé oui, sur le port hci0 (pour bluetooth advertisement, j’ai des balises bluetooth sur les clés qui sont un des éléments qui me servent à définir le statut présent/absent des membres de la famille).

Dans le lien que tu donnes, il semblerait pas que le problème ait été résolu à ce que j’ai compris… mais de toute manière c’est clair que ça coûte rien d’essayer. 30min minimum donc ?

Merci pour ton aide

Je te demandais des infos sur ta clé zwave et le bluetooth car l’erreur que tu as est souvent présente en cas de conflit entre la carte Razberry et le BT sur RPI… Mais tu es très loin de cette configuration :stuck_out_tongue_winking_eye:

30 minutes c’est très large ! Je crois que c’est 10-15 minutes qui sont conseillées au minimum

Fantastique ! ça a refonctionné après ~25min de débranchement de la clé z-wave. Une idée de ce qu’il se passe concrètement quand on fait ça par rapport à un reboot ?

Cool !! A mon avis ça permet de faire une sorte de réinitialisation en la vidant électriquement alors qu’avec un reboot elle reste alimentée.

Salut @Salvialf

Tu viens de me sauver la journée !!!
Coupure en série de Enedis hier soir , puis dans le ‹ noir › toute la nuit jusqu’a 2H du matin, et au réveil, l’electricité était revenu mais pas le ZWAVE

j’avais juste cette erreur !

TypeError: undefined is not an object (evaluating ‹ data.controllerNodeCapabilities.indexOf ›)

Et j’ai tenté plusieurs truc, lorsque j’ai fini par recherché sur le forum, et effectivement, après 20min où la clé USB ZWAVE est débranchée PHYSIQUEMENT , j’ai rebranché, resélectionné le port et tout est reparti à la normal !

Un énorme merci :pray:

1 « J'aime »

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