Page 1 of 4

Z-Wave not working under Zwave-JS-UI

Posted: Thursday 07 March 2024 15:43
by keef
I am doing a fresh install on a system that was previously working with openzwave

I have domoticz working in docker
and have followed the instructions here. https://www.domoticz.com/wiki/Zwave-JS-UI
and here for MQTT https://randomnerdtutorials.com/how-to- ... entication
and tested it using this https://randomnerdtutorials.com/testing ... pbbery-pi/

From a remot system I can connect to Z-Wave JS UI and see devices but I can't connect to MQQT
Nor can I set up domoticz to connect to my Z-wave controler
Any Ideas?

Re: Z-Wave not working under Zwave-JS-UI

Posted: Thursday 07 March 2024 17:06
by jvdz
Domoticz doesn't connect to ZWAVEJS2MQTT, but also to MQTT, so that is probably the place to start as you state you can't connect to it.
Does MQTT also run inside docker?
Can you connect to MQTT with a program like "MQTT Explorer.exe" and see messages there?

Re: Z-Wave not working under Zwave-JS-UI

Posted: Thursday 07 March 2024 21:56
by keef
No I installed MQTT with apt

Yes I can see it with MQTT explorer.exe from a remote system

Re: Z-Wave not working under Zwave-JS-UI

Posted: Thursday 07 March 2024 22:04
by jvdz
Ok, and you can't get domoticz to connect to the MQTT Host Service? What exactly are you defining in Domoticz for the MQTT hardware?
Are you using 127.0.0.1 or the hostIP address as the target IP?

Re: Z-Wave not working under Zwave-JS-UI

Posted: Thursday 07 March 2024 22:11
by keef
I'm using the host ip the same as for the other tests

Re: Z-Wave not working under Zwave-JS-UI

Posted: Thursday 07 March 2024 22:14
by jvdz
... yes ... and ... ? I am putting effort in trying to understand and all you do so far is parly answering questions asked without any real details of what is happening. SO... What is working. is domoticz connecting to mqtt? which message do you see in MQTT explorer ...... etc etc etc

Re: Z-Wave not working under Zwave-JS-UI

Posted: Thursday 07 March 2024 22:31
by keef
In MQTT explorer.exe I can see a list of nodes which I assume are the ones that were connected to the device when it was working under openzwave
they have status and last active messages.

Domoticz logs say it has connected but show nothing under devices or when I click on the setup on the hardware page.

Re: Z-Wave not working under Zwave-JS-UI

Posted: Thursday 07 March 2024 22:46
by jvdz
Ok, so it seems that both Domoticz and zwaveJS2mqtt are connecting to your mqtt server.
So what have you defined for:
  • Discovery Topic in ZWAVEJS2MQTT (see wiki: https://www.domoticz.com/wiki/Zwave-JS- ... r_Domoticz)
  • Do you see messages in mqtt explorer for that topic?
  • Which mqtt hardware do you have defined and what is their config?
  • When all of this is correct: Did you enable Allow New devices in domoticz so it can discover devices.

Re: Z-Wave not working under Zwave-JS-UI

Posted: Thursday 07 March 2024 23:12
by keef
My Zwave-JS-UI setup

Re: Z-Wave not working under Zwave-JS-UI

Posted: Thursday 07 March 2024 23:13
by keef
And What I see in MQTT Explorer

Re: Z-Wave not working under Zwave-JS-UI

Posted: Friday 08 March 2024 8:01
by jvdz
I do not see the homeassistant topic in that screen shot!
Is that missing? That is the basis for discovery of devices.
.. and you havent shown the hardware setup yet and also not responded to the last question.

Re: Z-Wave not working under Zwave-JS-UI

Posted: Friday 08 March 2024 8:03
by waltervl
It seems somehow mqtt Auto discovery on Zwave-JS-UI is not working as there is no homeassistant topic in mqtt.

Perhaps click on the Save button in Zwave-JS-UI settings to be sure.

Re: Z-Wave not working under Zwave-JS-UI

Posted: Friday 08 March 2024 9:40
by keef
I do not see the homeassistant topic in that screen shot!
Which screen shot the homeassistat settings are there

And I have enabled allow new devices and it makes no difference

Re: Z-Wave not working under Zwave-JS-UI

Posted: Friday 08 March 2024 9:47
by keef
waltervl wrote: Friday 08 March 2024 8:03 It seems somehow mqtt Auto discovery on Zwave-JS-UI is not working as there is no homeassistant topic in mqtt.

Perhaps click on the Save button in Zwave-JS-UI settings to be sure.
Thought everything was saved but did it again anyway. Now have a homeassitant topic

Still nothing showing up in Domoticz

Re: Z-Wave not working under Zwave-JS-UI

Posted: Saturday 09 March 2024 19:31
by BartSr
10.5.120.253 is for sure IP of MQTT broker?

Re: Z-Wave not working under Zwave-JS-UI

Posted: Sunday 10 March 2024 8:44
by keef
BartSr wrote: Saturday 09 March 2024 19:31 10.5.120.253 is for sure IP of MQTT broker?
yes

Re: Z-Wave not working under Zwave-JS-UI

Posted: Sunday 10 March 2024 8:59
by BartSr
if it'snog mosquitto try to include username and password

Re: Z-Wave not working under Zwave-JS-UI

Posted: Sunday 10 March 2024 9:10
by keef
BartSr wrote: Sunday 10 March 2024 8:59 if it'snog mosquitto try to include username and password
I'm not sure what you mean

Re: Z-Wave not working under Zwave-JS-UI

Posted: Sunday 10 March 2024 9:19
by BartSr
I've seen a non mosquitto broker which only worked well once you used credentials (inlogname and password). Same must be applied on domoticz (hardware page)

You can also try to use prefix zwavejs iso just zwave. Both on zwavejs-ui as well on domoticz hardwarepage.

Re: Z-Wave not working under Zwave-JS-UI

Posted: Sunday 10 March 2024 9:53
by keef
I think it is mosquitto as I have an /opt/mosquito folder.