Easiest way to migrate Openzwave to ZWave-JS-UI

For Z-Wave related questions in Domoticz

Moderator: leecollings

Post Reply
mgugu
Posts: 218
Joined: Friday 04 November 2016 12:33
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: France
Contact:

Re: Easiest way to migrate Openzwave to ZWave-JS-UI

Post by mgugu »

Image
User avatar
Egregius
Posts: 2589
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: Easiest way to migrate Openzwave to ZWave-JS-UI

Post by Egregius »

Thanks!

And also for MQTT and Gateway?
User avatar
waltervl
Posts: 5714
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Easiest way to migrate Openzwave to ZWave-JS-UI

Post by waltervl »

I have already updated the Wiki with help of your comments.
https://www.domoticz.com/wiki/Zwave-JS- ... n_Domoticz
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
mgugu
Posts: 218
Joined: Friday 04 November 2016 12:33
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: France
Contact:

Re: Easiest way to migrate Openzwave to ZWave-JS-UI

Post by mgugu »

2022-12-23 09_45_49-Z-Wave JS UI.png
2022-12-23 09_45_49-Z-Wave JS UI.png (37.82 KiB) Viewed 11259 times
2022-12-23 09_44_16-Z-Wave JS UI.png
2022-12-23 09_44_16-Z-Wave JS UI.png (28.8 KiB) Viewed 11259 times
mgugu
Posts: 218
Joined: Friday 04 November 2016 12:33
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: France
Contact:

Re: Easiest way to migrate Openzwave to ZWave-JS-UI

Post by mgugu »

waltervl wrote: Friday 23 December 2022 9:45 I have already updated the Wiki with help of your comments.
https://www.domoticz.com/wiki/Zwave-JS- ... n_Domoticz
Excellent. No more possible confusion now.
And this is valid also for zigbee2mqtt.
User avatar
Egregius
Posts: 2589
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: Easiest way to migrate Openzwave to ZWave-JS-UI

Post by Egregius »

Thanks!
What's the reason to have a different prefix in MQTT and Homeassistant?
mgugu
Posts: 218
Joined: Friday 04 November 2016 12:33
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: France
Contact:

Re: Easiest way to migrate Openzwave to ZWave-JS-UI

Post by mgugu »

Prefix in HA is used for config messages and MQTT prefix used for update messages. This allows to have 2 different topics, improving readability in MQTT explorer and also to avoid possible MQTT loop.
mgugu
Posts: 218
Joined: Friday 04 November 2016 12:33
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: France
Contact:

Re: Easiest way to migrate Openzwave to ZWave-JS-UI

Post by mgugu »

And after a successfull integration, NEVER CHANGE the prefixes !
User avatar
Egregius
Posts: 2589
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: Easiest way to migrate Openzwave to ZWave-JS-UI

Post by Egregius »

OK, and which one is set in domoticz then? The MQTT one or the HA one?
mgugu
Posts: 218
Joined: Friday 04 November 2016 12:33
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: France
Contact:

Re: Easiest way to migrate Openzwave to ZWave-JS-UI

Post by mgugu »

Egregius wrote: Friday 23 December 2022 11:40 OK, and which one is set in domoticz then? The MQTT one or the HA one?
Only HA prefix is set in domoticz UI. MQTT prefix, used for updates, is sent automatically to domoticz through config messages
2022-12-23 11_45_54-Domoticz.png
2022-12-23 11_45_54-Domoticz.png (250.14 KiB) Viewed 11226 times
JuanUil
Posts: 497
Joined: Friday 22 May 2015 12:21
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11083
Location: Asten NB Nederland
Contact:

Re: Easiest way to migrate Openzwave to ZWave-JS-UI

Post by JuanUil »

HI all,

I also have struggeld a lot with switching to ZWave-JS-UI.
But now all is working verry well and better then in OZW.
I have made a tutorial to complete install.
For the moment it is only in Dutch and maybe not complete.
Coming time I will translate and update.
you can download it from :
https://mega.nz/file/3JxQ3Y7R#LIFf5wcVo ... KTAX1e5dFA

good luck!

Jan
Your mind is like a parachute,
It only works when it is opened!

RPI4 several Fibaro, KaKu, Neocoolcam switches, Z-Wave, Zigbee2Mqtt, Ikea bulbs and remote, Zigbee temp nodes
User avatar
madpatrick
Posts: 659
Joined: Monday 26 December 2016 12:17
Target OS: Linux
Domoticz version: 2024.7
Location: Netherlands
Contact:

Re: Easiest way to migrate Openzwave to ZWave-JS-UI

Post by madpatrick »

