LinuxMCE Forums

General => Users => Topic started by: davegravy on October 13, 2014, 06:20:17 pm

Title: [12.04] OpenZWave Aeon ZStick Issue
Post by: davegravy on October 13, 2014, 06:20:17 pm
I started having an issue this morning with my Zwave setup where I lost communication to my network. In trying to debug I decided to update my install to get the latest changesets which effect OpenZWave.

Following the Zwave log there seems to be communication with the controller as there are polling requests being sent out to all the nodes and responses coming back.

If I send a command to the device via webadmin (e.g download configuration) there is no corresponding action in the log.

Also I'm seeing these which I never noticed before:

Code: [Select]
2014-10-13 12:15:41.262 Info, Node006, Sending (Poll) message (Callback ID=0x13, Expected Reply=0x04) - SwitchMultilevelCmd_Get (Node=6): 0x01, 0x09, 0x00, 0x13, 0x06, 036     10/13/14 12:15:41.287           ZWInterface::OnNotification() : unhandled/ignored notification = 3 <0xb63ffb40>
36      10/13/14 12:15:46.317           ZWInterface::OnNotification() : unhandled/ignored notification = 3 <0xb63ffb40>
36      10/13/14 12:15:51.349           ZWInterface::OnNotification() : unhandled/ignored notification = 3 <0xb63ffb40>
36      10/13/14 12:16:01.389           ZWInterface::OnNotification() : unhandled/ignored notification = 3 <0xb63ffb40>
36      10/13/14 12:16:06.420           ZWInterface::OnNotification() : unhandled/ignored notification = 3 <0xb63ffb40>
36      10/13/14 12:16:11.451           ZWInterface::OnNotification() : unhandled/ignored notification = 3 <0xb63ffb40>
36      10/13/14 12:16:16.481           ZWInterface::OnNotification() : unhandled/ignored notification = 3 <0xb63ffb40>
36      10/13/14 12:16:21.625           ZWInterface::OnNotification() : unhandled/ignored notification = 3 <0xb63ffb40>
x02, 0x26, 0x02, 0x25, 0x13, 0xf3

All loglevels are enabled.

I deleted my zwave device, restarted, went through config, and the parent ZWave device is added but none of the nodes get auto-added to the config.

Any ideas?

Title: Re: [12.04] OpenZWave Aeon ZStick Issue
Post by: davegravy on October 13, 2014, 09:50:28 pm
I couldn't get LinuxMCE to reset my Zstick so I had to do so via a trial homeseer install on another machine.

I re-added one of my nodes to the network and seems to be working now. Will update once the rest of my network is added back.
Title: Re: [12.04] OpenZWave Aeon ZStick Issue
Post by: RayBe on October 14, 2014, 12:43:45 pm
hi davegravy,

In order to get Lmce to reset your controller, you must send a reset command to the ZWave device, with the argument set to "ResetController".
These links discribe in detail how to use the Lmce 12.04 open-zwave implementation:
http://wiki.linuxmce.org/index.php/Open_Zwave
http://wiki.linuxmce.org/index.php/Advanced_ZWave

br,
Raymond
Title: Re: [12.04] OpenZWave Aeon ZStick Issue
Post by: davegravy on October 15, 2014, 07:25:30 am
Thanks Raybe.

I haven't added back all my other nodes yet, so I still just have the one test node in my network.

This morning I couldn't control that test node anymore. From the logs it looks like overnight my CORE decided that the node was dead after several attempts to reach it. I tried a router reload but that wouldn't bring it back. A reboot fixed it however.

The node represents a lamp module which is 5ft away from the Zstick so it shouldn't have trouble communicating to it. I mistakenly deleted the log which shows the point last night where the communication died, but I'll wait to see if it happens again and post the log if it does.
Title: Re: [12.04] OpenZWave Aeon ZStick Issue
Post by: RayBe on October 15, 2014, 12:18:55 pm
davegravy,

Recently i used a extension cable to get my aeon-labs z-stick away from my core, more towards my z-wave network, so there was no interference from my core on the stick.
Before it was plugged in the back of my core. I also positioned the z-stick vertikal.
I found a article online, discribing this as the recommended way.

After some testing i found out that my z-wave network responded much better.
Even a battery operated sensor, which previously responded every now and then, now responce great.

br,
Raymond
Title: Re: [12.04] OpenZWave Aeon ZStick Issue
Post by: davegravy on October 15, 2014, 04:10:44 pm
davegravy,

Recently i used a extension cable to get my aeon-labs z-stick away from my core, more towards my z-wave network, so there was no interference from my core on the stick.
Before it was plugged in the back of my core. I also positioned the z-stick vertikal.
I found a article online, discribing this as the recommended way.

After some testing i found out that my z-wave network responded much better.
Even a battery operated sensor, which previously responded every now and then, now responce great.

br,
Raymond

Hi RayBe,

Thanks for the suggestion, I think it's already vertically oriented however. This test node, as well as the 30 or so others that I have in my house, have been behaving beautifully over the last year in their current config / placement /etc.  I don't know if it is my Zstick that is failing, or recent changes to the LMCE Zwave implementation, a prankster hacker, or something else that is to blame, but something is definitely up.

The test node survived the night this time, and has about 12 hours of uptime now. I'll keep an eye on it.

Title: Re: [12.04] OpenZWave Aeon ZStick Issue
Post by: RayBe on October 16, 2014, 04:54:47 am
Davegravy, FYI,
Please keep in mind that the z-wave implementation in Lmce 12.04 (based on open-zwave) is a lot different than the one in Lmce 10.04.
In comparison, the open-zwave based version has a lot more features and is very well maintained, but is also much pickier when it comes to its zwave-network setup.
Open-zwave needs a very good and stable z-wave network to work good, so if things worked in Lmce 10.04, that does not necessary mean they work as good in Lmce 12.04.

br,
Raymond
Title: Re: [12.04] OpenZWave Aeon ZStick Issue
Post by: davegravy on October 17, 2014, 04:21:38 am
Davegravy, FYI,
Please keep in mind that the z-wave implementation in Lmce 12.04 (based on open-zwave) is a lot different than the one in Lmce 10.04.
In comparison, the open-zwave based version has a lot more features and is very well maintained, but is also much pickier when it comes to its zwave-network setup.
Open-zwave needs a very good and stable z-wave network to work good, so if things worked in Lmce 10.04, that does not necessary mean they work as good in Lmce 12.04.

br,
Raymond

I appreciate it's different but I assumed that the goal is for openZwave to be just as robust if not more robust than the proprietary driver. I don't know where they are in development, and it's totally understandable if the trouble I'm having is a bug that hasn't been worked out or something, but I'm surprised and I guess a bit disappointed if the design of openZwave is such that it requires a more stable network to work well.
Title: Re: [12.04] OpenZWave Aeon ZStick Issue
Post by: RayBe on October 17, 2014, 10:02:33 pm
Hi davegravy,

IMHO your zwave-network should always be at the best it can be.
If it is, open zwave will rock and do a better job than the old driver.
AFAIK the old driver is better at "masking" network flaws, but that doesn't mean it's better performing.
IIRC the log messages you are talking about in your first post are debug messages, implemented by Sambuca, the developer who folded open-zwave into LMCE 12.04.
Maybe he can shed a light on this.

Br,
Raymond
Title: Re: [12.04] OpenZWave Aeon ZStick Issue
Post by: sambuca on October 18, 2014, 11:30:12 am
Hi davegravy,

As RayBe said, the log messages you posted are only informational, and can be disregarded in cases like this.

The Aeon stick can be a bit difficult, and there are a few reports around the net that it can lock up and require a power-cycle to bring back (unplug and replug the stick will do). I have also experienced this. This problem seem to happen on other zwave stacks beside OpenZWave also.
I'm not concluding that this is your problem, but if things lock up, please try to unplug it and replug the stick.

If you have communications problem where a node is considered dead, you should use the new Advanced ZWave page (under Automation in the web-admin) to troubleshoot the issue.
See the wiki page for more information about it.
If a node is dead, the node will have a red color in that page. To bring back a single dead node, use the "Test node" command on the node.

br,
sambuca
Title: Re: [12.04] OpenZWave Aeon ZStick Issue
Post by: rebelkiller on October 30, 2014, 05:50:27 pm
I'm using Aeon ZStick (EU), too.

Under 10.04. Zwave network was reliable, but my motion detector (Fibaro FGMS) did not route any information.

Under 12.04. (openzwave) my FGMS does report information to the router (motion detected, temperature, luminance). But ZWave network in general is sometimes a bit slow and non-responsive (RTT values above 400 and even 1200!). Sometimes nodes become dead.

I too sometimes observed a big time lag when sending commands to the Stick over webadmin, although the RTTs of the adressed nodes are <50, e.g.

If I unplug the ZStick und plug it in again (e.g. when adding nodes), ZWave does not work anymore (no bubbles in webadmin>Advanced>Automation). A router-reload does not bring it back. Only a complete reboot of the core brings it back.
In openzwave my network is far more unreliable. Yet I did not find out the reasons for that.
Title: Re: [12.04] OpenZWave Aeon ZStick Issue
Post by: Marie.O on October 30, 2014, 06:43:00 pm
Most of the time, the openzwave based device template makes Z-Wave network errors more obvious. If your Z-Wave network is working worse under 1204, check your Z-Wave networks routing, modify the placement of your USB dongle etc.
Title: Re: [12.04] OpenZWave Aeon ZStick Issue
Post by: tompin2 on December 31, 2014, 03:36:07 pm
Hi to all, this is my two cents,

Since I migrated to 1204 I have no zwave available.  The aeonlab zstick is behaving as rebelkiller mentioned.  I was able to do a resetcontroller and wipes all out if I take the zstick out and plug it back again after adding at least one light, LMCE doesn’t detect any light added, although, if I plug the zstick to a windows computer with a testing software, I can see the light added and it works.  I’ve seen that when this "lock up" happens LMCE also reports that the controller is not responding and if I use "top" at the console I see a zwave app taking 100% cpu.  The only way around this is to reboot the core (killing the app does not make the magic),  If I go to webadmin devices/core/zwave it does not appear the ZWave Embedded lights Interfa, only    ZWave Embedded Climate and security.
 I have very little experience on troubleshooting but I'm working my way to read other post's and learn to read the logs in order to be more helpful to the lmce community.  Not to put salt on any wound, this same setup with 1004 had no issues at all, but 1004 had issues in other ways that make me migrate anyways hahahahahaha.  Any hints on the logs Ill deeply appreciate it
Cheers,
T
Title: Re: [12.04] OpenZWave Aeon ZStick Issue
Post by: Marie.O on December 31, 2014, 05:48:48 pm
Did you do a new install to 1204 or did you upgrade your install from 1004
Title: Re: [12.04] OpenZWave Aeon ZStick Issue
Post by: tompin2 on January 01, 2015, 03:35:06 pm
Did you do a new install to 1204 or did you upgrade your install from 1004
Hi Posde,
Happy New Year!.  It was a new install.  Is it possible with the zstick s2 to add nodes without taking the usb out, via api mode?.  It seems to be a issue with OZW about it. Check this out, issue 111 from OpenZwave page.  https://code.google.com/p/open-zwave/issues/detail?id=111&colspec=ID%20Type%20Status%20Priority%20Milestone%20Owner%20Summary%20Modified
It appear that this 100% issue still a bug in the implementation.
Cheers,
T
Title: Re: [12.04] OpenZWave Aeon ZStick Issue
Post by: phenigma on January 01, 2015, 08:06:19 pm
Hey tompin2, it is possible to add nodes without pulling the stick.  The recommended method is with the Aeon Labs minimote (works great).  But you can also manually initiate the add from the webadmin and then pair the device.  OZW does still have quite a few issues in it, it will continue to get better and we will continue to update the driver as the OZW folks push new releases.

