Easiest way to migrate Openzwave to ZWave-JS-UI

For Z-Wave related questions in Domoticz

Moderator: leecollings

User avatar
gizmocuz
Posts: 2350
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 »

tiga wrote: Saturday 20 January 2024 20:23 just did a fresh install on a fresh pi and:

pi@raspberrypi:~ $ ls /dev/serial/by-id
ls: cannot access '/dev/serial/by-id': No such file or directory

pi@raspberrypi:~ $ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian

what am i doing wrong?
Maybe this will work? Still it's strange.

https://ubuntu-mate.community/t/ls-cann ... tory/26867

When you unplug the USB device, then plug it back and issue

dmesg

do you see it being added? Or is there a error?
Quality outlives Quantity!
rfvdboom
Posts: 38
Joined: Tuesday 20 September 2016 8:32
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Netherlands
Contact:

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

Post by rfvdboom »

I guess that a bookworm issue. See this page
https://www.thushanfernando.com/posts/2 ... ial-by-id/
Odroid N2+ | Raspberry P 3 ModelB | RFXcom | AEOTEC Zwave | Honeywell Lyric T6| Milight | Milighthub (NodeMCU) | SolarEdge | P1 Smart meter USB | KAKU | Wemos D1 (esphome) | Denon | Logitech Harmony
tiga
Posts: 156
Joined: Friday 27 May 2016 20:15
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: nederland
Contact:

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

Post by tiga »

Lol...this gets more complicated by the minute.
MJHDiepman
Posts: 1
Joined: Wednesday 07 February 2024 0:07
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by MJHDiepman »

I also got the "ls: cannot access '/dev/serial/by-id': No such file or directory" error and managed to resolve it.

To be honest I found it quite tricky. My old setup was Domoticz with OpenZwave , running happily on
- an ancient Raspberry Pi 2011.12 Model B v1.0
- an Aeotec Zwave stick 5

