Author Topic: ZWave API  (Read 120504 times)

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: ZWave API
« Reply #120 on: November 07, 2008, 09:39:24 am »
btw, that is documented in the wiki.
rock your home - http://www.agocontrol.com home automation

totallymaxed

  • LinuxMCE God
  • ****
  • Posts: 4660
  • Smart Home Consulting
    • View Profile
    • Dianemo - at home with technology
Re: ZWave API
« Reply #121 on: November 07, 2008, 10:12:34 am »
The triclestar Z-Wave USB-Adapter is now available in the onlinestore http://www.zwave4u.de/.

My question is:

Will this adapter work with the LMCE Z-Wave libary?

Regards Thorsten.

Yes is the answer to will it work... but you must us the new ZWave drive being developed by Hari and not the one shipped with LinuxMCE-0710. The Tricklestar Zwave products are very nice indeed and very well priced too... we like them a lot.

As to the Tricklestar USB stick being available... I doubt that they will have them in stock yet as I know that the first production units are only just about to arrive.

All the best

Andrew
Andy Herron,
CHT Ltd

For Dianemo/LinuxMCE consulting advice;
@herron on Twitter, totallymaxed+inquiries@gmail.com via email or PM me here.

Get Dianemo-Rpi2 ARM Licenses http://forum.linuxmce.org/index.php?topic=14026.0

Get RaspSqueeze-CEC or Raspbmc-CEC for Dianemo/LinuxMCE: http://wp.me/P4KgIc-5P

Facebook: https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465

http://www.dianemo.co.uk

nite_man

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1019
  • Want to work with LinuxMCE
    • View Profile
    • Smart Home Blog
Re: ZWave API
« Reply #122 on: November 09, 2008, 03:19:45 pm »
Thanks for explanation, guys. I have another question. Does somebody know is there some Z-Wave Door / Window Sensors for European standards?
Michael Stepanov,
My setup: http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup
Russian LinuxMCE community: http://linuxmce.ru

totallymaxed

  • LinuxMCE God
  • ****
  • Posts: 4660
  • Smart Home Consulting
    • View Profile
    • Dianemo - at home with technology
Re: ZWave API
« Reply #123 on: November 09, 2008, 03:26:53 pm »
Thanks for explanation, guys. I have another question. Does somebody know is there some Z-Wave Door / Window Sensors for European standards?

See this thread... TechStyle has a Window/Door sensor available. We have one on test here and it works fine;

http://forum.linuxmce.org/index.php?topic=5820.msg34411#msg34411

Andrew
Andy Herron,
CHT Ltd

For Dianemo/LinuxMCE consulting advice;
@herron on Twitter, totallymaxed+inquiries@gmail.com via email or PM me here.

Get Dianemo-Rpi2 ARM Licenses http://forum.linuxmce.org/index.php?topic=14026.0

Get RaspSqueeze-CEC or Raspbmc-CEC for Dianemo/LinuxMCE: http://wp.me/P4KgIc-5P

Facebook: https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465

http://www.dianemo.co.uk

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: ZWave API
« Reply #124 on: November 09, 2008, 03:35:31 pm »
rock your home - http://www.agocontrol.com home automation

caiman

  • Veteran
  • ***
  • Posts: 119
    • View Profile
Re: ZWave API
« Reply #125 on: December 10, 2008, 11:05:47 am »
Hi Hari,

In my next install I want to try SIS mode with a tricklestar inclusion remote and Danfoss thermostat (Xmas is coming fast :).
Would you mind sharing the steps required to install such a setup ? I guess I will reset my network completely and the use the MessageSend CLI to re-include all nodes and create the necessary associations, but I'm not sure which DCE commands are available, and in which order it's best to use them?

Are there commands to test the quality of a link, or to view the routing table ?

I quickly checked the wiki, but didn't find much about the DCE commands to use for this. Any pointers welcome :)

thanks,
Sam

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: ZWave API
« Reply #126 on: December 10, 2008, 11:59:31 am »
Hi Hari,

In my next install I want to try SIS mode with a tricklestar inclusion remote and Danfoss thermostat (Xmas is coming fast :).
Would you mind sharing the steps required to install such a setup ? I guess I will reset my network completely and the use the MessageSend CLI to re-include all nodes and create the necessary associations, but I'm not sure which DCE commands are available, and in which order it's best to use them?

no need to use messagesend. You just include the dongle with the _fresh_ remote (can be done with the light wizard), and then start adding devices with the remote itself. They pop up in lmce automatically in SIS mode, no need to do further download configs...

Quote
Are there commands to test the quality of a link, or to view the routing table ?
there are some z-wave commands for that, but not yet available via DCE. As this driver is a replacement for the original one, I did not change the template to add new commands. 0810 will prolly provide some new commands for network repair and a few other things..

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

Kostakis

  • Making baby steps
  • Posts: 3
    • View Profile
Re: ZWave API
« Reply #127 on: April 08, 2009, 09:19:14 am »
Hello guys,
i am trying to understand some basic things about z-wave devices from the source code (zwaveapi.h and zwaveapi.cpp).

