Z-Wave not working under Zwave-JS-UI

For Z-Wave related questions in Domoticz

Moderator: leecollings

keef
Posts: 28
Joined: Friday 25 April 2014 19:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Contact:

Z-Wave not working under Zwave-JS-UI

Post 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?
User avatar
jvdz
Posts: 2210
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

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

Post 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?
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
keef
Posts: 28
Joined: Friday 25 April 2014 19:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Contact:

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

Post by keef »

No I installed MQTT with apt

Yes I can see it with MQTT explorer.exe from a remote system
User avatar
jvdz
Posts: 2210
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

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

Post 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?
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
keef
Posts: 28
Joined: Friday 25 April 2014 19:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Contact:

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

Post by keef »

I'm using the host ip the same as for the other tests
User avatar
jvdz
Posts: 2210
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

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

Post 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
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
keef
Posts: 28
Joined: Friday 25 April 2014 19:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Contact:

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

Post 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.
User avatar
jvdz
Posts: 2210
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

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

Post 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.
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
keef
Posts: 28
Joined: Friday 25 April 2014 19:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Contact:

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

Post by keef »

My Zwave-JS-UI setup
Attachments
MQTT.jpg
MQTT.jpg (65.34 KiB) Viewed 1941 times
homeassistant.jpg
homeassistant.jpg (106.65 KiB) Viewed 1941 times
gateway.jpg
gateway.jpg (75.07 KiB) Viewed 1941 times
keef
Posts: 28
Joined: Friday 25 April 2014 19:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Contact:

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

Post by keef »

And What I see in MQTT Explorer
Attachments
mqttexplorer.jpg
mqttexplorer.jpg (176.26 KiB) Viewed 1941 times
User avatar
jvdz
Posts: 2210
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

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

Post 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.
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
User avatar
waltervl
Posts: 5397
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

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

Post 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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
keef
Posts: 28
Joined: Friday 25 April 2014 19:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Contact:

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

Post 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
Attachments
hardware.jpg
hardware.jpg (148.66 KiB) Viewed 1906 times
keef
Posts: 28
Joined: Friday 25 April 2014 19:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Contact:

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

Post 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
Attachments
explorer with homeasist.png
explorer with homeasist.png (48.82 KiB) Viewed 1906 times
BartSr
Posts: 365
Joined: Sunday 03 July 2016 16:16
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.7
Location: Netherlands
Contact:

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

Post by BartSr »

10.5.120.253 is for sure IP of MQTT broker?
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave2MQTT
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 / 32 espeasy
Zigbee2MQTT
keef
Posts: 28
Joined: Friday 25 April 2014 19:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Contact:

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

Post by keef »

BartSr wrote: Saturday 09 March 2024 19:31 10.5.120.253 is for sure IP of MQTT broker?
yes
BartSr
Posts: 365
Joined: Sunday 03 July 2016 16:16
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.7
Location: Netherlands
Contact:

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

Post by BartSr »

if it'snog mosquitto try to include username and password
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave2MQTT
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 / 32 espeasy
Zigbee2MQTT
keef
Posts: 28
Joined: Friday 25 April 2014 19:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Contact:

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

Post 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
BartSr
Posts: 365
Joined: Sunday 03 July 2016 16:16
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.7
Location: Netherlands
Contact:

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

Post 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.
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave2MQTT
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 / 32 espeasy
Zigbee2MQTT
keef
Posts: 28
Joined: Friday 25 April 2014 19:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Contact:

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

Post by keef »

I think it is mosquitto as I have an /opt/mosquito folder.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 0 guests