Gladys V4 zwave

Bonjour,
voici mon retour d’expérience avec zwave et gladysV4,
la cle est bien détecter par gladys après la ** Fix Z-Wave port listing and binding (#602)**

Sauf que ça fonctionne pas ???

Zwave
Aeon Labs DSA02203-ZWUS Z-Wave Z-Stick
lsusb return
Bus 002 Device 107: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP210x UART Bridge / myAVR mySmartUSB light.

Log :

Log yarn start serveur

[email protected]:~/gladys/gladys/server# sudo yarn start
yarn run v1.19.1
$ cross-env NODE_ENV=development nodemon index.js
[nodemon] 1.19.4
[nodemon] to restart at any time, enter rs
[nodemon] watching dir(s): .
[nodemon] watching extensions: js,mjs,json
[nodemon] starting node index.js
2019-11-20T16:21:03+0000 brain.train.js:54 (Brain.train) Training brain…
2019-11-20T16:21:03+0000 brain.train.js:56 (Brain.train) Brain trained!
2019-11-20T16:21:03+0000 service.load.js:44 (Promise.all.SERVICES_TO_LOAD.map) Error: libopenzwave.so.1.6: cannot open shared object file: No such file or directory
at Object.Module._extensions…node (internal/modules/cjs/loader.js:857:18)
at Module.load (internal/modules/cjs/loader.js:685:32)
at Function.Module._load (internal/modules/cjs/loader.js:620:12)
at Module.require (internal/modules/cjs/loader.js:723:19)
at require (internal/modules/cjs/helpers.js:14:16)
at Object. (/home/msalek/gladys/gladys/server/services/zwave/node_modules/openzwave-shared/lib/openzwave-shared.js:27:19)
at Module._compile (internal/modules/cjs/loader.js:816:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:827:10)
at Module.load (internal/modules/cjs/loader.js:685:32)
at Function.Module._load (internal/modules/cjs/loader.js:620:12)
at Module.require (internal/modules/cjs/loader.js:723:19)
at require (internal/modules/cjs/helpers.js:14:16)
at Object.ZwaveService [as zwave] (/home/msalek/gladys/gladys/server/services/zwave/index.js:7:17)
at Promise.all.SERVICES_TO_LOAD.map (/home/msalek/gladys/gladys/server/lib/service/service.load.js:37:65)
2019-11-20T16:21:03+0000 index.js:16 (Object.start) starting MQTT service
2019-11-20T16:21:03+0000 index.js:15 (Object.start) starting Sonoff service
2019-11-20T16:21:03+0000 index.js:19 (Object.start) starting example service
2019-11-20T16:21:03+0000 index.js:18 (Object.start) starting Philips Hue service
2019-11-20T16:21:03+0000 index.js:14 (Object.start) Starting Xiaomi service
2019-11-20T16:21:03+0000 index.js:13 (Object.start) Starting usb service
2019-11-20T16:21:03+0000 index.js:20 (Object.start) Starting Dark Sky service
2019-11-20T16:21:03+0000 index.js:19 (Object.start) Starting telegram service
2019-11-20T16:21:03+0000 index.js:15 (Object.start) starting RTSP service
2019-11-20T16:21:03+0000 service.start.js:16 (Service.start) Service darksky is not configured, so it was not started.
2019-11-20T16:21:03+0000 service.start.js:16 (Service.start) Service telegram is not configured, so it was not started.
2019-11-20T16:21:03+0000 connect.js:27 (MqttHandler.connect) Trying to connect to MQTT server localhost:1883…
2019-11-20T16:21:03+0000 device.init.js:31 (DeviceManager.init) Device : init : Found 0 devices
2019-11-20T16:21:03+0000 scheduler.init.js:9 (Scheduler.init) Scheduler.init
2019-11-20T16:21:03+0000 index.js:63 (Server.server.listen) Server listening on port 1443
2019-11-20T16:21:06+0000 index.js:95 (WebSocketServer.wss.on) New user connected in websocket, [object Object]
2019-11-20T16:21:06+0000 index.js:117 (WebSocket.ws.on) { JsonWebTokenError: invalid signature
at /home/msalek/gladys/gladys/server/node_modules/jsonwebtoken/verify.js:133:19
at getSecret (/home/msalek/gladys/gladys/server/node_modules/jsonwebtoken/verify.js:90:14)
at Object.module.exports [as verify] (/home/msalek/gladys/gladys/server/node_modules/jsonwebtoken/verify.js:94:10)
at Session.validateAccessToken (/home/msalek/gladys/gladys/server/lib/session/session.validateAccessToken.js:15:23)
at WebSocket.ws.on (/home/msalek/gladys/gladys/server/api/websockets/index.js:109:49)
at WebSocket.emit (events.js:193:13)
at Receiver.receiverOnMessage (/home/msalek/gladys/gladys/server/node_modules/ws/lib/websocket.js:789:20)
at Receiver.emit (events.js:193:13)
at Receiver.dataMessage (/home/msalek/gladys/gladys/server/node_modules/ws/lib/receiver.js:422:14)
at Receiver.getData (/home/msalek/gladys/gladys/server/node_modules/ws/lib/receiver.js:352:17)
at Receiver.startLoop (/home/msalek/gladys/gladys/server/node_modules/ws/lib/receiver.js:138:22)
at Receiver._write (/home/msalek/gladys/gladys/server/node_modules/ws/lib/receiver.js:74:10)
at doWrite (_stream_writable.js:415:12)
at writeOrBuffer (_stream_writable.js:399:5)
at Receiver.Writable.write (_stream_writable.js:299:11)
at Socket.socketOnData (/home/msalek/gladys/gladys/server/node_modules/ws/lib/websocket.js:864:35)
at Socket.emit (events.js:193:13)
at addChunk (_stream_readable.js:295:12)
at readableAddChunk (_stream_readable.js:276:11)
at Socket.Readable.push (_stream_readable.js:231:10)
at TCP.onStreamRead (internal/stream_base_commons.js:154:17) name: ‘JsonWebTokenError’, message: ‘invalid signature’ }

Salut!

Comment as tu installé Gladys ? Via l’image Raspbian officielle? sur un serveur avec docker? ou manuellement?

il semblerait qu’il manque une librairie système à ton installation, donc je pense que tu as fais une installation manuelle?

Par ailleurs, je suis entrain de travailler à fond sur l’intégration Z-Wave dans Gladys 4, et pas mal d’améliorations arrivent. J’en parle sur ce sujet =>

effectivement je fait les tests en installation manuelle. je passe a MQTT comme j’ai 4 modules Shelly1

Ok, il faut que tu installes openzwave du coup sur ton installation + openzwave-dev

Pour information voilà les librairies dont Gladys a besoin =>

Mais sinon tu peux toujours lancer le container Docker Gladys, c’est souvent le plus simple :wink:

voila de ma part ça marche

cp /usr/local/lib64/libopenzwave.so.1.6 /usr/local/lib/libopenzwave.so.1.6
sudo ls -n /usr/local/lib64/libopenzwave.so.1.6 /usr/local/lib/libopenzwave.so.1.6
sudo ldconfig

Tout semble bon! :slight_smile:

Le message en rouge est juste un warning, je l’ai retiré pour la prochaine version, il fait peur pour rien ^^