Good Job !!
-= HP server GEN11 =- OZW -=- Toon2 (rooted) -=- Domoticz v2024.7 -=- Dashticz v3.14b on Tab8" =-
HansF
Posts: 19
Joined: Monday 19 November 2018 23:07
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Easiest way to migrate Openzwave to ZWave-JS-UI

Post by HansF »

Thanks Jan, for putting this together!
User avatar
gizmocuz
Posts: 2471
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Easiest way to migrate Openzwave to ZWave-JS-UI

Post by gizmocuz »

Instead of directly installing these applications/servers on your machine, why not use docker-compose?
I recommend this much more above a direct install

You will have all configuration/data files in each docker-compose folder, and it is very easy to backup/migrate/test/update

Everything is also available in docker-compose

It also does not take any additional system resources
Quality outlives Quantity!
JuanUil
Posts: 497
Joined: Friday 22 May 2015 12:21
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11083
Location: Asten NB Nederland
Contact:

Re: Easiest way to migrate Openzwave to ZWave-JS-UI

Post by JuanUil »

The englisch version of the manual can now be found on:
https://mega.nz/file/jQInXCJI#j-uMcnlrX ... YzUippScHs

Enjoy!
Jan
Your mind is like a parachute,
It only works when it is opened!

RPI4 several Fibaro, KaKu, Neocoolcam switches, Z-Wave, Zigbee2Mqtt, Ikea bulbs and remote, Zigbee temp nodes
User avatar
madpatrick
Posts: 659
Joined: Monday 26 December 2016 12:17
Target OS: Linux
Domoticz version: 2024.7
Location: Netherlands
Contact:

Re: Easiest way to migrate Openzwave to ZWave-JS-UI

Post by madpatrick »

@gizmocuz

Is it possible to have a notice up front when OZW will be disabled from Domoticz?
This gives me time to build a latest release from source and to switch to ZWave-JS-UI

Thanks !
Keep up the good work
-= HP server GEN11 =- OZW -=- Toon2 (rooted) -=- Domoticz v2024.7 -=- Dashticz v3.14b on Tab8" =-
MikeyMan
Posts: 237
Joined: Wednesday 17 October 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Easiest way to migrate Openzwave to ZWave-JS-UI

Post by MikeyMan »

mgugu wrote: Friday 23 December 2022 8:59 From my experience, contrary to what is suggested in wiki configuration screenshot, retain flag MUST be set to ON.
This allows the broker to keep in memory the config messages which are necessary each time domoticz is restarted.
If you need to remove definitely devices from domoticz (for example in case you remove a zwave node), you have to remove the corresponding config messages, simply by publishing "" at the config message topic (with MQTT explorer for example).
Hmm... I restarted domoticz several times, but that i didn't notice.
What behaviour did you see that makes you think this? Can check again.
mgugu
Posts: 218
Joined: Friday 04 November 2016 12:33
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: France
Contact:

Re: Easiest way to migrate Openzwave to ZWave-JS-UI

Post by mgugu »

MikeyMan wrote: Monday 02 January 2023 10:57 Hmm... I restarted domoticz several times, but that i didn't notice.
What behaviour did you see that makes you think this? Can check again.
Domoticz does not store mqtt config messages, so if these messages are not retained neither by the broker, after a restart yo will still see the devices in domoticz but they are not responding. You then need to make a manual refresh in the mqtt gateway to make them working again.
User avatar
elzorrovega
Posts: 63
Joined: Friday 08 May 2020 19:26
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Location: Bordeaux, France
Contact:

Re: Easiest way to migrate Openzwave to ZWave-JS-UI

Post by elzorrovega »

Hello All,

I take this opportunity to wish you All Happy New Year!

We hesitate to sail unto uncharted waters but then again sometimes we have no choice. After closely following your discussions, I understood that Open Z-Wave development is stopped and the only option is to use Zwave-JS-UI in the very near future.

To this effect Domoticz needs to use MQTT gateways, MQTT Broker like Mosquitto and an application such as Zwave-JS-UI to communicate to field devices. Web pages below have been very helpful - Thanks a lot JuanUil - to allow me to almost succeed this exercise but I still have some snags!

https://www.domoticz.com/wiki/MQTT - MQTT Broker Mosquitto

https://www.domoticz.com/wiki/Zwave-JS-UI

https://mega.nz/file/jQInXCJI#j-uMcnlrX ... YzUippScHs

DOMOTICZ CONFIGURATION

Code: Select all

