Aeon Labs Z-Stick Series 2

Forum about Domotiga Open Source Home Automation for Linux.

Moderator: RDNZL

Jaren
Starting Member
Starting Member
Posts: 18
Joined: Thu Jan 13, 2011 10:57 am

Re: Aeon Labs Z-Stick Series 2

Post by Jaren »

I've only got 7 nodes on my zwave network right now.

I'm simply calling openzwave's InitZWave function and watching till the debug output stops scrolling stuff past.
It does it all asynchronously in a thread on the c++ side.

It does send a message almost immediately once the driver is ready.
Watching the debug spew I can see it gathering all sorts of information about the capabilities of all the nodes.

Looking closer I see that it has a command queue that it works through. So maybe it'll be ok for us to start sending commands even if there may initially be a delay before they are processed.
Jaren
Starting Member
Starting Member
Posts: 18
Joined: Thu Jan 13, 2011 10:57 am

Re: Aeon Labs Z-Stick Series 2

Post by Jaren »

I now have a decent chunk of CZWave.class replaced by calls into openzwave.
It turns out that my switches aren't associated after all.
They are simply sending a few updates of their dim level as they are being turned off.
So I'll be able to catch whatever they send, but they aren't notifying the controller that they were turned off, which was my original goal.

Polling and some smart requests for Basic Reports may be what I need with or without openzwave.

Is it still worthwhile to others if I continue trying to work openzwave into DomotiGa?
luria
Starting Member
Starting Member
Posts: 36
Joined: Tue Mar 16, 2010 11:51 am

Re: Aeon Labs Z-Stick Series 2

Post by luria »

As for me, I'm satisfied with a polling routine ala plcbus, but wery happy with the effort you are making in getting z-wave support a bit further in domotiga.
With som many variations between switches and manufacturers implementation of z-wave, polling is probably the only way we can get consistent results from all nodes?
User avatar
RDNZL
Forum Moderator
Forum Moderator
Posts: 1008
Joined: Sun Sep 24, 2006 1:45 pm
Location: Dordrecht, The Netherlands
Contact:

Re: Aeon Labs Z-Stick Series 2

Post by RDNZL »

I think its good to integrate your openzwave interface code ( or optional ) because it supportsbattery powered sensors etc and polling is not easy from gambas for zwave as each send/ received msg needs to be acked within a certain time. Which is not easy to do.
Regards, Ron.
joepadmiraal
Starting Member
Starting Member
Posts: 5
Joined: Wed Apr 21, 2010 12:00 am

Re: Aeon Labs Z-Stick Series 2

Post by joepadmiraal »

Great to see there are more people using domotiga with zwave.
If it is not to much work, I think it will be nice to be able choose between the traditional and openzwave method.
At least for the beginning until the new method has proved it's stable enough for production environments.
Jaren
Starting Member
Starting Member
Posts: 18
Joined: Thu Jan 13, 2011 10:57 am

Re: Aeon Labs Z-Stick Series 2

Post by Jaren »

I've spent the past few days cleaning up both the openzwave wrapper library and my changes to Domotiga.
I add some thread safety code to the wrapper and that significantly slowed down the startup, so I'm still looking at that.

Without the thread safety the system was a little fragile as it started up. If someone flipped a switch while the initial queries were happening sometimes some of the devices wouldn't get fully initialized and ready to go.

If I can track that down without having such a long startup (with thread safety it is like 1 minute 30 seconds for my 7 devices) then I'll see what I can do to push the code back up.

One other thing, I hadn't been planning on supporting both methods. I'll see if I can get the old method back in with a toggle. I agree that it'd be bad to force people to use the new library if it isn't going to work for them.
jaretselinger
Starting Member
Starting Member
Posts: 3
Joined: Sat Nov 27, 2010 5:11 pm

Re: Aeon Labs Z-Stick Series 2

Post by jaretselinger »

I installed update 0.1.194 and everything works great.
Jaren
Starting Member
Starting Member
Posts: 18
Joined: Thu Jan 13, 2011 10:57 am

Re: Aeon Labs Z-Stick Series 2

Post by Jaren »

I've got this set up so you can toggle a column in the db to switch between built in and open zwave support.
What is the best way for me to submit it for review?
User avatar
RDNZL
Forum Moderator
Forum Moderator
Posts: 1008
Joined: Sun Sep 24, 2006 1:45 pm
Location: Dordrecht, The Netherlands
Contact:

Re: Aeon Labs Z-Stick Series 2

Post by RDNZL »

You can e-mail me the changed files and db field description.
Or your whole code tree if you don't want to bother sorting out stuff, I have become very handy with diff ;-)

Pls include needed setup details if possible...
See DomotiGa's README file for e-mail address...

Thanks in advance!
Regards, Ron.
joepadmiraal
Starting Member
Starting Member
Posts: 5
Joined: Wed Apr 21, 2010 12:00 am

Re: Aeon Labs Z-Stick Series 2

Post by joepadmiraal »

Any News on the subject?
I would love to test the new zwave code.
User avatar
RDNZL
Forum Moderator
Forum Moderator
Posts: 1008
Joined: Sun Sep 24, 2006 1:45 pm
Location: Dordrecht, The Netherlands
Contact:

Re: Aeon Labs Z-Stick Series 2

Post by RDNZL »

Status is that I got the code from Jaren, have it merged with my development version 0.1.195, there is an issue with it, and I need to sent debug info to Jaren.
Due to my busy work week I didn't have the time collect and sent it, will do it this morning...
Regards, Ron.
User avatar
RDNZL
Forum Moderator
Forum Moderator
Posts: 1008
Joined: Sun Sep 24, 2006 1:45 pm
Location: Dordrecht, The Netherlands
Contact:

Re: Aeon Labs Z-Stick Series 2

Post by RDNZL »

I have just commited Jaren's open-zwave wrapper.
So you can update your DomotiGa code from svn, and read the README in domotiga/wrappers/domozwave to get it going.
Please report your experiences, bug reports and ideas!
Regards, Ron.
LostDreamer
Member
Member
Posts: 73
Joined: Fri Apr 10, 2009 1:43 pm
Location: Netherlands
Contact:

Re: Aeon Labs Z-Stick Series 2

Post by LostDreamer »

quick note for other people like luria:

ACT devices do support the instant update notification, but you have to associate the devices with your USB controller in Association group 1.

This is (as far as I could find out) to get around the Lutron patent.

Hopefully this helps others with getting more out of there devices :D

ps. With a single threaded PHP script, my 7 devices report their status in < 1 sec, all devices are within range of the controller.
[url=https://www.viagrasansordonnancefr.com/commander-sildenafil-100-q-sirve/]commander sildenafil 100 q sirve www.viagrasansordonnancefr.com[/url]
joepadmiraal
Starting Member
Starting Member
Posts: 5
Joined: Wed Apr 21, 2010 12:00 am

Re: Aeon Labs Z-Stick Series 2

Post by joepadmiraal »

I followed the instructions.
The make command in the domozwave directory gives this error:

make: *** Er is geen regel om doel '-lxmlrpc_xmlparse' te maken, nodig voor
'libdomozwave.so'. Gestopt.

This is on an opensuse 11.3 x64 system.
Does anyone have an idea abou what's wrong.
Post Reply

Return to “DomotiGa Forum”