[SOLVED] Zigbee vs. Zwave performance

Like Chris I am surprised by the volume of energy reports.

Are you tracking your power usage minute by minute?

Does your energy supplier charge you for peak load? If not I am not sure why you would be interested in the KVAH readings but great bragging that you have it. The most interesting thing is this is going into a channel called current? I would expect A to go into the current channel. What device type is node 59?

Before troubleshooting the delays I would recommend:

  1. Turn off the KVAH or A reporting from all of your devices unless you really need it. Unless your power factor or Voltage is way out of range it will tell you a very similar story to your kWh or W reading anyway.

  2. Change the W to report on change if the device supports and turn off periodic reporting. Set a change appropriate to the device. If it is a PID controlled device like an automated coffee machine report on a largish change say 30%. If it is a device that goes into standby set it even higher.

  3. Set kWh to only report every few hours or even only daily unless you need blow by blow usage.

That will then clear the decks so we may be able to see what is going on bu tit will be difficult with all those messages.

As to the premise of the question regarding performance:

In a good environment, a simple direct zwave request will take 20 to 30 ms from send to network ACK. If you are really interested I would recommend that you invest in a UZB-3 and flash it as a zniffer and you will see the actual network calls. The logging on openHAB is very good so you can probably get away without. You just lose sight of a lot of what goes on under the covers.

You need to appreciate that ZWave is one thing at a time. There is no clever buffering or store and forward so that really defines the maximum number of simple requests you will ever get through in the current version.

So at that level, in a well configured network with a lot of direct connections pushing the network beyond a simple message every 50ms is going to end in problems. So that is only 20 messages per second above which requests will definitely start back up in openHAB.

So giving this some tolerance allow 100ms to 200ms average per call and your network should cope and you will rarely notice anything slow with 5 to 10 messages a second. This is why turning off any wasted reporting makes sense.

I don’t run zigbee so how do you think this compares to zigbee? You should never wait very long.

As to this strange issue you have, the first thing is definately to clean up the amount of unnecessary traffic.

Prior to the latest SDK the recommendations where to do exactly what openHAB has implemented and call the zwave stick with some retry options so the issue is probably not openHAB specific andyou would probably have the issue if you tried another software.

The flow in simple terms is:

openHAB calls the controller with options to retry delivery.

Internal to the controller the protocol tries to recover from any issues by retrying upto a maximum number of routes. This is all internal to the zwave controller stick and you will only see this if you get a zniffer. The last thing it tries, if the application sets the option for the call, is an explorer frame that should find anything on your network but is very costly in terms of network utilisation.

All this is going on in the code on your Aeon controller and the fact that the light is behaving like that suggests something in the application code inside the controller is getting in an unusual state for some reason as yet unclear. It could either be from the network side or due to how openHAB interacts with the controller under certain circumstances. If it was the latter I am sure we would all have issues so this probably is not the case.

If all internal attempts fail only then does the call return to openHAB and openHAB can try again or if it takes too long for the stick to come back openHAB will also timeout the call and unlike the released version of openzwave tidy up.

So there is the challenge in troubleshooting this for you. For most of what is happening we are blind as there is no debug output from the actual controller and you do not have a zniffer. We have the log from openHAB that tells us nothing about any issues in the stick or about anything on the network while the stick is in this odd state.

Happy to have a look at a new log when you have turned off all of those reports. If nothing obvious form that it all gets a little more complicated.

Thanks for the info, truly appreciated. I’ve reduced the reporting for those switches to once a day. There is not as much traffic now. I’ll keep an eye on the logs and the behavior of the controls, they always fail when the controller hangs. I’ll post another log if I see more issues. I don’t remember if I changed the reporting values from their defaults, as these devices were some of the first I added about 2 years ago when I first started with OH. In any case, I’ll be more careful about flooding the network with reports.
Thanks again.

I had a hang this morning. I’ve attached the log from that event. There’s a 3 minute gap at the 11:23:31 entry.

What is node 2?

An Aeotec multisensor 6.

1 Like

Latest firmware installed?

https://aeotec.freshdesk.com/support/solutions/articles/6000036562-how-to-update-multisensor-6-z-wave-firmware-

No, I’ll have to update my sensors this weekend.

Worth a try. It should have had a response of no more information so it does look odd and possibly issue is with device firmware.

I’ve disabled command polling for the bulbs of the same type. I had a problem trying to update firmware on the multi sensor, I’ll work on that, but I’ve disabled command polling on both my mains powered multi sensors. I have two others that are battery powered, so I left those untouched. Now, I don’t know if this should make a difference, but I noticed a couple of ‘ignored’ devices showing up in the logs. I’m not even sure what these were, but I added them as things and removed them from the controller in PaperUI. I’ve not noticed any hangs in the last couple of days, so maybe this is progress.
@chris @5iver @robmac

I’ve not had ant issues since I’ve made my changes. The performance of my zwave devices is quite fast now. Thanks for the suggestions.

:wink: good news.

If you monitor the volumes of messages (no more than 10ish a s) and make sure no single device is chattering you should find zwave is a good system.

Possibly Zigbee is better but I have no Zigbee so can not compare the two.

Thanks, I’llkeep an eye on things.