Domoticz version 2022.1 release runs in the following environment
Update Raspberry Pi 3 Model B+
Hardware	: BCM2835
Revision	: a020d3
Serial		: 00000000cc7e2232
Model		: Raspberry Pi 3 Model B Plus Rev 1.3
Linux raspberrypi 5.15.76-v8+ #1597 SMP PREEMPT Fri Nov 4 12:16:41 GMT 2022 aarch64 GNU/Linux - Bullseye -64 bit OS

Z-Wave Node
idVendor           0x0658 Sigma Designs, Inc.
idProduct          0x0200 Aeotec Z-Stick Gen5 (ZW090) - UZB
MIGRATION STATUS

Mosquitto Broker is installed and configured as recommended for Raspbian environment

https://randomnerdtutorials.com/how-to- ... pberry-pi/

Docker is installed and running. Below is the ps ouput

Code: Select all

pi@raspberrypi:~ $ pstruc.sh | grep erd
root	668	0.1	5.5	1354332	50072	?	Ssl	17:19	0:04	/usr/bin/dockerd
root	521	0.0	3.4	1335144	31576	?	Ssl	17:19	0:02	/usr/bin/containerd
I am new to Docker but to my understanding, one runs an image of an application in localised environment (locally/cloud).

According to https://zwave-js.github.io/zwave-js-ui/ ... tallation
There are three way to install Zwave-JS-UI image
1- Run using volumes
2- Run using local folder
3- Run as a service

I understood, that in all cases we are to download an Zwave-JS-UI image. I chose the second option and data is placed in store directory. I was able to access the Zwave-JS-UI image after running the following in LCI

Code: Select all

sudo docker run --rm -it -p 8091:8091 -p 3000:3000 -e TZ=Europe/Paris --device=/dev/serial/by-id/usb-0658_0200-if00 \
-v $(pwd)/store:/usr/src/app/store zwavejs/zwave-js-ui:latest
Terminal shows activity and web interface allows configuration. However, after restarting the Raspberry Pi, the Zwave-JS-UI is not accessible.

Running docker command again brings back the web interface.

QUESTIONS

JuanUil in his walk-through points to dev/serial/by-id/usb-0658_0200-if00:/dev/zwave' .
I used /dev/serial/by-id/usb-0658_0200-if00.

Is :/dev/zwave a must to communication via Z-Wave node?

Docker documentation recommends to add parameter --restart unless-stopped to docker command line and prefers not to use process managers like upstart, systemd or supervisor.

What is the best way to Start Docker Containers Automatically After a Reboot?

Thanks in advance for your help.

El Zorro. :)
The solution to the problem changes the problem!

Rasberry Pi 4 Model B; Bullseye -64 bit OS 6.1.21-v8+ #1642
Domoticz Version: 2024.7
zwave-js-ui: 9.30.1.46a9eda
zwave-js: 14.3.8
home id: 3714679688
home hex: 0xdd698388*
User avatar
sincze
Posts: 1300
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands / Breda Area
Contact:

Re: Easiest way to migrate Openzwave to ZWave-JS-UI

Post by sincze »

Did a first trial run.

Before I started (on a Pi):
Spoiler: show

Code: Select all

	sudo nano /etc/udev/rules.d/99-usb-serial.rules [ or use the vi editor ]

	SUBSYSTEM=="tty", ATTRS{idVendor}=="0658", ATTRS{idProduct}=="0200", SYMLINK+="ttyUSB-ZStick-5G"
  • Created an overview of all my Domoticz ZWAVE nodeID's in excel so I would be able to identify them later.
  • Followed the wiki :D (thanks!)
  • Disabled the ZWAVE Stick in Domoticz (Production)
  • Started the Z-Wave JS UI Docker
  • Added Network Security Keys [Settings -> Z-Wave -> Security Keys (S0 Legacy, S2 Unauthenticated, S2 Authenticated, and S2 Access Control))
  • After that Control Panel started building up the Network Inventory.
  • Unfortunately the Device Names and Locations that I defined in OZW were not transferred into Z-Wave JS.
  • Manufacturer name of some Fibaro Power Switching Nodes were and others were not detected (Fibargroup vs Unknown manufacturer 0xXXXX).
Due to time shortage I was unable to test the Battery Powered Nodes. Probably need to open them and press a button or so to speed up detection.

Additionally
  • Installed a Domoticz (TEST) docker
  • Added the Autodiscovery Hardware
  • Enabled MQTT Dicovery in Z-Wave JS UI. + Retained Discovery
zwave2mqtt.JPG
zwave2mqtt.JPG (81.72 KiB) Viewed 10986 times
Result:
The nodes were created ;-) in Domoticz, still only based on their NodeID but that seems logical as the names did not come through from OZW.
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest