Page 1 of 1

Help with ZWave

Posted: Thursday 07 July 2016 18:37
by obrienlabs
I've followed the wiki and the install.txt and the install.md. I'm missing something.

I can't get OpenZwave to show up in the hardware drop down list.

I have /root/domoticz, and /root/domoticz/open-zwave. I've done the makes in both folders, and started the program and nothing shows up.

Where does the zwave files need to be in order for it to be recognized?

Thanks

Re: Help with ZWave

Posted: Thursday 07 July 2016 18:56
by jannl
Isn't openzwave compiled in by default? Or do you build you Domoticz completely from source?

Re: Help with ZWave

Posted: Thursday 07 July 2016 18:56
by trixwood

Code: Select all

pluto.local:~ Trixwood$ls
domoticz		open-zwave-read-only
open-zwave
not inside the domoticz folder but one lower. That is if you compile (you use linux i think? so you probably compile).

Re: Help with ZWave

Posted: Thursday 07 July 2016 19:21
by obrienlabs
I compiled from source.

I also tried to have it in /root, but that didn't work either.

Re: Help with ZWave

Posted: Thursday 07 July 2016 19:35
by trixwood
I know it's not linux, but almost the same:

https://www.domoticz.com/wiki/Mac_OS_X# ... rom_Source

and I do not see it in the linux guide but check out, after you compile in the domoticz folder run:

Code: Select all

sudo make install
it will make a clean install in

Code: Select all

/opt/domoticz
including all openzwave config files. (if openzwave is in the right location, same folder as domoticz, not "inside" the domoticz folder)

Re: Help with ZWave

Posted: Thursday 07 July 2016 19:36
by obrienlabs
Ok let me try it

Re: Help with ZWave

Posted: Thursday 07 July 2016 19:55
by trixwood
Also check out your cmake output to make sure openzwave is used. There should be a line there:

Code: Select all

-- Found LIBUSB: /usr/local/lib/libusb.dylib  
-- LIBUSB found at: /usr/local/lib/libusb.dylib
-- /Users/Tristan/Smarthome/compile/open-zwave-read-only/libopenzwave.a        <<---- THIS ONE
-- ==== WiringPi include file (wiringPi.h) not found. GPIO support disabled.
-- ==== (Please follow http://wiringpi.com/download-and-install/ if you want to use GPIO.)
-- Not found telldus-core (telldus-core.h), not adding tellstick support
also note that i had problems with cmake cache files, still do not know which folders/files to clean:

viewtopic.php?f=6&t=11766&p=90115&hilit ... ing#p90088

so use a fresh source from git to make sure cmake does not use invalid old configuration.

Re: Help with ZWave

Posted: Thursday 07 July 2016 21:17
by obrienlabs
I ended up doing this for it to work. Clone the open-zwave git to /root, then follow the make and symlink instructions.

root@ubuntu:~# ls
domoticz open-zwave open-zwave-read-only


Then, cd to domoticz and issue a custom cmake command
root@ubuntu:~/domoticz# cmake -USE_STATIC_OPENZWAVE -DCMAKE_BUILD_TYPE=Release CMakeLists.txt

then make

and now i have open-zwave USB available to me

3rd time's a charm