Z Wave JS - Not Connecting
-
Hey @toggledbits , was trying to setup ZwaveJS controller to connect to my Z Wave JS add-on running on HA. Here's the config I have set in
reactor.conf
:- id: zwavejs enabled: true implementation: ZWaveJSController name: ZWaveJS config: source: 'ws://192.168.8.85:3000'
I have enabled websocket in the HA add-on, but I am not able to connect. I see this in the reactor log:
[latest-23196]2023-07-23T22:54:39.881Z <ZWaveJSController:INFO> ZWaveJSController#zwavejs connecting to ws://192.168.8.85:3000 [latest-23196]2023-07-23T22:54:39.888Z <ZWaveJSController:WARN> ZWaveJSController#zwavejs websocket error during open/negotation: [Error] connect ECONNREFUSED 192.168.8.85:3000 [-] [latest-23196]2023-07-23T22:54:39.888Z <ZWaveJSController:WARN> ZWaveJSController#zwavejs ws error code ECONNREFUSED [latest-23196]2023-07-23T22:54:39.889Z <ZWaveJSController:NOTICE> ZWaveJSController#zwavejs websocket to ws://192.168.8.85:3000 closed during open/negotiation [latest-23196]2023-07-23T22:54:39.890Z <ZWaveJSController:NOTICE> ZWaveJSController#zwavejs connection to ws://192.168.8.85:3000 failed; will retry [latest-23196]2023-07-23T22:54:39.891Z <ZWaveJSController:INFO> ZWaveJSController#zwavejs retry 3 delay 10000
Multiple restarts of HA, MSR and the add-on have made no changes. I am running V1.15.1 Z Wave JS UI, HA version 2023.07.1, MSR version latest-23196-40ef07f4 and ZWaveJS controller 23194.
-
Connection refused would be the server on which the ZWaveJS controller is trying to be contacted is responding 'No'
So I'd be triple checking the IP and the port config. Basic test from a command line"
telnet. 192.168.8.85 3000
Will at least tell you if the server is up and listening on the portC
-
Ha got it working, didn't know that I had to expose port 3000 in the add on configuration. @toggledbits maybe this could be added into the docs?
-
P Pabla marked this topic as a question on
-
P Pabla has marked this topic as solved on
-
Perhaps. I don't use the ZWaveJS add-on, so you'd need to post a good bit more detail in order for me to be able to write anything useful about it, though.
-
Perhaps. I don't use the ZWaveJS add-on, so you'd need to post a good bit more detail in order for me to be able to write anything useful about it, though.
@toggledbits got it. So basically if you navigate to Settings -> Add-Ons -> Z Wave JS UI and on the top where it says Info, Documentation, Configuration, and Logs click Configuration. Then under Network section turn the toggle on to show unused ports (not sure if that is the correct verbiage) then add port 3000 and hit save. Once the add-on restarts it should work.
-
T toggledbits locked this topic on