ZWaveJSController won't connect to ZWaveJS under Home Assistant/HACS
-
Note that @gwp1 is using ZWaveJSController to interface with iBlinds, not HassController. So this is more direct control that circumvents HA's interpretation.
@toggledbits said in Can I use Dynamic Group Control for Triggers and Reactions?:
Note that @gwp1 is using ZWaveJSController to interface with iBlinds, not HassController. So this is more direct control that circumvents HA's interpretation.
I saw that, but ZWaveJSController doesn't seem to be an option in my instance. I do use ZWaveJS UI on HA. What's the difference here?
Edit. I found it in your documentation. I tried installing it, but Reactor is telling me that the zwavejs controller is down. Do I need to do anything on Home Assistant to make it available?
The WS Server is enabled and set to port 3000. That's what I set up in my reactor.yaml file.
- id: zwavejs implementation: ZWaveJSController enabled: true config: source: ws://192.168.1.141:3000 # modify the IP address as needed;
-
@toggledbits ,
This is what the logs are showing:[latest-23078]2023-04-01T19:10:24.461Z ZWaveJSController:NOTICE ZWaveJSController#zwavejs websocket to ws://192.168.1.141:3000 closed during open/negotiation
[latest-23078]2023-04-01T19:10:24.461Z ZWaveJSController:NOTICE ZWaveJSController#zwavejs connection to ws://192.168.1.141:3000 failed; will retry
[latest-23078]2023-04-01T19:10:24.461Z ZWaveJSController:INFO ZWaveJSController#zwavejs retry 2 delay 10000
[latest-23078]2023-04-01T19:10:34.466Z ZWaveJSController:INFO ZWaveJSController#zwavejs connecting to ws://192.168.1.141:3000
[latest-23078]2023-04-01T19:10:34.467Z ZWaveJSController:WARN ZWaveJSController#zwavejs websocket error during open/negotation: [Error] connect ECONNREFUSED 192.168.1.141:3000 [-]
[latest-23078]2023-04-01T19:10:34.467Z ZWaveJSController:WARN ZWaveJSController#zwavejs ws error code ECONNREFUSED
[latest-23078]2023-04-01T19:10:34.467Z ZWaveJSController:NOTICE ZWaveJSController#zwavejs websocket to ws://192.168.1.141:3000 closed during open/negotiation
[latest-23078]2023-04-01T19:10:34.468Z ZWaveJSController:NOTICE ZWaveJSController#zwavejs connection to ws://192.168.1.141:3000 failed; will retry
[latest-23078]2023-04-01T19:10:34.468Z ZWaveJSController:INFO ZWaveJSController#zwavejs retry 3 delay 10000 -
@toggledbits ,
This is what the logs are showing:[latest-23078]2023-04-01T19:10:24.461Z ZWaveJSController:NOTICE ZWaveJSController#zwavejs websocket to ws://192.168.1.141:3000 closed during open/negotiation
[latest-23078]2023-04-01T19:10:24.461Z ZWaveJSController:NOTICE ZWaveJSController#zwavejs connection to ws://192.168.1.141:3000 failed; will retry
[latest-23078]2023-04-01T19:10:24.461Z ZWaveJSController:INFO ZWaveJSController#zwavejs retry 2 delay 10000
[latest-23078]2023-04-01T19:10:34.466Z ZWaveJSController:INFO ZWaveJSController#zwavejs connecting to ws://192.168.1.141:3000
[latest-23078]2023-04-01T19:10:34.467Z ZWaveJSController:WARN ZWaveJSController#zwavejs websocket error during open/negotation: [Error] connect ECONNREFUSED 192.168.1.141:3000 [-]
[latest-23078]2023-04-01T19:10:34.467Z ZWaveJSController:WARN ZWaveJSController#zwavejs ws error code ECONNREFUSED
[latest-23078]2023-04-01T19:10:34.467Z ZWaveJSController:NOTICE ZWaveJSController#zwavejs websocket to ws://192.168.1.141:3000 closed during open/negotiation
[latest-23078]2023-04-01T19:10:34.468Z ZWaveJSController:NOTICE ZWaveJSController#zwavejs connection to ws://192.168.1.141:3000 failed; will retry
[latest-23078]2023-04-01T19:10:34.468Z ZWaveJSController:INFO ZWaveJSController#zwavejs retry 3 delay 10000 -
@tamorgen Yep, went thru that. I believe this thread covered it: https://smarthome.community/topic/1116/zwavejs-controller-question-s/19?_=1680386140317
@gwp1 said in Can I use Dynamic Group Control for Triggers and Reactions?:
@tamorgen Yep, went thru that. I believe this thread covered it: https://smarthome.community/topic/1116/zwavejs-controller-question-s/19?_=1680386140317
What did you have to do? @Pabla said "You can only run one or the other. Uninstall whichever add on you don't need and try again, I ran into the same issue.". One or the other what? Am I not able to to use Zwave JS UI if I want to use ZwaveJSController?
-
@gwp1, am I understanding that you can only have Zwave JS or Zwave JS UI installed? I thought they were integrated into each other. I tried disabling the Zwave JS instance, and all of my devices in Reactor disappeared. I tried connecting to the ws after disabling Zwave JS, and it still wouldn’t connect. What am I missing?
Did you have to do all of your Reactor rules?
-
@toggledbits , can you please move the ZWaveJSController section of this thread to a new one? I've seen to gone off on a tangent.
-
@gwp1, am I understanding that you can only have Zwave JS or Zwave JS UI installed? I thought they were integrated into each other. I tried disabling the Zwave JS instance, and all of my devices in Reactor disappeared. I tried connecting to the ws after disabling Zwave JS, and it still wouldn’t connect. What am I missing?
Did you have to do all of your Reactor rules?
-
@tamorgen Yep, went thru the exact same thing.
That's what I have as well. Z-Wave JS UI is the only add-on shown in the HACS add-on store, however, when I go to Settings --> Devices and Services, Z-Wave JS is shown as an integration. Do you not have that one?
Just so I understand clearly, do I need to Delete Z-wave JS from Devices and Services to get this to work? When I tried disabling that integration, all of my devices disappeared from all of my Dashboards, and from MSR. Is the idea that I'd be managing them in ZWaveJS Controller on MSR instead?
I guess I'm trying to figure out what level of effort this is gong to be. I have a pretty complex ruleset and some fairly complex dashboards, so I'm afraid if I delete Z-Wave JS from HA, I'm be starting over from scratch.
-
This was mentioned in the other thread that @gwp1 linked earlier. The port not being published/exposed is a high likelihood in this scenario.
Also, remember to restart Home Assistant and its integrations/services when making any changes to their configuration (incl ZWaveJS).
-
That's what I have as well. Z-Wave JS UI is the only add-on shown in the HACS add-on store, however, when I go to Settings --> Devices and Services, Z-Wave JS is shown as an integration. Do you not have that one?
Just so I understand clearly, do I need to Delete Z-wave JS from Devices and Services to get this to work? When I tried disabling that integration, all of my devices disappeared from all of my Dashboards, and from MSR. Is the idea that I'd be managing them in ZWaveJS Controller on MSR instead?
I guess I'm trying to figure out what level of effort this is gong to be. I have a pretty complex ruleset and some fairly complex dashboards, so I'm afraid if I delete Z-Wave JS from HA, I'm be starting over from scratch.
@tamorgen Yes, I have ZWaveJS under
settings
>devices & services
Those devices are my iBlinds, the ZWave stick, and a couple anscillary things.
@toggledbits is correct - it took (IIRC) a couple times of config/restart and then everything dropped right into place.
Remember... I'm using a ZWave stick off of Home Assistant as well as MSR's ZWaveJSController.
-
@tamorgen Yes, I have ZWaveJS under
settings
>devices & services
Those devices are my iBlinds, the ZWave stick, and a couple anscillary things.
@toggledbits is correct - it took (IIRC) a couple times of config/restart and then everything dropped right into place.
Remember... I'm using a ZWave stick off of Home Assistant as well as MSR's ZWaveJSController.
-
Figured out the issue. HA has moved crap all over the place over the past year, and some of those directions in the other thread are out date. Here is the problem I found. It still leads back to @Pabla 's comment about only one instance running.
When I went to HACS --> Add-ons, I saw a screen, with only Z-Wave JS UI. If I go to Settings --> Add-Ons, it shows Z-Wave JS and Z-Wave JS UI.
I went into Z-Wave JS in the Add-On screen, and changed the Start On Boot to off, and all of a sudden, the Z-Wave JS Controller connected.
Crazy!
-
Figured out the issue. HA has moved crap all over the place over the past year, and some of those directions in the other thread are out date. Here is the problem I found. It still leads back to @Pabla 's comment about only one instance running.
When I went to HACS --> Add-ons, I saw a screen, with only Z-Wave JS UI. If I go to Settings --> Add-Ons, it shows Z-Wave JS and Z-Wave JS UI.
I went into Z-Wave JS in the Add-On screen, and changed the Start On Boot to off, and all of a sudden, the Z-Wave JS Controller connected.
Crazy!
-
T toggledbits referenced this topic on
-
-
T toggledbits locked this topic on