ZWave-JS-UI needs restart for domoticz to see the devices

For Z-Wave related questions in Domoticz

Moderator: leecollings

Post Reply
OlivierFR
Posts: 12
Joined: Friday 25 July 2014 18:32
Target OS: Linux
Domoticz version:
Contact:

ZWave-JS-UI needs restart for domoticz to see the devices

Post by OlivierFR »

Hi,
I have successfully switched from OZW to Zwave-JS-UI since a few months.
It works fine except in this scenario:
When Domoticz is restarted, the Zwave devices are not getting updated and the commands to ZWave devices are not working.

In the Domoticz log there is no entry from Zwave devices at all.
In order to get it work again, I need to restart the Zwave-JS-UI container.
Then in the Domoticz log I see all the discovery messages from MQTT and after this I see the values being updated regularly and the commands work again.

Is there a setting that allows Domoticz to communicate with the Zwave devices after a restart without having to restart the ZWave-JS-UI container (maybe in the ZWave-JS-UI settings, like MQTT retain ?).

Is anyone having the same issue?

Thanks.
ksacca
Posts: 80
Joined: Thursday 31 May 2018 21:49
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: ZWave-JS-UI needs restart for domoticz to see the devices

Post by ksacca »

Hi OliverFR,

Domoticz expects to receive the device configuration over mqtt when restarting. This is sent when you restart zwavejs (or if you save settings). That's why it starts to work. You can enable retained discovery messages in zwavejs ui, and domoticz will receive it from your broker on restart. With this option enabled, the configuration messages are permanently stored in your broker, and domoticz will receive them immediately when it connects over mqtt (so on restart, on enabling hardware, ...).
zwavejsui.JPG
zwavejsui.JPG (24.66 KiB) Viewed 1350 times
OlivierFR
Posts: 12
Joined: Friday 25 July 2014 18:32
Target OS: Linux
Domoticz version:
Contact:

Re: ZWave-JS-UI needs restart for domoticz to see the devices

Post by OlivierFR »

Great!
I tried and it works as expcted.

I followed the wiki which shows retained discovery to be off. I wasn't sure if it would have any negative effect to turn it on.

Thanks!
solarboy
Posts: 345
Joined: Thursday 01 November 2018 19:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.6
Location: Portugal
Contact:

Re: ZWave-JS-UI needs restart for domoticz to see the devices

Post by solarboy »

I had the same issue and was happy to find this solution. I also have another question; what is the easiest way to restart zwavejsUI when it's in a docker ? I can't see it listed as a "service" that I can restart.
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
ksacca
Posts: 80
Joined: Thursday 31 May 2018 21:49
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: ZWave-JS-UI needs restart for domoticz to see the devices

Post by ksacca »

A container is actually a virtual machine with it's own OS, so it is indeed not a service.
You can list all your active containers using:

Code: Select all

docker container ls
This will list all running containers. Find the name of your container and issue the following command to completely restart it.

Code: Select all

docker restart <container name>
You can also use this to see the name of your containers and the memory and cpu usage.

Code: Select all

docker stats
But what I actually is is Portainer. This is a visual interface to add and manage your containers.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest