Easiest way to migrate Openzwave to ZWave-JS-UI

For Z-Wave related questions in Domoticz

Moderator: leecollings

User avatar
Egregius
Posts: 2592
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 »

OMG spend half the day to get Zwave-JS-UI running. Had an enormous amount of errors.
Finally got it running, tested 1 switch and working. So started updating all the names, took about 5 hours to complete.
Suddenly lots of errors dropped, switch not found, nothing was working anymore. Restarted the docker and it worked again, for several minutes and stopped again.
Returned back to Openzwave, can't leave it in an erroneous state for the evening/night.
Gravityz
Posts: 587
Joined: Wednesday 16 December 2015 19:13
Target OS: NAS (Synology & others)
Domoticz version: 2022.2
Location: Netherlands
Contact:

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

Post by Gravityz »

how do you test?
disable domoticz
enable zwave-js-ui and see how stable it is from there
or did you do the import in domoticz and disabled zwave there

i thought i would load everything into zwave-js-ui and then change the zwave path to something none existent so i could run domoticz with openzwave and zwave-js-ui side by side but when you change the path the devices disappear
tjabas
Posts: 562
Joined: Sunday 11 December 2016 13:51
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by tjabas »

I have spent slot of time configuring all my z-wave devices in domoticz, and now its going to be removed?
Do Home Assistant use z-wave and aeotech usb stick, is it compatible with home Assistant ?
I need to replace domoticz with something else.
User avatar
madpatrick
Posts: 665
Joined: Monday 26 December 2016 12:17
Target OS: Linux
Domoticz version: 2025.1
Location: Netherlands
Contact:

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

Post by madpatrick »

tjabas wrote: Wednesday 21 December 2022 18:17 I have spent slot of time configuring all my z-wave devices in domoticz, and now its going to be removed?
Do Home Assistant use z-wave and aeotech usb stick, is it compatible with home Assistant ?
I need to replace domoticz with something else.
Why replace Domoticz ? It is still working and with a new update i "could" be the case Open Z-wave will be removed.
You can still use Zwave devices with ZWave-JS-UI in Domoticz
Or don't upgrade ;)
-= HP server GEN11 =- OZW -=- Toon2 (rooted) -=- Domoticz v2025.1 -=- Dashticz v3.14b on Tab8" =-
tjabas
Posts: 562
Joined: Sunday 11 December 2016 13:51
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by tjabas »

But i need to run the new js-ui on a windows computer?
User avatar
madpatrick
Posts: 665
Joined: Monday 26 December 2016 12:17
Target OS: Linux
Domoticz version: 2025.1
Location: Netherlands
Contact:

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

Post by madpatrick »

On the pc you are running Domoticz
But only when OZW will be depreciated. So you still have time
-= HP server GEN11 =- OZW -=- Toon2 (rooted) -=- Domoticz v2025.1 -=- Dashticz v3.14b on Tab8" =-
User avatar
waltervl
Posts: 5791
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 »

tjabas wrote: Wednesday 21 December 2022 18:17 I have spent slot of time configuring all my z-wave devices in domoticz, and now its going to be removed?
Do Home Assistant use z-wave and aeotech usb stick, is it compatible with home Assistant ?
I need to replace domoticz with something else.
OpenZwave is software that communicates with your Zwave-Stick and Domoticz (and other domotica systems). But that software project stopped so we need other software to communicate with our Zwave Sticks. There is currently only one alternative: Zwave-JS. This is also used by other domotica systems.
So Zwave as a hardware protocol is not deleted only the communication software is changed from Openzwave to ZWave-JS-UI. No need to move away from Domoticz!
But as the software is changed you have to do something in Domoticz and on your Domoticz server. That is what this forum thread is about......
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
waltervl
Posts: 5791
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 »

tjabas wrote: Wednesday 21 December 2022 18:36 But i need to run the new js-ui on a windows computer?
Read the wiki https://www.domoticz.com/wiki/Zwave-JS-UI
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
tjabas
Posts: 562
Joined: Sunday 11 December 2016 13:51
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by tjabas »

Thanks for your answers, so i need to buy a new z-wave 700 stick, and re-pair all z-wave devices again?
User avatar
madpatrick
Posts: 665
Joined: Monday 26 December 2016 12:17
Target OS: Linux
Domoticz version: 2025.1
Location: Netherlands
Contact:

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

Post by madpatrick »