I had to completely relocate my zstick for OZW to be happy with my network.  The OZW folks also recommend running the stick from a powered hub, presumeably to avoid power glitches or something (I'm not sure).

J.
Title: Re: [12.04] OpenZWave Aeon ZStick Issue
Post by: sambuca on January 01, 2015, 09:23:36 pm
tompin2,

when the lockup happens, try to unplug and replug the usb dongle - that is the simples way I have found to fix the problem once it has occured.

To prevent it from happening in the first place, a good zwave network and a powered usb hub, as phenigma also mentioned, is the key. (one or the other might do it for you - I did both and have not had any major problem since). See our zwave page for information about troubleshooting the zwave network.

br,
sambuca
Title: Re: [12.04] OpenZWave Aeon ZStick Issue
Post by: tompin2 on January 06, 2015, 05:30:12 am
Thanks sambuca  and Phenigma,

For testing purpose I added with the stick removed (like before) just one dimmer close to the core.  Installed the USB, passed the lock up by removing and adding again.
I did not saw any on the orbiters but I did saw on the webadmin that a light was added.  I configure it and assigned to the proper room and it is responding fast and stable.
So, I'm not removing that USB ever again from the core.  I ordered the minimote as Phenigma suggested, so Ill take some time to get here, so here is my question.. How to add the node manually?
Do I go to webadmin, core devices, find zwave evice, click on send command to device, add node and leave all blank, but will the usb stick reach a switch that is far away?, I don't think that it will happen.  So how do I know the port/channel number of the other devices I want to add?

Cheers,
T

tompin2,

when the lockup happens, try to unplug and replug the usb dongle - that is the simples way I have found to fix the problem once it has occured.

To prevent it from happening in the first place, a good zwave network and a powered usb hub, as phenigma also mentioned, is the key. (one or the other might do it for you - I did both and have not had any major problem since). See our zwave page for information about troubleshooting the zwave network.

br,
sambuca
Title: Re: [12.04] OpenZWave Aeon ZStick Issue
Post by: sambuca on January 06, 2015, 09:01:13 am
You can add a node manually using the description you wrote or from the Advanced ZWave page (under the Automation menu in the web-admin). There is no need to know the port/channel number, these are assigned by the controller when you add a new device.

br, sambuca
Title: Re: [12.04] OpenZWave Aeon ZStick Issue
Post by: tompin2 on January 16, 2015, 01:39:25 pm
Dear All!  Minimote was the solution for adding nodes.
Step by Step:
1. Reset Controller as per wiki page
2. In my case, pull the stick and join the minimote the normal way (press on the minimote the Join button, blue led starts flashing, then press the add node on the stick and they do their flashing led show letting you know that the connection was properly.  Get the stick back in.
3. Router reload.  If it says that the controller is not responding. Kill the zwave app that it eating 100% cpu and Router reload!.
4.  Go to the closest light switch and add it with the MINIMOTE, by pressing the + button.  Press the paddle of the light switch, wait for a steady blue led on the minimote and and pay attention on any of the orbiters.  If not, just give it some time and to a.
5. Router Reload, on the router reload you will see that a zwave item was found and it ill install it.  There will  be nothing else.  Either you go to the setup link under any orbiter or via webmin to set up the type of light you have and on which room it belongs.

You dont have to do lights one by one.  I decided for testing purpose only to do at least 3 and test them using the webadmin/ wizard/ lights and on and off to make sure.
Later I added them in groups for a total of 10 right now.  A mix of dimmers, single switch and multiswitch.
.
Problem faced:  After adding all the switches, the light are unresponsive!.  I guess I'm facing a zwave network issue.  I try to go to the advance zwave page but consistently a layer is set with one of the nodes that does not allow me to see the page, I cant find the way to make that ge switch window to go away .  See picture attached
I would like to see how the nodes are connected, maybe the routes are not correct.  See that there is one of the nodes that is not responding.

Cheers,
T
Title: Re: [12.04] OpenZWave Aeon ZStick Issue
Post by: phenigma on January 16, 2015, 11:22:21 pm
Good news!  For the info screen I click on the title and the window goes away.  It's a little finicky I've found, and I've only got it working in Firefox, never had it work in chrome.

J.
Title: Re: [12.04] OpenZWave Aeon ZStick Issue
Post by: tompin2 on January 17, 2015, 02:01:03 am
Good news!  For the info screen I click on the title and the window goes away.  It's a little finicky I've found, and I've only got it working in Firefox, never had it work in chrome.

J.

Phenigma!, you are a Lmce god!.  Firefox made the trick!.  It loaded perfectly, so just to share, this behavior of the persistent layer is only present in Chrome and Explorer.
I will continue with the troubleshooting, find attached my network pattern.  More or less distributed the way they are installed.  Pay attention that port 14 and 13 are connecting to the network using 8.  14 and 13 are a dual circuit switch so maybe something is wrong with 8 not communicating properly, but I would like to know why it is not using the route directly to 1 since is quite close. 

Cheers,

T
Title: Re: [12.04] OpenZWave Aeon ZStick Issue
Post by: phenigma on January 20, 2015, 06:33:25 pm
I'm glad I could help initially, unfortunately I am not a zwave guru.  First thing would be to bring up the pop-up on the red devices and choose 'Test'.  That usually restores a dead node, although I think that may be done automatically at certain intervals now, I don't recall for sure.  Sambuca may be able to offer better insights into that.

J.
Title: Re: [12.04] OpenZWave Aeon ZStick Issue
Post by: sambuca on January 23, 2015, 09:46:33 am
Yes, it should try to revive dead nodes automatically now, but it is kind of an experiment really.
If it improves things, great, but it could also introduce additional delays.

br,
sambuca
Title: Re: [12.04] OpenZWave Aeon ZStick Issue
Post by: tompin2 on April 26, 2015, 09:31:23 pm
Hello to All,

This is a follow up, it took me some time to get back to trying stuff.
I finally got things working and learning from the mistakes and also from the lack of experience! aka Rookie!
Problems faced:
Zstick issue with openZWave still gets 100% cpu if you unplug it and plug it again for lights searching, so if you want to get it all working without many issues. GET the MINIMOTE!
So first:
Go to each switch with the stick and the minimote an be sure they are not connected, so remove them from the network.
Otherwise, you will face two lights going on at the same time because they have the same ID on the network (happened to me).  So go ahead and remove every single switch with the stick and the minimote too, just to be sure !
After you do that, then plug the zstick on the core, to the ResetController magic, follow the wiki procedure and add the minimote.
Plugging the zstick to a powerded usb hub, DOES help!. Don't cut that corner.
Once you see on the orbiter that a new zwave device is connected (minimote) and you see it at the core devices as controller, you are almost done.
In my case, after adding all the switches, I only saw the pop up on the orbiter that a new devices was added, nothing else happened.  I had to quick reload, and wait to really finish installing and then go to the setup wizard and go to lights, you will see the new light or lights added.
So far I have successfully added:
Single light switch, dual load switch (leviton vrcs2 2 buttons), dimmer switches also.

What is next?
Motion sensors
Kwikset locks
garage door opener and whatever zwave gadget i can!

Cheers,

T




Title: Re: [12.04] OpenZWave Aeon ZStick Issue
Post by: davegravy on April 27, 2015, 02:36:12 pm
Quote
What is next?
Motion sensors
Kwikset locks
garage door opener and whatever zwave gadget i can!

Let us know how it goes with the Kwikset - I've been eyeing these for a while but support hasn't been there.
Title: Re: [12.04] OpenZWave Aeon ZStick Issue
Post by: rebelkiller on July 29, 2015, 10:29:23 pm
Im using ZStick, too.

You must disable polling! Device gets stuck from time to time. Especially when it has to deal with a lot of messages it will get stuck. Plugging out an plugging in helps (mostly).

Aeon support recommends a maximum of 1 per minute (!).