Why Migrate to Z-way from vera and how?
-
I'm not furloughed, and have a couple of new projects on the boil, so don't actually have a great deal more time than before (and my students still want on line classes so even my evenings are used some of the time)
<Touches wood> Currently my set up is stable. Would love a gradual migration. I can buy the kit but it seems a bit big bang.
C
-
So to get this straight in my own mind can I
- Go buy a Pi 3 B+ and SSD
- Install Debian / OpenLuup / Reactor
- Make the Vera Z-wave dongle available to OpenLuup
- 'Migrate' all my reactor instances 'off' Vera onto the Pi
- Use the Pi to create and new Reactors and replace the final couple of scenes I have
- Then think about migrating all my devices to a new Z-wave hardware.
Trying to make this a small steps as possible
Cheers
C
-
So to get this straight in my own mind can I
- Go buy a Pi 3 B+ and SSD
- Install Debian / OpenLuup / Reactor
- Make the Vera Z-wave dongle available to OpenLuup
- 'Migrate' all my reactor instances 'off' Vera onto the Pi
- Use the Pi to create and new Reactors and replace the final couple of scenes I have
- Then think about migrating all my devices to a new Z-wave hardware.
Trying to make this a small steps as possible
Cheers
C
@CatmanV2 said in Why Migrate to Z-way from vera and how?:
- Make the Vera Z-wave dongle available to OpenLuup
If, by this, you mean using openLuup's VeraBridge plugin to access its existing ZWave devices, then, yes, I think you have the sequence correct.
It sounds like a lot of steps, but they're not too difficult... I know almost nothing about Linux / Debian, but seem to have managed thus far.
AK
-
So to get this straight in my own mind can I
- Go buy a Pi 3 B+ and SSD
- Install Debian / OpenLuup / Reactor
- Make the Vera Z-wave dongle available to OpenLuup
- 'Migrate' all my reactor instances 'off' Vera onto the Pi
- Use the Pi to create and new Reactors and replace the final couple of scenes I have
- Then think about migrating all my devices to a new Z-wave hardware.
Trying to make this a small steps as possible
Cheers
C
@CatmanV2 said in Why Migrate to Z-way from vera and how?:
So to get this straight in my own mind can I
- Go buy a Pi 3 B+ and SSD
- Install Debian / OpenLuup / Reactor
- Make the Vera Z-wave dongle available to OpenLuup
- 'Migrate' all my reactor instances 'off' Vera onto the Pi
- Use the Pi to create and new Reactors and replace the final couple of scenes I have
- Then think about migrating all my devices to a new Z-wave hardware.
Trying to make this a small steps as possible
Cheers
C
Pretty much the exact steps I took. Steps 1-3 I had done maybe a year ago. At that time most my logic was in Pleg so I needed to move everything to reactor. Step 4 was the decision maker to completely ditch Vera. Once I did that, no more vera reloads where I was left in the dark because some logic did not execute or a light did not turn on. Step 6 I just did over the past 2 weeks and is well worth the effort. I feel like I have control over my z-wave network now with the "expert ui" of z-way.
-
@CatmanV2 said in Why Migrate to Z-way from vera and how?:
Thanks. So can I backup Reactors from Vera and restore to OpenLuup?
C
Yes. But you will have to manually change the device numbers of devices used in the Reactors. For example, device 25 on vera will be 10025 on openluup through the VeraBridge. Then again, with z-way, the device numbers will change. Z-way uses node # so If device 25 on vera has a node ID of 12, its z-way device number will probably be 20120.
-
I've not switched yet, but I was thinking about a script that could:
- get the device ID from the Vera (using nodeid and parentid)
- alter the device number in openluup+Zway, in order to reflect the old number
- migrate scene accordingly
I'm running openluup+Zway (as secondary) since a couple of weeks, and this should be doable, from my finding. I just have to figure it out a plan for scenes.
-
To move from vera bridge to zway, I wrote a script that retrieves the backup reactor file, finds all devices that are referenced in the 10000's, determines there node ID#, generates z-way device numbers in the 20000's based on the node id, and provides a new reactor backup file with the 10000's replaced with the new 20000's. It worked pretty well and saved me a lot of time. Some devices were not fully correct as child device numbers do not seem to be standard. I will share if somebody wants it but I am hesitant because it is not full proof and I am not an expert in lua.
-
@akbooer the pain for me is in the triggers, since scenes are mainly calling code with an indexed table for devices. I could probably just migrate them to variable watches before. We'll see.
I've been using the new openluup console and I must say I like it a lot!
-
Well all my temperature sensors dropped out again last night at about 2120 local. I should have worried when I got a 'Device is responding again' notification for the Fibaro Universal when I never got one that it wasn't responding.
It sounds like simpler might be:
- Buy the Pi and the SSD
- Install Raspbian, Openluup, Z-wave bridge
- Restore and edit reactors
- Kill all the remaining scenes (for me this is probably not an issue and in fact would be a good place to make sure Reactor is working on Open luup)
Now at that point, vera is doing really nothing at all other than accepting Z-wave commands from OpenLuup?
C
-
@akbooer the pain for me is in the triggers, since scenes are mainly calling code with an indexed table for devices. I could probably just migrate them to variable watches before. We'll see.
I've been using the new openluup console and I must say I like it a lot!
@therealdb said in Why Migrate to Z-way from vera and how?:
the pain for me is in the triggers
Yes, I know. I never implemented the Vera-style triggers because their implementation was so flawed (along with the definition of events, etc.) AltUI Device Variable Watches work fine, but migrating the would require some editing of the WatchedVariables AltUI data structure (and it hardly seems worth it.)
I've been using the new openluup console and I must say I like it a lot!
Thanks for that – glad it works well for you! I have a plan for native openLuup triggers (easily defined from the openLuup console.) Their implementation is the main area where openLuup is deficient (along with the real-time updating of the devices page, and ...)
-
Well all my temperature sensors dropped out again last night at about 2120 local. I should have worried when I got a 'Device is responding again' notification for the Fibaro Universal when I never got one that it wasn't responding.
It sounds like simpler might be:
- Buy the Pi and the SSD
- Install Raspbian, Openluup, Z-wave bridge
- Restore and edit reactors
- Kill all the remaining scenes (for me this is probably not an issue and in fact would be a good place to make sure Reactor is working on Open luup)
Now at that point, vera is doing really nothing at all other than accepting Z-wave commands from OpenLuup?
C
@CatmanV2 said in Why Migrate to Z-way from vera and how?:
Now at that point, vera is doing really nothing at all other than accepting Z-wave commands from OpenLuup?
It's actually still using the Luup layer to translate between HTTP and ZWave commands, but in this mode it seems to stay up for reasonable amounts of time. You'll still suffer from the fundamentally flawed ZWave stack implementation, though, as I'm sure @rafale77 would agree.
-
Hmmm so only a partial solution.
Razberry or USB? Razberry is about half the price and would fit nicely on the Pi?Any other benefit to the dongle?
C
-
Thanks @kfxo! I think that thread was an important piece of the puzzle.
@CatmanV2, I too have pondered between the two. Here is my assessment:
uzb pros and cons:
UZB is more flexible as you are not dependent on a pi to interface. You can use any machine with a usb port. Heck you can even use a vera as I am to send the serial port over IP.
a UZB is needed if you want to "migrate" your entire network since you won't be able to plug the razberry HAT on the vera. I can imagine running socat on the vera to import the port from a rPi but have not tried it.
the UZB has a better RF antenna.
It is more expensive with a z-way license than a razberry
It is a little more prone to "bricking" through firmware upgrades because of the USB intermediary interface requires a bootloader which complicates things. Not a big problem with the zwave.me uzb but more significant on the Sigma Design reference design one.As you probably already know from my history, I don't believe the new owners of the vera have any interest in making the old vera work although I think it could. They are focused on their new platform running on downgraded hardware, spreading the reliability issue from the software to the hardware and extending a long history of poor performance and scalability, problems openLuup has helped to significantly mitigate but couldn't completely eliminate.
I tried everything I could to keep the vera running and extend its life hoping that the new platform could be a breakthrough, peeling it down layer by layer hoping to get rid of the culprit and short of that at least lighten up the load on the vera to prevent it from crashing.
So it is just a matter of time before the vera runs into problems. There are too many ways for them to happen and they all stem from the core luup engine...Anyways... This solution we tried (openLuup+Zway) actually works marvels. It enables migrating your zwave network with minimum pain and configuration, avoiding having to rebuild and eliminate all the surprises, maintenance and other voodoo required to make the vera work and even enables further optimization and control of the network if desired. WAF has increased and I have more time!
The scene migration is the most difficult and work intensive part (both the action device ID and triggers) and I know @therealdb is thinking hard on how to make it easier.