LinuxMCE Forums

General => Users => Topic started by: valent on December 13, 2010, 10:00:08 pm

Title: ZWave wizard fail on latest LinuxMCE snapshot
Post by: valent on December 13, 2010, 10:00:08 pm
Hi guys,
installed latest LinuxMCE 8.10 snapshot over the weekend but still after two days can't get any ZWave device integrated into LinuxMCE.

I take my Aeon Labs Z-Wave usb stick and reset it, then go to HomePro ZDW232 dimmer light switch, include it, and plug stick back in LinuxMCE.

Wizard comes up but none of the buttons is responding, and after a while wizard exits and I get back to main LinuxMCE screen but I don't see any light added and there wasn't a step where LinuxMCE turns on/off light.

Any ideas why?

Anybody using ZWave successfully with latest LinuxMCE snapshots?

The most frustrating part is that I don't know how to troubleshoot this issue and find root cause. Are there command line tools for Zwave troubleshooting? If there is please point me to forum post or wiki page that explains it. If there is no wiki page I can help create it so other users also benefit.

If some of senior devels wants I can give you ssh access to my linuxmce box so you can do direct troubleshooting if you want.

Cheers,
Valent.
Title: Re: ZWave wizard fail on latest LinuxMCE snapshot
Post by: tortho on December 13, 2010, 10:03:11 pm
I had to re-run and remove and re-include my devices on my latest re-install of 08.10... don't know why...
First install it worked great.
Also have the Aeon z-stick
Title: Re: ZWave wizard fail on latest LinuxMCE snapshot
Post by: hari on December 13, 2010, 10:33:32 pm
the wizard is broken and thom did not yet find time to fix it

br Hari
Title: Re: ZWave wizard fail on latest LinuxMCE snapshot
Post by: valent on December 13, 2010, 11:24:10 pm
Ok, I feel less stupid now that I know it is a knows bug and it is not me that is the issue :)

What was the last snapshot with working ZWave wizard? Which one should I download and install to have working ZWave?
Title: Re: ZWave wizard fail on latest LinuxMCE snapshot
Post by: hari on December 14, 2010, 12:22:53 am
You don't need the wizard for working zwave
Title: Re: ZWave wizard fail on latest LinuxMCE snapshot
Post by: valent on December 15, 2010, 04:51:06 pm
After reseting ZWave dongle and doing exclusion and inclusion again for my to light switches after plugging it in I got them to work. Now wizard didn't get stuck at first screen and in other screen I got asked in which rooms are these switches. Now I have them integrated in LinuxMCE.

But is there some low-level console linux tool that can send some queries to ZWave dongle and get some replies to see which devices are connected currently and some other info?
Title: Re: ZWave wizard fail on latest LinuxMCE snapshot
Post by: hari on December 15, 2010, 04:54:02 pm
enable log levels 36, 40 and 41. This plus the web admin (send DCE command to the Z-Wave device) is sufficient for most situations.