Since the latest version of Domoticz no longer supports this old Raspberry Pi hardware I decided to upgrade to a Raspberry Pi 4 and move to ZWave-JS-UI. I followed the installation instructions and with a bit of tinkering and a powered USB hub (as mentioned here https://www.domoticz.com/forum/viewtopic.php?t=29013) I got MQTT and ZwaveJS-UI to work, but never got any devices in Domoticz.

Turns out the Aeotec Zwave stick 5 is not compatible with the Raspberry Pi 4. It draws too much power when you plug it in and the Raspberry Pi rejects & disables it: https://github.com/raspberrypi/linux/issues/3027.

Older Raspberry Pi models are more forgiving. I switched to an older Raspberry Pi 3 Model B and everything works like a charm
Quax1507
Posts: 101
Joined: Tuesday 07 April 2015 21:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by Quax1507 »

I jave a similar setup with RPi 4 and Z-Stick 5.
You have to use an USB hub between RPi and Stick.

I use this one https://www.amazon.de/dp/B00L2442H0?ref ... b_ap_share
tiga
Posts: 156
Joined: Friday 27 May 2016 20:15
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: nederland
Contact:

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

Post by tiga »

ok....still one big mess with the migrate.

can you guys give me an advise on what OS i must install that will give me the most chance of succes??

looks like a good foundation will help a lot

(i use a pi 4)

thanks!
User avatar
waltervl
Posts: 5148
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 »

If you work with docker containers you can can use a recent OS version. Please invest time to understand the concept of Docker containers.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
tiga
Posts: 156
Joined: Friday 27 May 2016 20:15
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: nederland
Contact:

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

Post by tiga »

ok...finaly got the whole migrating-thing figured out.

using a spare pi 4 and a spare new aeotec zwave stick 5.connected some spare switches and everything works fine...

but then i plug in my other aeotec stick 5(this is the one i need to migrate, and couple of years old) with all my 60 or so devices, all went wrong...
the stick went blinking super fast in yellow or stoped blinking at all....
ls /dev/serial/by-id gives no device anymore.

what can be the reason?
stick works perfect on my old pi 2
Last edited by tiga on Saturday 09 March 2024 20:53, edited 1 time in total.
User avatar
waltervl
Posts: 5148
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 »

Old zwavel Stick 5 has issues on an RPi4. Use a 2.0 USB hub to fix it.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
tiga
Posts: 156
Joined: Friday 27 May 2016 20:15
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: nederland
Contact:

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

Post by tiga »

i have a usb 2.0 hub connected,like i said all works fine with my newer stick 5
User avatar
elzorrovega
Posts: 61
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 »

Hi,

I been there fighting with Aotec Gen 5+, RPi4b & Bullseye.

Have you verified this post.

https://www.domoticz.com/forum/viewtopic.php?t=40536

Regards,

ElZorrovega
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.9.0.09b107a
zwave-js: 12.4.4 home id: 3714679688 home hex: 0xdd698388
tiga
Posts: 156
Joined: Friday 27 May 2016 20:15
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: nederland
Contact:

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

Post by tiga »

yes i have replaced the contend....thanks for the tip
but that is not th issue...i have a working setup but when i replace the stick with the other older one things get strange and not working anymore.fast blinking or no power to stick(not blinking at all)
User avatar
elzorrovega
Posts: 61
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 »

Hi,

Silly question!

Does your usb hub have own power supply?

I also have a more recent Aeotec Gen5+ which is recognised by RPi4 but when I tried the old one, no sign of life.

There is a post in RPi forum where basically their gurus tell you that Aeotec does not meet USB specifications …..

My current setup has self powered usb hub.
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.9.0.09b107a
zwave-js: 12.4.4 home id: 3714679688 home hex: 0xdd698388
tiga
Posts: 156
Joined: Friday 27 May 2016 20:15
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: nederland
Contact:

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

Post by tiga »

No.the hub has no own power supply.
User avatar
elzorrovega
Posts: 61
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 »

Hi,

This is my current setup.

RPi4b
Domoticz Z-Wave Controller is Z-Stick Gen5+ Chip Type ZW0501 Ver 4.54.
Even with new Power Supply - iUniker with output 5,1V 4A 20,4W - controller is not seen when connected directly to RPi4b USB 2.0 ports.
Connected controller to an D-Link USB 2.0 Hub with own power supply and everyone seems to be happy.
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.9.0.09b107a
zwave-js: 12.4.4 home id: 3714679688 home hex: 0xdd698388
tiga
Posts: 156
Joined: Friday 27 May 2016 20:15
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: nederland
Contact:

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

Post by tiga »

Took the effort to migratie all my devices from the old stick to the new one.everything works ok now.this new setup is super stable
User avatar
elzorrovega
Posts: 61
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 Tiga. Good to hear that new dongle works!

I recently bought a new Aeotec stick and I used EOM tool to transfer settings from old to new. I did not have the time to try the new stick which appears to be visible on RPi4.

Curiosity, what kind of Z-Wave stick do you use and are you now connected directly to USB 2 on the RPi4?
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.9.0.09b107a
zwave-js: 12.4.4 home id: 3714679688 home hex: 0xdd698388
gbonny
Posts: 27
Joined: Friday 27 October 2017 22:08
Target OS: Linux
Domoticz version:
Contact:

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

Post by gbonny »

Hello all,

Yesterday I've tried jumping on the train called zwave-js-ui. I'm running Domoticz 2024.4 on a Ubuntu 22.04 LTS VM on ESXI7.
I have like 30 ZWave devices hooked up on my zwave.me zme-uzb1 USB device which is running:
fw 5.5 (aka 5.05?)
sdk 6.51.6 (aka 6.51.06?)
Most, if not all, are zwave+ and are included 'securely' via Domoticz.

I've been reading a lot of topics regarding migrating from openzwave to zwave-js-ui the past 2 weeks.

I came across tutorials like:
d3smo tutorial - great work, very detailed, thanks!
https://www.domoticz.com/forum/viewtopi ... 78#p303778

wiki tutorial - great work, thanks!
wiki/Zwave-JS-UI#Migrating_from_OpenZwave

I've checked device support on
https://devices.zwave-js.io/

I have this new VM Ubuntu 22.04 running docker and portainer-ce for over a year now.
I installed lately a container with Mosquitto as MQTT broker. Added MQTT Explorer container next to it, so it can read and publish on the broker.
Then I installed yesterday zwave-js-ui container (zwave js ui 9.10.2, zwave js 12.5.2). Before I disabled openzwave in domoticz, shutdown the VM's, removed zwave usb from VM and added it to the new VM and started both VM's. Attached usb stick to container using /dev/serial/by-id method.

Topics are populated in Mosquitto in zwave and zwavejsAD. So far so good you would think. However, unfortunately only 3 out of 30 devices are recognized after 10 hours:
- fgsd002 fibaro smoke detector
- zm1601-5 vision siren
- zd2102-5 door window sensor

The rest is listed as "unknown manufacturer" and "unknown product".
Powered devices like several Fibaro Wall Plugs and a Smart Implant are done interviewing and are still listed as "unknown".
I have:
2 zm1601-5 sirens
5 fgsd002 fibaro smoke sensor
1 fgbs222 fibaro smart implant
1 fgms001 fibaro motion multi sensor
6 zd2102-5 door sensors
8 fgwp101 fibaro wall plugs
1 fibaro keyfob
2 PH-PAT02-B.eu Multisensor 2in1
1 PH-PAT02-B.eu Flood Multisensor 3in1
and a few more devices.


1. What am I doing wrong here?
2. I've added the security key in lower case (like it was in Domoticz), should it be in upper case or it doesn't matter (nothing in the tutorials regarding this though)? I've copied it to "S2 unauthenticated" as described.
3. Should I try to update my zwave.me zme-uzb1 so it has a more recent SDK (it's not in the tutorial nor on the device support listed)?

Maybe SDK related issues however different, zwave usb sticks:
sincze problem
https://www.domoticz.com/forum/viewtopi ... 64#p303964
eugene problem
https://www.domoticz.com/forum/viewtopi ... 48#p312048

4. Has anyone migrated from openzwave to zwave-js-ui succesfully with a zwave.me zme-uzb1 usb stick? Which FW and SDK do you have?

Thanks in advance for the help!

Update: upper-case doesn't seem to matter. zwavejsui logging shows a lot of "error: Invalid auth code, won't accept security encapsulated command." hmm.. what would that mean..?!
Domoticz 2024.7 on Ubuntu 22.04 LTS VM on ESXi 7
SolarEdge Web API, P1 meter, RFXCOM433E, OpenZWave via ZMEEUZB1, MQTT AD Client Gateway ZWave-JS-UI, Philips Hue bridge, Kodi Media server, Panasonic TV, OWM, BuienRadar and HTTP/HTTPS poller Watermeter
gbonny
Posts: 27
Joined: Friday 27 October 2017 22:08
Target OS: Linux
Domoticz version:
Contact:

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

Post by gbonny »

An update from my side. I"ve upgraded my zwave.me zme_uzb1 stick to FW 5.39 and SDK 6.82.1 after spinning up a Z-Way container.

I've just started my Zwave-js-ui container. Currently 5 devices are recognized. I still see "error: invalid auth code" messages appearing in the log unfortunately..
Domoticz 2024.7 on Ubuntu 22.04 LTS VM on ESXi 7
SolarEdge Web API, P1 meter, RFXCOM433E, OpenZWave via ZMEEUZB1, MQTT AD Client Gateway ZWave-JS-UI, Philips Hue bridge, Kodi Media server, Panasonic TV, OWM, BuienRadar and HTTP/HTTPS poller Watermeter
gbonny
Posts: 27
Joined: Friday 27 October 2017 22:08
Target OS: Linux
Domoticz version:
Contact:

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

Post by gbonny »

Could it be that I should have left out a key for S2 authenticated and S2 access control? I've generated them like I did with S0 legacy.
Domoticz 2024.7 on Ubuntu 22.04 LTS VM on ESXi 7
SolarEdge Web API, P1 meter, RFXCOM433E, OpenZWave via ZMEEUZB1, MQTT AD Client Gateway ZWave-JS-UI, Philips Hue bridge, Kodi Media server, Panasonic TV, OWM, BuienRadar and HTTP/HTTPS poller Watermeter
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest