Get ZWave devices visible in Domoticz (Zwave JS UI / MQTT) Topic is solved
Moderator: leecollings
-
- Posts: 36
- Joined: Thursday 13 July 2017 23:16
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Get ZWave devices visible in Domoticz (Zwave JS UI / MQTT)
Since the new update, OZW has stopped (it was announced, but that message didn't receive me until i updated)
Now i started to install Zwave JS UI and Mosquitto on my Raspberry Pi, exactly followed the (somewhat briefly) instructions on the wiki: https://www.domoticz.com/wiki/Zwave-JS-UI
Installation seems to be OK.
In Z-Wave JS UI i can see all my devices.
In Domoticz i added the new hardware "MQTT Auto Discovery Client Gateway with LAN interface"
At the first place, the log showed all my devices too, but since i didn't have the switch "Accept new hardware" turned on, nothing was added.
So i turned it on and was hoping to see my devices appear after a while, but nothing happened.
I removed the hardware and tried adding it again. Restarted my Raspberry Pi, even did the "make up" command a few times.
But i can't get my devices visible and i also don't know how to troubleshoot it.
Can someone help me getting it working?
Now i started to install Zwave JS UI and Mosquitto on my Raspberry Pi, exactly followed the (somewhat briefly) instructions on the wiki: https://www.domoticz.com/wiki/Zwave-JS-UI
Installation seems to be OK.
In Z-Wave JS UI i can see all my devices.
In Domoticz i added the new hardware "MQTT Auto Discovery Client Gateway with LAN interface"
At the first place, the log showed all my devices too, but since i didn't have the switch "Accept new hardware" turned on, nothing was added.
So i turned it on and was hoping to see my devices appear after a while, but nothing happened.
I removed the hardware and tried adding it again. Restarted my Raspberry Pi, even did the "make up" command a few times.
But i can't get my devices visible and i also don't know how to troubleshoot it.
Can someone help me getting it working?
-
- Posts: 300
- Joined: Thursday 01 November 2018 19:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.6
- Location: Portugal
- Contact:
Re: Get ZWave devices visible in Domoticz (Zwave JS UI / MQTT)
You need to make sure that you have the Auto Discovery prefix the same in Domoticz ( in "MQTT Auto Discovery Client Gateway with LAN interface" settings under "Auto discovery prefix") and also in Zwave-JS-UI under Settings>Home Assistant.Discovery prefix. People generally put "homeassistant" as this discovery topic.
Intel NUC with Ubuntu Server VM (Proxmox),mosquitto(docker),RFXtrx433E,zwavejsUI (docker),Zigbee2mqtt(docker),SMA Hub (docker),Harmony Hub plugin, Kodi plugin,Homebridge(docker)+Google Home,APC UPS,SMA Modbus,Mitsubishi MQTT, Broadlink,Dombus
-
- Posts: 36
- Joined: Thursday 13 July 2017 23:16
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Get ZWave devices visible in Domoticz (Zwave JS UI / MQTT)
Thanks a lot for your reply!
I had them both named 'zwave' (without quotes of course)
now renamed to 'domoticz', both in MQTT Auto Discovery settings and in JS-UI
But still no devices are being found or added.
The logs only says:
When i open MQTT Explorer on my 'regular' computer and i browse to it, i can also see the names 'zwave' and 'homeassistant' appear.
Under 'zwave' i can see my nodes, so that part seems to work
I had them both named 'zwave' (without quotes of course)
now renamed to 'domoticz', both in MQTT Auto Discovery settings and in JS-UI
But still no devices are being found or added.
The logs only says:
Code: Select all
Status: ZWave: Connecting to localhost:1883
Status: ZWave: connected to: localhost:1883
Under 'zwave' i can see my nodes, so that part seems to work
-
- Posts: 337
- Joined: Friday 17 August 2018 14:03
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Get ZWave devices visible in Domoticz (Zwave JS UI / MQTT)
I had the same issue. In my case the cause was that I in zwave js ui I used 127.0.0.1 for the op adres of the Mqtt server
This however should be the actual op adres of the Mqtt server
This however should be the actual op adres of the Mqtt server
-
- Posts: 36
- Joined: Thursday 13 July 2017 23:16
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Get ZWave devices visible in Domoticz (Zwave JS UI / MQTT)
Yes! That did the trick.
I now see all the devices again. Thank you so much
I now see all the devices again. Thank you so much
-
- Posts: 36
- Joined: Thursday 13 July 2017 23:16
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Get ZWave devices visible in Domoticz (Zwave JS UI / MQTT)
One final question.
After i reboot my Domoticz, the zWave-devices won't work anymore.
I have to SSH to my Domoticz, go to /opt/mosquitto and then run make up
Is there a way do to this automatically so it will start anytime i am rebooting my Domoticz system?
After i reboot my Domoticz, the zWave-devices won't work anymore.
I have to SSH to my Domoticz, go to /opt/mosquitto and then run make up
Is there a way do to this automatically so it will start anytime i am rebooting my Domoticz system?
Re: Get ZWave devices visible in Domoticz (Zwave JS UI / MQTT)
You used the docker compose repo?studiocascade wrote: ↑Thursday 04 January 2024 20:54 One final question.
After i reboot my Domoticz, the zWave-devices won't work anymore.
I have to SSH to my Domoticz, go to /opt/mosquitto and then run make up
Is there a way do to this automatically so it will start anytime i am rebooting my Domoticz system?
I added this to docker-compose.override.yml:
Code: Select all
mosquitto:
restart: always
-
- Posts: 36
- Joined: Thursday 13 July 2017 23:16
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Get ZWave devices visible in Domoticz (Zwave JS UI / MQTT)
Thanks! That did the trick
Re: Get ZWave devices visible in Domoticz (Zwave JS UI / MQTT)
Can you please explain this in more detail? I am not sure what you mean and I have this issue.solarboy wrote: ↑Thursday 04 January 2024 17:07 You need to make sure that you have the Auto Discovery prefix the same in Domoticz ( in "MQTT Auto Discovery Client Gateway with LAN interface" settings under "Auto discovery prefix") and also in Zwave-JS-UI under Settings>Home Assistant.Discovery prefix. People generally put "homeassistant" as this discovery topic.
My devices are all visible in the z-wave js ui but not on the Domoticz ui
-
- Posts: 8
- Joined: Tuesday 06 February 2024 18:00
- Target OS: NAS (Synology & others)
- Domoticz version: 2024.4
- Contact:
Re: Get ZWave devices visible in Domoticz (Zwave JS UI / MQTT)
I think In Z-Wave JS UI within settings in Section Home Assistant you find MQTT Discovery. Here is a default setting Discovery setting: homeassistanttlfriend1 wrote: ↑Wednesday 12 June 2024 9:29Can you please explain this in more detail? I am not sure what you mean and I have this issue.solarboy wrote: ↑Thursday 04 January 2024 17:07 You need to make sure that you have the Auto Discovery prefix the same in Domoticz ( in "MQTT Auto Discovery Client Gateway with LAN interface" settings under "Auto discovery prefix") and also in Zwave-JS-UI under Settings>Home Assistant.Discovery prefix. People generally put "homeassistant" as this discovery topic.
My devices are all visible in the z-wave js ui but not on the Domoticz ui
This is the same as in Domoticz within Hardware the default setting for Auto Discovery Prefix: homeassistant
I have the same settings. And in Z-Wave JS UI I see my devices, but they do not show in Devices within Domoticz. As if Domoticz does not communicate with the mosquitto broker. I can not find what I have done wrong, as everything seems to work, but not together.
Any suggestions are welcome.
I am setting up Domoticz 2024.7 in Docker on a Raspberry Pi 4B. I want to migrate an older version of Domotic on Synology to this Raspberry.
Docker image 2024-4 on a Synology DS920+ using Synology Container Manager (DSM7-2).
Docker image 2024.7 on a Raspberry pi 4B
Docker image 2024.7 on a Raspberry pi 4B
-
- Posts: 300
- Joined: Thursday 01 November 2018 19:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.6
- Location: Portugal
- Contact:
Re: Get ZWave devices visible in Domoticz (Zwave JS UI / MQTT)
"Remote Address" needs to be the same as the IP of mosquito, and if either domoticz or zwavejsui are in dockers there are more things to confirm. If nothing is in a docker and mosquitto is on the same device you can put "localhost" there.
Intel NUC with Ubuntu Server VM (Proxmox),mosquitto(docker),RFXtrx433E,zwavejsUI (docker),Zigbee2mqtt(docker),SMA Hub (docker),Harmony Hub plugin, Kodi plugin,Homebridge(docker)+Google Home,APC UPS,SMA Modbus,Mitsubishi MQTT, Broadlink,Dombus
-
- Posts: 300
- Joined: Thursday 01 November 2018 19:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.6
- Location: Portugal
- Contact:
Re: Get ZWave devices visible in Domoticz (Zwave JS UI / MQTT)
Make sure you have "network_mode: host" in your docker-compose.yml or map ports (something I am not familiar with). You also need zwavejsui to have the correct IP settings for mosquitto.
Intel NUC with Ubuntu Server VM (Proxmox),mosquitto(docker),RFXtrx433E,zwavejsUI (docker),Zigbee2mqtt(docker),SMA Hub (docker),Harmony Hub plugin, Kodi plugin,Homebridge(docker)+Google Home,APC UPS,SMA Modbus,Mitsubishi MQTT, Broadlink,Dombus
-
- Posts: 300
- Joined: Thursday 01 November 2018 19:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.6
- Location: Portugal
- Contact:
Re: Get ZWave devices visible in Domoticz (Zwave JS UI / MQTT)
Code: Select all
version: "3"
services:
mosquitto:
container_name: mosquitto
image: eclipse-mosquitto
volumes:
- ./:/mosquitto/:rw
ports:
- 1883:1883
- 9001:9001
restart: always
Intel NUC with Ubuntu Server VM (Proxmox),mosquitto(docker),RFXtrx433E,zwavejsUI (docker),Zigbee2mqtt(docker),SMA Hub (docker),Harmony Hub plugin, Kodi plugin,Homebridge(docker)+Google Home,APC UPS,SMA Modbus,Mitsubishi MQTT, Broadlink,Dombus
-
- Posts: 300
- Joined: Thursday 01 November 2018 19:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.6
- Location: Portugal
- Contact:
Re: Get ZWave devices visible in Domoticz (Zwave JS UI / MQTT)
This is the docker-compose for zwavejsUI
Code: Select all
version: '3.7'
services:
zwave-js-ui:
container_name: zwavejsUI
hostname: zwavejsUI
image: zwavejs/zwave-js-ui:latest
restart: always
tty: true
stop_signal: SIGINT
environment:
- SESSION_SECRET=mysupersecretkey
- ZWAVEJS_EXTERNAL_CONFIG=/usr/src/app/store/.config-db
# Uncomment if you want logs time and dates to match your timezone instea$
# Available at https://en.wikipedia.org/wiki/List_of_tz_database_time_zon$
- TZ=Europe/Lisbon
networks:
- zwave
extra_hosts:
- "host.docker.internal:host-gateway"
devices:
# Do not use /dev/ttyUSBX serial devices, as those mappings can change ov$
# Instead, use the /dev/serial/by-id/X serial device for your Z-Wave stic$
- '/dev/serial/by-id/usb-0658_0200-if00'
#- '/dev/serial/by-id/insert_stick_reference_here:/dev/zwave'
volumes:
#- zwave-config:/usr/src/app/store
- ./store:/usr/src/app/store
ports:
- '8091:8091' # port for web interface
- '3000:3000' # port for Z-Wave JS websocket server
networks:
zwave:
volumes:
zwave-config:
Intel NUC with Ubuntu Server VM (Proxmox),mosquitto(docker),RFXtrx433E,zwavejsUI (docker),Zigbee2mqtt(docker),SMA Hub (docker),Harmony Hub plugin, Kodi plugin,Homebridge(docker)+Google Home,APC UPS,SMA Modbus,Mitsubishi MQTT, Broadlink,Dombus
-
- Posts: 8
- Joined: Tuesday 06 February 2024 18:00
- Target OS: NAS (Synology & others)
- Domoticz version: 2024.4
- Contact:
Re: Get ZWave devices visible in Domoticz (Zwave JS UI / MQTT)
Thanks for all your suggestions. I checked the suggestions.
I have Docker Engine and Compose running om my Raspberry Pi 4B.
I gave my Pi a fixed ip address within my network: eg 192.168.10.112
I installed Domoticz 2024.7 in Docker. Domoticz runs without a problem on this fixed ip address 192.168.10.112:8080.
I then installed the mosquitto broker in Docker. Mosquitto has the same ip address 192.168.10.112:1883.
I then installed ZWave-JS-UI client in Docker. ZWave-JS-IU is running on the same fixed ip address 192.168.10.112:8091. ZWave-JS-IU is connected with the mosquitto broker on ip adress 192.168.10.112:1883.
I also installed MQTT-explorer in Docker. MQTT-explorer is running 192.168.10.112:4000. Through MQTT-explorer I can connect with the mosquitto broker on 192.168.10.112:1883.
In the ZWave-JS-IU I see the Devices I included.
In MQTT-explorer I can connect to the mosquitto broker with the right user name and password. These are the same I provided in Domoticz for Hardware MQTT Auto Discovery Client Gateway with LAN. So no authorization issue I would say.
In Domoticz I reinstalled MQTT Auto Discovery Client Gateway with LAN. With Remote Address: 192.168.10.112 and Port: 1883
Still no devices to be shown in Domoticz.
I changed the ZWave-JS-IU docker-compose.yml
adding
extra_hosts:
- "host.docker.internal:host-gateway"
I rebuild ZWave-JS-IU and restarted Domoticz, but no devices shown in Domoticz.
Do I need to change the settings in docker-compose.yml
# - "/dev/serial/by-id/usb-0658_0200-if00-port0:/dev/ttyACM0"
into
- '/dev/serial/by-id/usb-0658_0200-if00:/dev/zwave'
or uncomment
# - "/dev/serial/by-id/usb-0658_0200-if00-port0:/dev/ttyACM0"
Docker image 2024-4 on a Synology DS920+ using Synology Container Manager (DSM7-2).
Docker image 2024.7 on a Raspberry pi 4B
Docker image 2024.7 on a Raspberry pi 4B
-
- Posts: 300
- Joined: Thursday 01 November 2018 19:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.6
- Location: Portugal
- Contact:
Re: Get ZWave devices visible in Domoticz (Zwave JS UI / MQTT)
If you already have your devices in zwaveJSUI then your USB device must be correctly set.
When you connect with MQTT explorer, can you see you devices populated there ? If not make sure the mosquitto docker container has port 1883 (and 9001) mapped with the line
If so then it must be the connection between Domoticz and mosquitto. Double check your Discovery topic is the same in ZwaveJSUI and in Domoticz. I don't run Domoticz in a docker but you need to make sure it has access to port 1883, probably by altering the docker-compose.yml file for Domoticz and adding
When you connect with MQTT explorer, can you see you devices populated there ? If not make sure the mosquitto docker container has port 1883 (and 9001) mapped with the line
Code: Select all
ports:
- 1883:1883
- 9001:9001
Code: Select all
ports: - "1883:1883"
Intel NUC with Ubuntu Server VM (Proxmox),mosquitto(docker),RFXtrx433E,zwavejsUI (docker),Zigbee2mqtt(docker),SMA Hub (docker),Harmony Hub plugin, Kodi plugin,Homebridge(docker)+Google Home,APC UPS,SMA Modbus,Mitsubishi MQTT, Broadlink,Dombus
-
- Posts: 8
- Joined: Tuesday 06 February 2024 18:00
- Target OS: NAS (Synology & others)
- Domoticz version: 2024.4
- Contact:
Re: Get ZWave devices visible in Domoticz (Zwave JS UI / MQTT)
Thanks,solarboy wrote: ↑Saturday 23 November 2024 20:14 If you already have your devices in zwaveJSUI then your USB device must be correctly set.
When you connect with MQTT explorer, can you see you devices populated there ? If not make sure the mosquitto docker container has port 1883 (and 9001) mapped with the lineIf so then it must be the connection between Domoticz and mosquitto. Double check your Discovery topic is the same in ZwaveJSUI and in Domoticz. I don't run Domoticz in a docker but you need to make sure it has access to port 1883, probably by altering the docker-compose.yml file for Domoticz and addingCode: Select all
ports: - 1883:1883 - 9001:9001
Code: Select all
ports: - "1883:1883"
I have the following mosquitto docker-compose.yaml in which both ports 1883 and 9001 are registered
Code: Select all
services:
mosquitto:
restart: unless-stopped
build:
context: .
volumes:
- type: bind
source: ./config/
target: /mosquitto/config/
- type: bind
source: ./log/
target: /mosquitto/log/
- type: volume
source: data
target: /mosquitto/data/
ports:
- target: 1883
published: 1883
protocol: tcp
mode: host
- target: 9001
published: 9001
protocol: tcp
mode: host
volumes:
data:
name: "mqtt-broker-data"
Code: Select all
- "/dev/serial/by-id/usb-0658_0200-if00-port1883:/dev/ttyACM0"
Docker image 2024-4 on a Synology DS920+ using Synology Container Manager (DSM7-2).
Docker image 2024.7 on a Raspberry pi 4B
Docker image 2024.7 on a Raspberry pi 4B
-
- Posts: 300
- Joined: Thursday 01 November 2018 19:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.6
- Location: Portugal
- Contact:
Re: Get ZWave devices visible in Domoticz (Zwave JS UI / MQTT)
When you connect to mosquitto with Mqtt explorer, can you see your devices there ?
Intel NUC with Ubuntu Server VM (Proxmox),mosquitto(docker),RFXtrx433E,zwavejsUI (docker),Zigbee2mqtt(docker),SMA Hub (docker),Harmony Hub plugin, Kodi plugin,Homebridge(docker)+Google Home,APC UPS,SMA Modbus,Mitsubishi MQTT, Broadlink,Dombus
-
- Posts: 8
- Joined: Tuesday 06 February 2024 18:00
- Target OS: NAS (Synology & others)
- Domoticz version: 2024.4
- Contact:
Re: Get ZWave devices visible in Domoticz (Zwave JS UI / MQTT)
No they do not. I'm am connected to the mosquitto broker, but I do not see any devices.
Docker image 2024-4 on a Synology DS920+ using Synology Container Manager (DSM7-2).
Docker image 2024.7 on a Raspberry pi 4B
Docker image 2024.7 on a Raspberry pi 4B
-
- Posts: 300
- Joined: Thursday 01 November 2018 19:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.6
- Location: Portugal
- Contact:
Re: Get ZWave devices visible in Domoticz (Zwave JS UI / MQTT)
So I would check that you have the correct port, name and username for mosquitto in zwavejsUI and that you have made those ports available to both docker containers. I use "host.docker.internal" as the host url in zwavejsUI and the prefix "zwave" (not the discovery topic) so all my devices appear under the subheading "zwave" when I view mosquitto with MQTT Explorer. I don't use any authorisation so I have "auth" turned off. Perhaps you could try running your mosquitto without requiring authentication until you resolve the problem.
Intel NUC with Ubuntu Server VM (Proxmox),mosquitto(docker),RFXtrx433E,zwavejsUI (docker),Zigbee2mqtt(docker),SMA Hub (docker),Harmony Hub plugin, Kodi plugin,Homebridge(docker)+Google Home,APC UPS,SMA Modbus,Mitsubishi MQTT, Broadlink,Dombus
Who is online
Users browsing this forum: No registered users and 1 guest