br Hari
Title: Re: ZWave wizard fail on latest LinuxMCE snapshot
Post by: valent on December 19, 2010, 12:09:48 pm
I'm rebuilding my LinuxMCE again, so can you tell me how? Is it somewhere in web ui menues? I searched for log levels in our wiki but didn't find any mention of them :(
Title: Re: ZWave wizard fail on latest LinuxMCE snapshot
Post by: Marie.O on December 19, 2010, 12:39:48 pm
Log levels are defined in /etc/pluto.conf
Title: Re: ZWave wizard fail on latest LinuxMCE snapshot
Post by: klovell on February 14, 2011, 07:20:08 pm
After reseting ZWave dongle and doing exclusion and inclusion again for my to light switches after plugging it in I got them to work. Now wizard didn't get stuck at first screen and in other screen I got asked in which rooms are these switches. Now I have them integrated in LinuxMCE.

But is there some low-level console linux tool that can send some queries to ZWave dongle and get some replies to see which devices are connected currently and some other info?

I don't know if you still need this or if you can use the windows version but this is what I used to reset and perform exclusion, and inclusion and it worked very well.  I can't remember where I found this thing as it was after about an hour of searching so I'll just post up the program itself
Title: Re: ZWave wizard fail on latest LinuxMCE snapshot
Post by: l3mce on February 15, 2011, 08:00:45 pm
For the record, if you let the screen sit for a few minutes before hitting "next" it does not crash you out. Also only hit that next button once. It is not an immediate reply... but it goes forward.
Title: Re: ZWave wizard fail on latest LinuxMCE snapshot
Post by: totallymaxed on February 15, 2011, 09:41:56 pm
Hi guys,
installed latest LinuxMCE 8.10 snapshot over the weekend but still after two days can't get any ZWave device integrated into LinuxMCE.

I take my Aeon Labs Z-Wave usb stick and reset it, then go to HomePro ZDW232 dimmer light switch, include it, and plug stick back in LinuxMCE.

Wizard comes up but none of the buttons is responding, and after a while wizard exits and I get back to main LinuxMCE screen but I don't see any light added and there wasn't a step where LinuxMCE turns on/off light.

Any ideas why?

Anybody using ZWave successfully with latest LinuxMCE snapshots?

The most frustrating part is that I don't know how to troubleshoot this issue and find root cause. Are there command line tools for Zwave troubleshooting? If there is please point me to forum post or wiki page that explains it. If there is no wiki page I can help create it so other users also benefit.

If some of senior devels wants I can give you ssh access to my linuxmce box so you can do direct troubleshooting if you want.

Cheers,
Valent.

As Hari has already said you dont need the Lighting Wizard at all for setting up/configuring ZWave...in fact its the worst way to setup your ZWave devices as you cannot currently use SIS mode in the Wizard at all;

Follow the SIS instructions on the Wiki on setting up your ZWave;

http://wiki.linuxmce.org/index.php/ZWave (http://wiki.linuxmce.org/index.php/ZWave)


All the best


Andrew
Title: Re: ZWave wizard fail on latest LinuxMCE snapshot
Post by: klovell on February 16, 2011, 04:10:29 pm
I saw those instructions but I couldn't use them so I went looking for other ways to reset the z-stick.  When I first got the stick I joined one switch to it as a test and just plugged it into the core, the wizard launched and life was good.  I then joined all other switches to the stick and linuxmce just added them via the wizard.  I then reinstalled my core ( a couple weeks later) and I've been having trouble ever since.  I pressed the reset button and held it to reset the stick, when lmce started detecting devices I plugged it in, the wizard launched then 30 seconds later the router reloaded before I could finish configuring everything else.  That's all it does, as soon as I plug in the stick(inside or outside of the setup) the wizard starts then the router reloads, over and over and over and over, until finally the core becomes none responsive to everything except the shutdown command from either the power switch or ssh.  The machine doesn't stay stable long enough for me to follow the wiki directions.  I thought it was the installation so I dl the latest snapshot, same thing.  I download the new latest snapshot, same thing. I'm out of dvds now so I did the Internet install, same thing.  I've tried hardware reset, software reset with this program I found, and I've tried putting the stick in sis/suc mode using the program I found.  Lmce hangs when I try to use it to communicate with the stick.  I don't know what else to do.

Is there a way to stop the wizard or Lmce from detecting or reacting to the stick being plugged in?  That may buy me some time to follow the wiki completely.  Maybe the core would actually send the reset command to the stick if it's not to busy reloading the router every 40 seconds...IDK.
Title: Re: ZWave wizard fail on latest LinuxMCE snapshot
Post by: totallymaxed on February 16, 2011, 07:26:22 pm
I saw those instructions but I couldn't use them so I went looking for other ways to reset the z-stick.  When I first got the stick I joined one switch to it as a test and just plugged it into the core, the wizard launched and life was good.  I then joined all other switches to the stick and linuxmce just added them via the wizard.  I then reinstalled my core ( a couple weeks later) and I've been having trouble ever since.  I pressed the reset button and held it to reset the stick, when lmce started detecting devices I plugged it in, the wizard launched then 30 seconds later the router reloaded before I could finish configuring everything else.  That's all it does, as soon as I plug in the stick(inside or outside of the setup) the wizard starts then the router reloads, over and over and over and over, until finally the core becomes none responsive to everything except the shutdown command from either the power switch or ssh.  The machine doesn't stay stable long enough for me to follow the wiki directions.  I thought it was the installation so I dl the latest snapshot, same thing.  I download the new latest snapshot, same thing. I'm out of dvds now so I did the Internet install, same thing.  I've tried hardware reset, software reset with this program I found, and I've tried putting the stick in sis/suc mode using the program I found.  Lmce hangs when I try to use it to communicate with the stick.  I don't know what else to do.

Is there a way to stop the wizard or Lmce from detecting or reacting to the stick being plugged in?  That may buy me some time to follow the wiki completely.  Maybe the core would actually send the reset command to the stick if it's not to busy reloading the router every 40 seconds...IDK.

Hi klovell,

You can disable the PnP auto-detection of ZWave interfaces (or add detection for an new ZWave interface) from Web Admin. Go to;

Advanced -> Configuration -> Device Templates

Now open device template #1754 and scroll down to the 'Plug n Play' section then scroll down to locate the entry for your ZWave interface a and then use the 'Delete' button next to it to delete it. Make sure you click on 'Save' to confirm the change. Now do a Quick Reload of the router and your ZWave interface will not be auto detected when you plug it in or if you accidentally plug another interface in.

See this wiki page for details about the device template #1754;

http://wiki.linuxmce.org/index.php/ZWave_DeviceTemplate_PlugAndPlay (http://wiki.linuxmce.org/index.php/ZWave_DeviceTemplate_PlugAndPlay)

All the best


Andrew
Title: Re: ZWave wizard fail on latest LinuxMCE snapshot
Post by: klovell on February 17, 2011, 06:26:56 pm
Thanks Andrew those are awesome direction! 

It made it so I could have my zstick plugged in without the router reloading repeatedly but I still couldn't get it going.  I set it up manually then followed the wiki but nothing happened.  Although the Wizard was flaking out it did create the devices and last night I found a little trick to kind of pause the wizard so it wouldn't reload the router.  All I did was click cancel (which I did before but nothing would happen, but last night it was responding) which caused the wizard to ask me a question, I noticed while it had the question up the reload router would not happen but it looked like the setup procedure was still working in the background.  I then conducted an experiment with the zwave device the wizard created and the one I manually created and it looks like I'm failing at the first step in the instructions, resetting the stick.  I used the windows app to view and reset the stick, I then manually included one switch to it using the button on the stick, I then plugged it into the core and performed the steps in the wiki stopping at the add nodes step, I plugged the stick back into the laptop to view it with the windows app and the switch I included before resetting the stick with the core was still there (I made certain to reload the app).  I was expecting a zstick in sis or suc mode with no nodes included.  When I reset the stick with the windows app all nodes are removed.  Are my expectations accurate?

I really don't know what to do now.  I was curtain the reloading of the router was my problem but now I'm lost.  I'm surprised by how automated and easy it worked the first time but now it's as if the core doesn't know what to do with this stick.  I'm using a MiCasaVerde Z-Wave Dongle, It seemed like the easier solution, am I missing something?  Has anything z wave related changed with the last few snapshots?
Title: Re: ZWave wizard fail on latest LinuxMCE snapshot
Post by: totallymaxed on February 17, 2011, 06:49:36 pm
Thanks Andrew those are awesome direction! 

It made it so I could have my zstick plugged in without the router reloading repeatedly but I still couldn't get it going.  I set it up manually then followed the wiki but nothing happened.  Although the Wizard was flaking out it did create the devices and last night I found a little trick to kind of pause the wizard so it wouldn't reload the router.  All I did was click cancel (which I did before but nothing would happen, but last night it was responding) which caused the wizard to ask me a question, I noticed while it had the question up the reload router would not happen but it looked like the setup procedure was still working in the background.  I then conducted an experiment with the zwave device the wizard created and the one I manually created and it looks like I'm failing at the first step in the instructions, resetting the stick.  I used the windows app to view and reset the stick, I then manually included one switch to it using the button on the stick, I then plugged it into the core and performed the steps in the wiki stopping at the add nodes step, I plugged the stick back into the laptop to view it with the windows app and the switch I included before resetting the stick with the core was still there (I made certain to reload the app).  I was expecting a zstick in sis or suc mode with no nodes included.  When I reset the stick with the windows app all nodes are removed.  Are my expectations accurate?

I really don't know what to do now.  I was curtain the reloading of the router was my problem but now I'm lost.  I'm surprised by how automated and easy it worked the first time but now it's as if the core doesn't know what to do with this stick.  I'm using a MiCasaVerde Z-Wave Dongle, It seemed like the easier solution, am I missing something?  Has anything z wave related changed with the last few snapshots?

If you set your ZWave interface up manually then the Lighting Wizard is not used at all - again the procedure on the Wiki page I referred too was the manual SIS mode inclusion process. We dont use the Micasaverde ZWave sticks and so I dont have any experience to offer you in that area I'm afraid. However the basic premise of the Micasaverde stick is that you use it directly for inclusion and then re-insert it into there usb port when done. I think Hari has some experience of these Zwave interfaces he might be able to offer some insight.

All the best


Andrew
Title: Re: ZWave wizard fail on latest LinuxMCE snapshot
Post by: klovell on March 25, 2011, 03:01:08 pm
Hari or anyone who can decipher the errors in this log, please help.  I have no clue what this means.  I got everything working again but i had to reinstall the core, now I get this.  I really would appreciate any kind of help.

I'm using a MiCasaVerde Z-Wave Dongle, I've followed all the steps in the Wiki, but still no luck.  Please help  :'(.

Code: [Select]
01 03/24/11 20:34:40.716 TranslateSerialUSB pci0000:00/0000:00:0b.0+4 result /dev/ttyUSB0 <0xb715c6c0>
01 03/24/11 20:34:40.840 ZWave Version: 2.78 <0xb715bb90>
01 03/24/11 20:34:40.944 Home id: 0x00006f9d, our node id: 1 <0xb715bb90>
01 03/24/11 20:34:41.056 SerAppV:3,r7,Manf 0,Typ 1,Prod 1 <0xb715bb90>
01 03/24/11 20:34:42.006
01 03/24/11 20:35:55.128 TranslateSerialUSB pci0000:00/0000:00:0b.0+4 result /dev/ttyUSB0 <0xb71b16c0>
01 03/24/11 20:35:55.368 ZWave Version: 2.78 <0xb71b0b90>
01 03/24/11 20:35:55.473 Home id: 0x00006f9d, our node id: 1 <0xb71b0b90>
01 03/24/11 20:35:55.580 SerAppV:3,r7,Manf 0,Typ 1,Prod 1 <0xb71b0b90>
01 03/24/11 20:35:56.495
01 03/24/11 20:47:32.431 Checksum incorrect ff - sending NAK <0xb71b0b90>
01 03/24/11 20:47:32.432 ERROR! Out of frame flow!! <0xb71b0b90>
01 03/24/11 20:47:32.432 ERROR! Out of frame flow!! <0xb71b0b90>
01 03/24/11 20:47:32.432 ERROR! Out of frame flow!! <0xb71b0b90>
01 03/24/11 20:47:32.432 ERROR! Out of frame flow!! <0xb71b0b90>
01 03/24/11 20:47:32.432 ERROR! Out of frame flow!! <0xb71b0b90>
01 03/24/11 20:47:32.433 ERROR! Out of frame flow!! <0xb71b0b90>
01 03/24/11 20:47:32.433 ERROR! Out of frame flow!! <0xb71b0b90>
01 03/24/11 20:47:32.433 ERROR! Out of frame flow!! <0xb71b0b90>
01 03/24/11 20:53:38.972 TranslateSerialUSB pci0000:00/0000:00:0b.0+4 result /dev/ttyUSB0 <0xb714e6c0>
01 03/24/11 20:53:39.096 ZWave Version: 2.78 <0xb714db90>
01 03/24/11 20:53:39.200 Home id: 0x00006f9d, our node id: 1 <0xb714db90>
01 03/24/11 20:53:39.308 SerAppV:3,r7,Manf 0,Typ 1,Prod 1 <0xb714db90>
01 03/24/11 20:53:40.224
01 03/24/11 20:57:49.560 TranslateSerialUSB pci0000:00/0000:00:0b.0+4 result /dev/ttyUSB0 <0xb72376c0>
01 03/24/11 20:57:49.684 ZWave Version: 2.78 <0xb7236b90>
01 03/24/11 20:57:49.793 Home id: 0x00006f9d, our node id: 1 <0xb7236b90>
01 03/24/11 20:57:49.900 SerAppV:3,r7,Manf 0,Typ 1,Prod 1 <0xb7236b90>
01 03/24/11 20:57:50.817
01 03/24/11 21:06:34.732 TranslateSerialUSB pci0000:00/0000:00:0b.0+8 result /dev/ttyUSB0 <0xb70b26c0>
01 03/24/11 21:06:34.857 ZWave Version: 2.78 <0xb70b1b90>
01 03/24/11 21:06:34.961 Home id: 0x00006f9d, our node id: 1 <0xb70b1b90>
01 03/24/11 21:06:35.069 SerAppV:3,r7,Manf 0,Typ 1,Prod 1 <0xb70b1b90>
01 03/24/11 21:06:36.300
01 03/24/11 21:08:47.328 TranslateSerialUSB pci0000:00/0000:00:0b.0+8 result /dev/ttyUSB0 <0xb724d6c0>
01 03/24/11 21:08:47.465 ZWave Version: 2.78 <0xb724cb90>
01 03/24/11 21:08:47.576 Home id: 0x00006f9d, our node id: 1 <0xb724cb90>
01 03/24/11 21:08:47.685 SerAppV:3,r7,Manf 0,Typ 1,Prod 1 <0xb724cb90>
01 03/24/11 21:08:48.937
01 03/24/11 21:10:26.590 Receive string failed in HandleRequestSocket 18:ReceiveData failed Command_Impl1 Dev #83 <0xb624ab90>
01 03/24/11 21:10:34.985 TranslateSerialUSB pci0000:00/0000:00:0b.0+8 result /dev/ttyUSB0 <0xb72086c0>
01 03/24/11 21:10:35.109 ZWave Version: 2.78 <0xb7207b90>
01 03/24/11 21:10:35.213 Home id: 0x00006f9d, our node id: 1 <0xb7207b90>
01 03/24/11 21:10:35.321 SerAppV:3,r7,Manf 0,Typ 1,Prod 1 <0xb7207b90>
01 03/24/11 21:10:36.561
Title: Re: ZWave wizard fail on latest LinuxMCE snapshot
Post by: hari on March 26, 2011, 12:01:27 am
please factory reset the dongle, something looks very weird here..

br Hari
Title: Re: ZWave wizard fail on latest LinuxMCE snapshot
Post by: klovell on March 28, 2011, 03:44:29 pm
please factory reset the dongle, something looks very weird here..

br Hari

I did that a few time, before and after reading this reply, no luck.

From looking at the logs do you think it's possible that the z-stick is broken?  It looks like LMCE sees the stick and is setting it up properly but it's not seeing the lighting controller part of the stick.  Every time I plug it in Sara tells me to pair my zwave devices with the master controller first.  So I'll unplug the stick walk over to a light switch, pair it, plug the stick back into the core, LMCE chews on it for a second or two, then I get told to include my devices to the master controller first. 

Also, the last time I tried to reset the stick I used that program I uploaded to this thread.  I reset the stick, there were no nodes on the list of included nodes, for the heck of it I click on the "All on" button in the application and the weirdest thing happened, every single light in my house turned on.  It's my understanding that a zwave node wont accept or repeat commands from a device it's not on the same network with.  If I reset the z-wave stick wouldn't that break the association?  Am I understanding this correctly? I don't recall this being normal operation in the past.  Any thoughts on this?