zwave-js / node-red-contrib-zwave-js

The most powerful, high performing and highly polished Z-Wave node for Node-RED based on Z-Wave JS. If you want a fully featured Z-Wave framework in your Node-RED instance, you have found it.
MIT License
47 stars 6 forks source link

[Help]: Controller node with Aeotec Gen 5 in docker on Portainer returns "Failed to initialize the driver" #228

Closed devironglove closed 2 years ago

devironglove commented 2 years ago

How can we help?

After configuring my Zwave Controller node, I get an error "Failed to initialize the driver"

Current setup :

Controller is a Aeotec Gen5

First, I had some "Permission denied" so had to change my docker user in my stack. After that, I get some error : ZWaveError: Failed to initialize the driver: ZWaveError: Timeout while waiting for a response from the controller (ZW0200) at Driver.sendMessage (/data/node_modules/zwave-js/src/lib/driver/Driver.ts:3547:23) at ZWaveController.interview (/data/node_modules/zwave-js/src/lib/controller/Controller.ts:773:22) at Driver.initializeControllerAndNodes (/data/node_modules/zwave-js/src/lib/driver/Driver.ts:1179:27) at Immediate.<anonymous> (/data/node_modules/zwave-js/src/lib/driver/Driver.ts:924:5) (ZW0100)

Could it be that because the USB is being used in Zwavejs2Mqtt, NodeRed can't initialize the communication with the controller? How can I check further what the reason could be?

Version

7.1.2

Node-RED Version

V2.2.2

What hardware are you using?

Other

Any code to add?

No response

marcus-j-davies commented 2 years ago

Hi @devironglove

Could it be that because the USB is being used in Zwavejs2Mqtt,

Indeed, a serial device can't be used by more than 1 application. Zwavejs2Mqtt is 1 front end, node-red-contrib-zwave-js is another - they both achieve the same thing - controlling your network.

This module is strictly for node red, and if you want to use it, it will need exclusive rights over the serial port, like Zwavejs2Mqtt will need exclusive rights - they both cant be running.

devironglove commented 2 years ago

Okido !

This is something I was afraid of. Just confirmed by disabling Zwave2Mqtt container for a while, and after multiple attempts, it paired. I suppose I'll find a way to work with both depending my needs :)

Thanks for the quick answer !

Andoramb commented 1 year ago

I would like to know what workarounds are possible here. Been running Zwavejs2Mqtt that's used mostly by HA, but this module could go around it and be independent from everything else. But how to use it in both places?

marcus-j-davies commented 1 year ago

I would like to know what workarounds are possible here.

I'm afraid there are none

Andoramb commented 1 year ago

Yes, I agree. thank you for your time :)