I have a ZCS201 controller, a PIR ZIR010 binary sensor and a EVERSPRING SM103 door/window sensor bought from our friend from this forum :-)

My issue is , i cant fully understand how these sensors work, i can add them using 01 04 00 4a 01 b0   start ADD command .. follow all the process till the end of ADD mode... but then.. they seem like dead...

they go to sleep and whatever i send never wake up..

I just only to warn me when the door is open or there is movement in my room....  send me an event...


do i need to send some commands to wake them up?  is there a special command to put them in ALARM mode?

what is the process i must follow to have some events from these sensors? i am confused!

hope you can give me some clues to continue my search on the Z-Wave world... :-)

thank you very much!

Regards               

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: ZWave API
« Reply #128 on: April 08, 2009, 09:36:58 pm »
would you mind to elaborate a bit on your project? Is it open source? Where can I download the code :-)

you need to set the wake-up interval right after inclusion. The node sending this will be the destination for wake up notifications.

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

Kostakis

  • Making baby steps
  • Posts: 3
    • View Profile
Re: ZWave API
« Reply #129 on: April 09, 2009, 10:46:33 am »
To download the source code it must be written first :-) I just want to control a PIR , a door windows and some binary switches for an alarm system i am developing.

I cant manage to work with battery powered devices...

if i understand you correctly, i will setup a wake-up interal for a sensor.... lets say... 5 mins.... and then every 5 mins the sensor will wake up... send me a signal.. and i will have some time? to send whatever command i want before it goes to sleep again?

but what about if a thief enters my house.. the sensor will wait for wake up time and then send me the event??

because whatever i do to the Door/window sensor for example... its not sending me anything only if i press the switch behind.

Is there anything like ALARM mode i must set the sensor to send me events in realtime??

thank you for your time!

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: ZWave API
« Reply #130 on: April 09, 2009, 10:12:46 pm »
To download the source code it must be written first :-) I just want to control a PIR , a door windows and some binary switches for an alarm system i am developing.
share early, even if it is a PoC :-)

Quote
I cant manage to work with battery powered devices...
yeah, that part is a bit tricky sometimes.

Quote
if i understand you correctly, i will setup a wake-up interal for a sensor.... lets say... 5 mins.... and then every 5 mins the sensor will wake up... send me a signal.. and i will have some time? to send whatever command i want before it goes to sleep again?
5 min is quite short, that will drain your batteries fairly quick. You usually send a "wakeup_no_more_information" when the device shall go to sleep again (do that asap). Some like the HSM100 will empty their battery if you don't make them sleep again.

Quote
but what about if a thief enters my house.. the sensor will wait for wake up time and then send me the event??

because whatever i do to the Door/window sensor for example... its not sending me anything only if i press the switch behind.

Is there anything like ALARM mode i must set the sensor to send me events in realtime??
button pressing usually triggers the sending of a node information frame. The wake-up time is set so that you can reach the devices periodically to do configuration stuff or whatever. To receive "events", you have to associate the your controller into the proper groups on the device. PIRs usually use group 1 for trigger events. The Seluxit Multisensor e.g. has distinct groups for all sensor inputs.

Quote
thank you for your time!
you're welcome. Maybe you want to share your code, I think this is quite interesting and I'm working on a standalone z-wave library as I'm rewriting our stack..

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

Zaerc

  • Alumni
  • LinuxMCE God
  • *
  • Posts: 2256
  • Department of Redundancy Department.
    • View Profile
Re: ZWave API
« Reply #131 on: April 09, 2009, 10:20:08 pm »
...
Quote
thank you for your time!
you're welcome. Maybe you want to share your code, I think this is quite interesting and I'm working on a standalone z-wave library as I'm rewriting our stack..

br, Hari

Good idea, there seems to be plenty of interest from outside lmce, and that way it will be easier for other people to contribute that aren't (interested in being) a part of this project.
"Change is inevitable. Progress is optional."
-- Anonymous


hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: ZWave API
« Reply #132 on: April 09, 2009, 10:34:57 pm »
...
Quote
thank you for your time!
you're welcome. Maybe you want to share your code, I think this is quite interesting and I'm working on a standalone z-wave library as I'm rewriting our stack..

br, Hari

Good idea, there seems to be plenty of interest from outside lmce, and that way it will be easier for other people to contribute that aren't (interested in being) a part of this project.
yup! The dunkkis.org guys are working on sth for the openwrt based on my code. Combined efforts on z-wave would be great as the protocol is huge.

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

Kostakis

  • Making baby steps
  • Posts: 3
    • View Profile
Re: ZWave API
« Reply #133 on: April 10, 2009, 01:31:36 pm »
i think i figure out how to control this demonic thing :-p

after i add my device with the usual way... i do a SetAssociation with the Static Controller... and the data starts to flow to my serial port :-)

my developing is based on a AVR32 microcontroller so i dont know if my code is so usefull, but when my functions will be ready i will post them to tell me your thoughts :-)
thank you very much

i will be in touch, great work!

regards, Kostas

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: ZWave API
« Reply #134 on: April 10, 2009, 01:55:40 pm »
nice! happy hacking!

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