Tutorial: compiling open-zwave-control-panel

While we’re waiting for the issue to get looked at, could you type a “make” in that directory and show me what the output is?

Here’s it is

Sorry, try “sudo make”

It worked, Thank You Roddie:

sudo apt-get update
sudo apt-get install libgnutls28-dev libgnutlsxx28
sudo make

Sorry, my replies are limited. Has to use edit previous post

Ok, I suspect I know how to fix it for your instance, but it’s not really the right fix for the AiO package, which should have all of this done already.

If you’re interested in trying, do:

sudo apt-get update
sudo apt-get install libgnutls28-dev libgnutlsxx28
sudo make
1 Like

never mind, just had to re-add the device.

I have a love/hate relationship going on with zwave. I have one of the GE smart door hinge things. I had it working fine connected to zwave under HA. Today I got an enerwave single relay switch. I could not get it to link with wink so I decided to see if I could get it to synch with ozwcp. I got ozwcp working, I had to do a apt-get update/upgrade to get it working, but after that, it found the door hinge and the relay switch. I removed the relay switch from ozwcp and was finally able to get it to link in with wink. Yeah!!! I shut down ozwcp and rebooted my HA box. Everything seemed to come up fine. It even found the new single relay switch wired to my ceiling fan. Life is good until I realized my automations for my office door where the hing thing is installed were not working. I checked and the hinge thing is not showing up in HA now. I have stopped, restarted, rebooted and nothing I do is making it come back. I’m not seeing any errors in the log related to zwave (I have one related to snmp, but that’s for another day). So now my question. What did I break and how do I fix it?

Recap :

  • GE Smart hinge was working it was my only zwave device hooked directly into HA
  • new enerwave single relay would not join any network.
  • after stopping HA used ozwcp to reset relay switch.
  • linked single relay switch into wink successfully
  • rebooted HA
  • single relay switch shows up in HA through wink interface
  • GE Smart hinge doesn’t show up in HA anymore.

Thanks

I’m having the same “command not found” issue with ozwcp. I did a clean install of AiO on a Jessie-Lite (04/10/2017), but ozwcp isn’t in /srv/homeassistant/src/open-zwave-control-panel, and if I do a Make in the directory, I get an error about microhttpd.h:

ozwcp.cpp:54:24: fatal error: microhttpd.h: No such file or directory
 #include "microhttpd.h"
                        ^
compilation terminated.
Makefile:48: recipe for target 'ozwcp.o' failed

Disregard! The error was due to a simple network glitch, where curl failed downloading libmicrohttpd from gnu.org. Sorry.

Hello,
I know this is old thread but here I am.
I followed compiling tutorial and everything went good but after issuing sudo ./ozwcp -p 8888 I get green Starting up webserver starting port 8888
But I just cannot reach my_hass_ip:8888 in browser… too long to respond.
What can be wrong?

Thank you.

Any idea what should I try? No one else has this issue before? I can’t be that lucky… :slight_smile:

Mike, after running ozwcp, type this in another window and show me what you get:

netstat -a | grep 8888

Hello,
tcp 0 0 *:8888 *:* LISTEN

Ok, so it’s listening on all IPs on that port - And you’re going to your browser and typing:

http://x.x.x.x:8888

(where x.x.x.x is the IP address of your HASS server)

And it’s not working?

Browser is trying to connect but it takes too long so all I get is “Too long to respond” error message. May be its my Firewall settings?

Ok. It was my Firewall settings. :flushed:

I was going to suggest that, but I couldn’t think of a reason why you’d have a firewall between your testing PC and HASS :slight_smile:

Why? So I can spend two days figuring out why isn’t something working even it should… :joy:

1 Like

When sudo make control panel i have this error.
Please help me…
I …/open-zwave//cpp/src -I …/open-zwave//cpp/src/command_classes/ -I …/open-zwave//cpp/src/value_classes/ -I …/open-zwave//cpp/src/platform/ -I …/open-zwave//cpp/src/platform/unix -I …/open-zwave//cpp/tinyxml/ -I /usr/local/include/ -o zwavelib.o zwavelib.cpp
g++ -o ozwcp -g ozwcp.o webserver.o zwavelib.o …/open-zwave//libopenzwave.a /usr/local/lib/libmicrohttpd.a -pthread -framework IOKit -framework CoreFoundation -lresolv
g++: error: IOKit: No such file or directory
g++: error: CoreFoundation: No such file or directory
g++: error: unrecognized command line option ‘-framework’
g++: error: unrecognized command line option ‘-framework’
Makefile:71: recipe for target ‘ozwcp’ failed
make: *** [ozwcp] Error 1

ok i compilled ok
i must edit makefile for Linux

# for Linux uncomment out next three lines

LIBZWAVE := $(wildcard $(OPENZWAVE)/*.a)
#LIBUSB := -ludev
#LIBS := $(LIBZWAVE) $(GNUTLS) $(LIBMICROHTTPD) -pthread $(LIBUSB) -lresolv

for Mac OS X comment out above 2 lines and uncomment next 5 lines

#ARCH := -arch i386 -arch x86_64
#CFLAGS += $(ARCH)
#LIBZWAVE := $(wildcard $(OPENZWAVE)/cpp/lib/mac/*.a)
LIBUSB := -framework IOKit -framework CoreFoundation
LIBS := $(LIBZWAVE) $(GNUTLS) $(LIBMICROHTTPD) -pthread $(LIBUSB) $(ARCH) -lresolv

So just need to comment LIBUSB and LIBS for Mac OS X, then remove the comment for Linux. Then everything will be work.

But after run control panel on port 8888 run is ok but not show my controller and nodes … all is empty.