Since a couple of weeks/months, we are in the process to redo 5 rooms @ home (kids are moving from room to another room) and of course, I would need to redo a bunch of device name and room name in Zway..
Is there an easy way to tell openLuup to completely start over fresh without having to delete/rename them one by one in openLuup ?
I hope this is the correct forum – apologies if not!
I have a Raspberry Pi3 with a Razberry Z-Wave card installed. I have installed the Z-Way software and have successfully included a Fibaro Z-Wave switch on the Z-Wave network. I can toggle the switch on and off successfully from my laptop through port 8083 of the Raspberry Pi3.
On the same Raspberry Pi3 I have installed openLuup on which I have installed the Z-Way plugin. I can access this through port 3480 on the Raspberry Pi3 from my laptop.
Here is where I have come to a dead stop. How do I get access to the Fibaro Z-Wave switch from the openLuup application? I can find no documentation that tells me specifically how to do this.
Any help would be greatly appreciated.
_John.
Master Branch: 2020 Release 4.5
Roll-up of recent changes in development branch.
I have an odd issue which seems to be only for Fibaro wall plugs. They come in to Z-Way with two "electric meter" entrys, one "Power" meter and a couple of alarm entrys. In addition to the switch that is.
One of the "electric meters" is KWh and the other one is seemingly Watts, but it stays at 0/-1w. The "Power" meter shows the Watts used right now.
When these come into openluup, the wrong electric meter is selected for displaying the Watts, is there any way to manipulate which one openLuup uses? I see that the sub channel for power also is transferred, but it isn't in the data Veraflux is transmitting to my influxdb..
Haven't used the watts reading for anything before now, now i want to estimate when my dryer is done based on power usage. 🙂
Having some trouble getting the Fibaro TRV device working with the ZWay bridge. The device works in the ZWay (Zwave.Me) Smart Home GUI, and creates a number of devices in OpenLuup, some of which appear to have the right variables in it. Changing the XML and JSON files makes no difference.
I also tried creating a separate child device for Parameter 67 (using the gui for the ZWay bridge, see below), and setting the XML/JSON types for that device (like I've havd to do for a few other devices). This results in a device that correctly displays the TRV setpoint, but chaning the setpoint in the OpenLuup gui does not result in anything being transmitted to/by ZWay.
20490 49-0 D_ComboDevice1.xml zNode #49-0
49-0-113-8-12-A
49-0-113-8-13-A
49-0-113-8-14-A
49-0-113-8-15-A
49-0-113-9-3-A
49-0-64
49-0-67-1
20491 49-1 D_ComboDevice1.xml zNode #49-1
49-1-113-8-12-A
49-1-113-8-13-A
49-1-113-8-14-A
49-1-113-8-15-A
49-1-113-9-3-A
49-1-64
25031 49-1-67-1 D_Heater1.xml Radiator Bedroom
20492 49-2 D_ComboDevice1.xml multi #49-2
49-2-113-8-10-A
49-2-113-8-11-A
25030 49-2-49-1 D_TemperatureSensor1.xml Radiator Bedroom
I expect this document to be dynamic based on inputs from people who try but did not want to completely rewrite it here:
Z-Way/README.md at master · rafale77/Z-Way Z-Way/README.md at master · rafale77/Z-WayZway plugin for openLuup . Contribute to rafale77/Z-Way development by creating an account on GitHub.
Nearly there with the migration ..
Is it ok to use older device files or do they get updated from time to time?
Now that a fresh openLuup is up and running and connected to Zway where's the best place to source device files without vera? I probably have them on another openLuup install but not 100% which ones to copy over.
One of my wall plugs died yesterday, so i had to delete it without exclusion. When I did this, the openluup device switched to this:
7d1a5d39-cfdd-4c25-b2a2-79311736615f-image.png
And some .js issues arrived at the bottom of the screen:
1935b845-ea64-4576-8d40-04489ae10fb8-image.png
What to do?
I've finally gotten the stuff to work together. Now - before I migrate all the vera devices, how do i use this?
How does the variables NameDevices and CloneRooms work? (is there a manual or description of the plugin?)
CloneRooms seems obvious, but is that the best way to go when I have more bridges?
I have an old Z-wave.me wall controller that I still use for turning the espresso machine on and off. The controller controls an Aeotec Micro Switch that for the moment is still on my Vera.
The wall controller has always been a bit tricky to work with on Vera. On my old UI5 VeraLite I managed to get it associated to the switch.
On the UI7 Vera I never got that to work, instead I could use it as a trigger in Reactor to detect when sl_SceneActivated was 1 or 0.
I have moved the wall controller to Z-way and there it is included as it should.
a30b06dd-1f3c-4ca6-9966-b0a6f183de04-image.png
Compared to when it was connected to the Vera it has proper on/off buttons so that it can be controlled from the Z-way GUI.
The command classes are the following:
68a54e6b-b240-40b2-95bb-9696bf7789cf-image.png
In OpenLuup it still shows up as it did in the Vera, i.e. only showing battery.
985acfb7-6af9-4cf0-a426-79d4358baf6e-image.png
Is it possible to change device type so that it get the right properties in OpenLuup?
At the moment it does not have any useful properties except for battery level. It e.g. lacks the sl_SceneActivated variable.
Another step would then be to move the Aeotec switch to Z-way and to then associate the wall controller to the switch in Z-way. It seems as if this can be done in the ExpertUI.
//ArcherS
If a zway device have been manually deleted in openluup, What would be the right way to recreate it, or re-sync with the z-way-server?
Just finished migrating to Zway, Although there are some devices that are being detected as a dimmer when in fact are Shutters.
What would be the best route to properly change how this devices are being detected by the ZWay plugin on openluup?
2f2566ba-1bb8-436e-a107-363bb66a7436-image.png
1a188194-faed-4d5c-8dc8-7a21914209fb-image.png
Hi AK,
I must be missing something but I am having now some devices fail on the bridge due to them running out of battery. Upon battery replacement, they function properly on z-way-server but the failure remains over the bridge. The failure shows up on the parent device and it says that a specific command class has failed. Looking at the return API json, it should not return any command class level failure however so I am not sure where the bridge gets its failed state from...
edit: Nevermind, I figured it out. It is a gap in data alignment between the different z-way APIs. The zwave and JS API got the update that the device recovered but not the smarthome API. Pausing and restarting the zwave app on z-way fixed it.
I noticed the change when I switched from the RaZberry to UZB (During the switch all devices moved to the Room 101 briefly, maybe that had something to do with it). Any idea why this would have happened? Can I easily change them all back to enabled? Also, what exactly does this attribute do? I only noticed because none of my z-wave devices were showing up in Imperihome and when I set the "disabled" attribute back to 0, the device shows up. Thanks.
So I started experimenting by moving some of my wallplugs and power switch zwave devices over from VeraPlus to Z-Way.
In Z-Way this results in different elements for switching, Watts and kWh. Some even have Volts which I never saw on Vera.
But using the Z-Way plugin in openLuup only the Switch element is visible and all other elements of the zwave node are not.
I don't really know to much about Z-Way or the plugin, but am trying to learn on the run.
Maybe someone can give me some pointers what and where to look for to solve this?
Why Migrate to Z-way from vera and how?
-
@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
-
@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 ...)
-
@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.
-
@CatmanV2 said in Why Migrate to Z-way from vera and how?:
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
Check out this post with some discussion.
-
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. -
@rafale77 said in Why Migrate to Z-way from vera and how?:
The scene migration is the most difficult are work intensive part (both the action device ID and triggers) and I know @therealdb is thinking hard on how to make it easier.
My plan at the moment is to backup the scene's code, via @rigpapa's LuaView, and then write some code to inspect all the triggers and generate some code around it. Since I have transitioned to watches for new scenes, I have "only" about 60 scenes to migrate to watches. My idea is to place all the code into LUA startup code and then migrate to modules, when I'll have more time. 90% of my scenes are either time based or easily translated (tripped, untripped, light turned on/off, usage above or below a certain threshold) and I already have most of them just calling the main module's code.
So, maintain the very same device ID is quite crucial to accomplish this.
-
Thanks, the UZB is actually cheaper here. Not sure that includes a licence.
So what's the point of plugging it into the Vera?
My plan is looking like this (I'm more than happy to document as much as I can for future noobs)
- Buy Pi3B+ and SSD + UZB
- Set up Raspbian, Open Luup, Z-way with bridge plugin and , AltUI and Reactor
- At a rate that I'm happy with move Reactor instances to Open Luup. Each Reactor will need to be either re-created or restored and the device numbers modified.
- Any new Devices and Reactor instances will be added to the Pi / OpenLuup
- Migrate devices to the UZB stick.
Is this making sense as a softly softly approach.
Additional question, can I migrate one device at a time from Vera to UZB without unpairing / pairing?Cheers!
C
-
Was editing my previous post with additional info...
If the uzb does not mention a license then it probably does not have one.
Plugging it into the vera enables you to transfer all your vera zwave dongle data on it. This means no need to exclude-include or change anything to your devices.My setup is a bit particular where I killed everything "mios" on the vera and made it run essentially like rPi. I then plug the uzb on it and forward its usb port over my network to the z-way-server/openLuup VM. I therefore don't need an additional rPi.
You could run openLuup on anything. It doesn't need to be a pi. I actually considered running my openLuup/z-way-server VM directly on a cheap mini PC which I managed to power through POE.My suggested plan to take these in steps:
- Install openLuup somewhere on any machine (again does not need to be a rPi but it can be) with verabridge.
- Move all your plugins and scenes to openLuup with using the helper features of the bridge. See how you like this. It should stabilize the vera to some degree. (I ran like this for a couple of years)
Then if reliability is still an issue, - get a uzb plug it to a machine, can be the same one, and install z-way-server.
- plug the uzb on the vera to migrate your zwave network on the uzb and then plug it back to where the z-way-server is
- Install the z-way bridge on openluup and connect them together. Migrate scenes.
-
Yeah, I only mentioned Pi because I like them and I don't have anything else that I want to add it to.
Couple of Qs
3) This is the machine running Openluup?
4) Will this change the device IDs? I ask because I intend to have no scenes, and if all the IDs change (again) then it's a chunk of work to fix all the reactors.Thanks (again)
C
-
- Yes I run z-way-server and openluup along with all my echo and siri bridges on the same machine which is a ubuntu VM but it could be really anything from rPi to a mini PC.
- Yes it will and it the part which requires the most work as I said. I have about 150 scenes with a vast majority of them being device triggered. I had to changed everything to variable watch and all their IDs along with that. Likewise the actions from the scenes all had to be changed. I would say 90% of my time spent on the migration was on this part. The rest was reasonably straightforward.
-
@rafale77 said in Why Migrate to Z-way from vera and how?:
Yes it will and it the part which requires the most work as I said. I have about 150 scenes with a vast majority of them being device triggered. I had to changed everything to variable watch and all their IDs along with that. Likewise the actions from the scenes all had to be changed. I would say 90% of my time spent on the migration was on this part. The rest was reasonably straightforward.
Hmm so the device IDs will be different for a reactor on on Openluup, then different again when I move them to the UZB.
Is it possible to move one device at a time without unpairing from Vera / pairing with UZB?
C
-
You can make the reactor device IDs the same by manipulating them the same way you would on a vera (it is an attribute). What will be different will be the device IDs of the zwave devices.... When moving to openLuup, the zwave devices will be come bridged and will have an added “prefix” of 10 sending them in the 10000+ range.
You could alternatively try to add z-way as a secondary controller first which would make the same zwave device show up twice on openLuup: one through the vera path and the other through the z-way path.