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.
ZWave-JS-UI needs restart for domoticz to see the devices
Moderator: leecollings
-
- 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
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, ...).
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, ...).
Re: ZWave-JS-UI needs restart for domoticz to see the devices
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!
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!
-
- 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
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
-
- 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
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:
This will list all running containers. Find the name of your container and issue the following command to completely restart it.
You can also use this to see the name of your containers and the memory and cpu usage.
But what I actually is is Portainer. This is a visual interface to add and manage your containers.
You can list all your active containers using:
Code: Select all
docker container ls
Code: Select all
docker restart <container name>
Code: Select all
docker stats
Who is online
Users browsing this forum: No registered users and 1 guest