Author Topic: New Z-Wave driver  (Read 33660 times)

Domodude

  • Guest
Re: New Z-Wave driver
« Reply #105 on: June 03, 2009, 12:55:47 pm »
i was busy finishing the associaton stuff and supporting non-listening devices without wake up command class. So you can now set associations for e.g. merten remote switches with the  web admin and then tripple press the switch to awake.

I'll have to play a bit with that! Do you mean there will be events when a button on a non-listening / battery-operated device is pressed?

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2420
    • View Profile
    • ago control
Re: New Z-Wave driver
« Reply #106 on: June 03, 2009, 10:33:11 pm »
the event (on/off) will come soon (already there for EnOcean, just need to implement). Be aware that we are not able to distinguish the different paddles, z-wave does not give us that information.

best regards,
Hari
rock your home - http://www.agocontrol.com home automation

caiman

  • Veteran
  • ***
  • Posts: 119
    • View Profile
Re: New Z-Wave driver
« Reply #107 on: June 03, 2009, 11:01:48 pm »
Hi Hari and team,

has anyone tried or made the Schlage z-wave doorlock work with LMCE ?
http://consumer.schlage.com/LiNK/

It is sold with its own zwave controller, but of course I would love to integrate it with the existing LMCE network and be able to get notifications in LMCE when someone unlocks the door...

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2420
    • View Profile
    • ago control
Re: New Z-Wave driver
« Reply #108 on: June 03, 2009, 11:58:37 pm »
encryption support is a different beast, I'm not aware of any secure inclusion controllers. So only pairing in reach of the core, and we'd need a bunch of code for the needed command classes and utilize some aes implementation. I don't think I feel like doing that until those devices are available in Europe. But if you want to look into z-wave development, I can assist you with that task :-)

br, Hari
rock your home - http://www.agocontrol.com home automation

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2420
    • View Profile
    • ago control
Re: New Z-Wave driver
« Reply #109 on: June 04, 2009, 11:32:48 pm »
Hi Domodude,

I've added the soft reset to the code. But it is not yet triggered automatically. Would you mind to try the latest svn revision and send a "StatusReport" DCE command to the Z-Wave interface when it locks up? That will do soft reset. If this solves the problem I'll add some error counters and a trigger.

best regards,
Hari
rock your home - http://www.agocontrol.com home automation

Viking

  • Addicted
  • *
  • Posts: 521
    • View Profile
Re: New Z-Wave driver
« Reply #110 on: June 05, 2009, 03:14:12 pm »
139 is a segfault. How did you compile it? Did you mix libraries? If not I'd be interested in the coredump (should be in /usr/pluto/coredump/).

Sorry for the late reply, my house, wife, kids and jobs cost me a lot of time at the moment ;)

Some time ago I did this on my core :

Code: [Select]
svn co http://svn.linuxmce.org/svn/trunk #this will take a while
cd trunk
./configure
make

And when building again I went to the Zwave directory on that checkout, did a svn update (which did not do anything) and then IIRC I did a "make clean" and a "make ; make bin"

What is the right way of doing it ? And what do you mean by "did you mix libraries" ?

Greetings
Viking

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2420
    • View Profile
    • ago control
Re: New Z-Wave driver
« Reply #111 on: June 05, 2009, 04:06:34 pm »
no, thats not the proper way of doing it. Something like that should work:

Code: [Select]
svn co http://svn.linuxmce.org/svn/branches/LinuxMCE-0710/src LinuxMCE-0710/src
svn co http://svn.linuxmce.org/svn/branches/LinuxMCE-0810/src/ZWave LinuxMCE-0810/src/ZWave
cd LinuxMCE-0710/src
cp /usr/pluto/lib/*.so lib/
rm -r ZWave
cp -r ../../LinuxMCE-0810/src/ZWave .
cd ZWave

# edit the file 'Makefile' and remove this line: SNR_CPPFLAGS ?= <-mkr_t_compile_defines->

make bin

(all commands are from memory, so you maybe have to tweak one path or the other)

best regards,
Hari
rock your home - http://www.agocontrol.com home automation

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2420
    • View Profile
    • ago control
Re: New Z-Wave driver
« Reply #112 on: June 05, 2009, 06:24:31 pm »
rock your home - http://www.agocontrol.com home automation

Domodude

  • Guest
Re: New Z-Wave driver
« Reply #113 on: June 05, 2009, 07:33:51 pm »
http://vt100.at/files/ZWave-0710-32bit-20090605.bz2
Got it -- looks good! It revived my long-stranded zwave interface. I will do this test a couple more times to make absolutely sure, and let you know tomorrow, ok?

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2420
    • View Profile
    • ago control
Re: New Z-Wave driver
« Reply #114 on: June 06, 2009, 12:35:56 am »
Hi Domodude,

cool to hear. Yes, watch it for a few days and I'll prepare some code in the meantime.

br, Hari
rock your home - http://www.agocontrol.com home automation

Domodude

  • Guest
Re: New Z-Wave driver
« Reply #115 on: June 06, 2009, 09:49:36 pm »
cool to hear. Yes, watch it for a few days and I'll prepare some code in the meantime.

It works reliably.
Until you have something from within the driver, I will temporarily check for problems with a crontabbed script:
Code: [Select]
#!/bin/bash
# WARNING: DIRTY HACK, don't try this at home.
# Check for delivery errors in the last 100 lines of the log
export res=`tail --lines=100  /var/log/pluto/*ZWave.log |grep "ERROR: ZW_SEND could not be delivered to Z-Wave stack"`
# If one is found, do a soft reset
if [ "$res" != "" ] ; then /usr/pluto/bin/MessageSend localhost -r 0 220 1 788 51 "" ; fi
The script is far from ideal, and will probably trigger the whole soft reset procedure at least twice when the zwave setup has few nodes. But for now it is a bit better than calling up the web interface each time the stack problem occurs!  ;D

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2420
    • View Profile
    • ago control
Re: New Z-Wave driver
« Reply #116 on: June 06, 2009, 10:25:02 pm »
yeah, that script should do the job in the meantime.

Btw, how often does the stick get stuck for you?

best regards,
Hari
rock your home - http://www.agocontrol.com home automation

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2420
    • View Profile
    • ago control
Re: New Z-Wave driver
« Reply #117 on: June 06, 2009, 10:30:28 pm »
@domodude: btw, my remote switches are just being reflashed by merten. They should work without issues when I get them back. With the recent code additions, you can set all associations from the web admin for them.

br, Hari
rock your home - http://www.agocontrol.com home automation

Domodude

  • Guest
Re: New Z-Wave driver
« Reply #118 on: June 07, 2009, 10:24:03 am »
Btw, how often does the stick get stuck for you?

Many times a day!

EDIT: just put a counter in my script -- I will give you an "exact" number in a day or two.
« Last Edit: June 07, 2009, 08:46:17 pm by Domodude »

Domodude

  • Guest
Re: New Z-Wave driver
« Reply #119 on: June 07, 2009, 10:26:46 am »
@domodude: btw, my remote switches are just being reflashed by merten. They should work without issues when I get them back. With the recent code additions, you can set all associations from the web admin for them.
Nice -- that would further reduce the need for the Merten software. Now if they would only release an API or something like that for their in-wall interface!!