No. Just install Zwave-JS-UI and configure it.
See the wiki link
-= HP server GEN11 =- OZW -=- Toon2 (rooted) -=- Domoticz v2025.1 -=- Dashticz v3.14b on Tab8" =-
tjabas
Posts: 562
Joined: Sunday 11 December 2016 13:51
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by tjabas »

madpatrick wrote: Wednesday 21 December 2022 18:59 No. Just install Zwave-JS-UI and configure it.
See the wiki link
So no need to re-pair all devices?
User avatar
waltervl
Posts: 5791
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 »

tjabas wrote: Wednesday 21 December 2022 19:03
madpatrick wrote: Wednesday 21 December 2022 18:59 No. Just install Zwave-JS-UI and configure it.
See the wiki link
So no need to re-pair all devices?
No, please read the wiki section Migrating from OpenZwave
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
Egregius
Posts: 2592
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 »

Another day, another time to continue...
Unfortunately the same problem as yesterday.
This is what I did:
install zwave-js-ui in docker
configured zwave-js-ui to use mqtt prefix domoticz (as configured in domoticz MQTT autodiscover hardware).
disable the openzwave hardware

All devices are added to the database, removed devices are re-added.
Test of switching is working, see logfile:

Code: Select all

2022-12-22 09:18:20.904  Status: User: Admin (IP: 192.168.2.254) initiated a switch command (3431/bureel/Off)
2022-12-22 09:18:21.205  M: Light/Switch/Switch (bureel)
2022-12-22 09:18:24.072  Status: User: Admin (IP: 192.168.2.254) initiated a switch command (3431/bureel/On)
2022-12-22 09:18:24.374  M: Light/Switch/Switch (bureel)
2022-12-22 09:18:28.102  Status: User: Admin (IP: 192.168.2.254) initiated a switch command (3431/bureel/Off)
2022-12-22 09:18:28.404  M: Light/Switch/Switch (bureel)
Busy preparing the update of IDX numbers in pass2php and renaming all created devices.
After some time the switch isn't found anymore:

Code: Select all

2022-12-22 09:43:59.007  Status: User: Admin (IP: 192.168.2.254) initiated a switch command (3431/bureel/On)
2022-12-22 09:43:59.007  Error: M: Switch not found!? (zwavejs2mqtt_0xe9238f6e_103-37-6-currentValue/bureel)
New updates are also no longer received in domoticz. They do appear in MQTT Explorer.
Gravityz
Posts: 587
Joined: Wednesday 16 December 2015 19:13
Target OS: NAS (Synology & others)
Domoticz version: 2022.2
Location: Netherlands
Contact:

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

Post by Gravityz »

that's weird
you have MQTT on, did you switch off the regular MQTT gateway?

and no localhost but regular ip address of the mqtt server
User avatar
Egregius
Posts: 2592
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 »

I only have this as MQTT hardware:
MQTT Auto Discovery Client Gateway with LAN interface 127.0.0.1

Because zwave-js runs in docker I there put 192.168.2.2 as ip address, the real address of my domoticz server. On 127.0.0.1 it can't connect to Mosquitto.
User avatar
waltervl
Posts: 5791
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 »

And the switch is gone? Or the renaming triggered something?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
tjabas
Posts: 562
Joined: Sunday 11 December 2016 13:51
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by tjabas »

I have 2 aeotech gen5 sticks, one as a backup, i recently started experimenting with home Assistant , im thinking of installing z-wave js on that one, just to make some tests, but what will happen if i run both sticks at the same time, both in domoticz and home Assistant, will this work or should i turn of domoticz while i play with Hass? Could this tests fuck up the z-wave installation on domoticz?
User avatar
Egregius
Posts: 2592
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 »

Hmmm, needs more investigating on my installation. Has been running all night without problems. I started working in zwave-js-ui, updating location etc and all of the sudden it stopped. Had to restart domoticz and the zwave-js docker to get it back. Will try to pin down when exactly it happens.

Addition: I see 2 problems. One is that the updates no longer arrive thru the MQTT autodiscover hardware and a second one is the switch not found error.
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 »

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).
Last edited by mgugu on Friday 23 December 2022 10:03, edited 1 time in total.
User avatar
Egregius
Posts: 2592
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 »

Could you post a screenshot with all settings from zwave-js-ui please?
Lots of confusing settings and I don't know what to set.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests