kidmock
February 13, 2018, 1:47am
463
well… I’m not sure what I did
I tried refreshing and restarting. restarting and refreshing. Removed Node. Stop Network. Start Network. Heal Network.
Well one of them fixed it.
I see my cover now. Only problem is I have lots of duplicate ZWave Nodes .I will have to figure out how to clean it up later.
But I’m working again, hopefully with my steps above @pdobrien3 will be able to better answer. (if he get his working).
dcziep:
Command “/srv/homeassistant/bin/python3 -u -c “import setuptools, tokenize;file=’/tmp/pip-build-iyga2ukt/python-openzwave/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(’\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” install --record /tmp/pip-bwi3xk3l-record/install-record.txt --single-version-externally-managed --compile --install-headers /srv/homeassistant/include/site/python3.5/python-openzwave –flavor=ozwdev” failed with error code 1 in /tmp/pip-build-iyga2ukt/python-openzwave/
Not sure if this is still an issue for you, but I had the same thing. I first had to run pip3 on pydispatcher before the openzwave install would work.
pdobrien3
(Dan)
February 15, 2018, 7:22pm
467
So, I have spent the past couple days trying to figure out OpenZWave. I have been reading this post:
As mentioned by @zarthan , Z-Wave support with hass is done via Open Z-Wave. So the question you should be asking is “does this Z-Wave device work with Open Z-Wave?”
Generally, that answer is always going to be yes, to an extent, especially with newer Z-Wave Plus devices. Z-Wave devices do follow a standard that should allow something like a switch to automatically be detected, but if support hasn’t been added to Open Z-Wave, you won’t be able to change any configurable options. For those conf…
I keep coming back to your “fork” which I kinda understand but not fully.
How hard would it be for me to create my own “fork” which has the master branch plus the xml files for the devices without OpenZWave support in my mesh network?
Am I on the right track? Something someone could struggle through?
winter
February 15, 2018, 8:49pm
468
It’s easy to create a fork in github if you want complete control over what you are deploying.
My fork is basically just the master branch with the addition of the cover patch. I sync the master branch to it occasionally to pull in any new devices added to the config dir and then reinstall locally. I would suggest just using this unless there is additional patches you need.
What did you mean “without OpenZWave support in my mesh network”?
winter
February 16, 2018, 4:10am
470
Totally get it, that’s why I created my own
So you need to go to the openzwave git repo and fork it
https://help.github.com/articles/fork-a-repo/
You need to merge the cover patch into the master branch
https://github.com/veleek/open-zwave/commit/4494ca4b1e20fd9d2ceb6c79ebb70689a4ac7412
I don’t remember how I did this, probably downloaded the files and created a new PR into my forked repo.
pdobrien3
(Dan)
February 17, 2018, 3:16am
471
Thank you very much. Sorry, it took me so long to respond. Busy day. Hopefully I can try this over the weekend. How did you find the cover patch? Need some help finding patches for my stuff.
pdobrien3
(Dan)
February 17, 2018, 12:56pm
472
Ok, I have forked the master branch of OpenZWave. I then used:
sudo git pull https://github.com/veleek/open-zwave.git BarrierSupport
to add the Barrier Support files locally and did git push origin master to update my github.
It basically added three files to my github under /cpp/src/command_classes/
sound like I am on the right path?
I am guessing when I sync the OpenZWave master branch it won’t overwrite the BarrierSupport files?
Guess only time will tell.
Greatly appreciate your help on this one and would love any confirmation I did the right thing.
pdobrien3
(Dan)
February 18, 2018, 3:01pm
473
@kidmock ,
Is there a reason you selected /srv/homeassistant/ as the location for your github clone?
kidmock
February 18, 2018, 3:54pm
474
I started with the Raspberry Pi All-in-One method and that’s where the everything was. Wouldn’t have been my logical choice.
winter
February 18, 2018, 9:18pm
475
pdobrien3:
Ok, I have forked the master branch of OpenZWave. I then used:
sudo git pull GitHub - veleek/open-zwave: a C++ library to control Z-Wave Networks via a USB Z-Wave Controller. BarrierSupport
to add the Barrier Support files locally and did git push origin master to update my github.
It basically added three files to my github under /cpp/src/command_classes/
sound like I am on the right path?
I am guessing when I sync the OpenZWave master branch it won’t overwrite the BarrierSupport files?
Guess only time will tell.
Greatly appreciate your help on this one and would love any confirmation I did the right thing.
I checked out the barrier checking to my fork, then committed that.
https://github.com/veleek/open-zwave/commit/4494ca4b1e20fd9d2ceb6c79ebb70689a4ac74121
Then later when you rebase upstream to your fork, it doesn’t undo your changes, something like this:
pdobrien3
(Dan)
February 19, 2018, 5:25pm
476
@winter ,
ok, ouch…tried to change the openzwave to my repo today. bout half way through the install got this:
arm-linux-gnueabihf-g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-RUbMX3/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src-lib/libopenzwave/libopenzwave.o /home/homeas sistant/gittest/open-zwave/libopenzwave.a -ludev -lstdc++ -lresolv -o build/lib.linux-armv7l-3.5/libopenzwave.cpython-35m-arm-linux-gnueabihf.so
arm-linux-gnueabihf-g++: error: /home/homeassistant/gittest/open-zwave/libopenzwave.a: No such file or directory
error: command ‘arm-linux-gnueabihf-g++’ failed with exit status 1
----------------------------------------
Command “/srv/homeassistant/bin/python3 -u -c “import setuptools, tokenize;file =’/tmp/pip-build-ds0c1q3m/python-openzwave/setup.py’;f=getattr(tokenize, ‘open’, ope n)(file );code=f.read().replace(’\r\n’, ‘\n’);f.close();exec(compile(code, file , ‘exec’))” install --record /tmp/pip-c6c4be9h-record/install-record.txt --single -version-externally-managed --compile --install-headers /srv/homeassistant/include/site/python3.5/python-openzwave --flavor=dev” failed with error code 1 in /tmp/pip-b uild-ds0c1q3m/python-openzwave/
Any ideas?
1 Like
winter
February 19, 2018, 7:29pm
477
I remember getting this error. I believe I was missing a dependency and openzwave was failing to compile. There isn’t enough information to say why it has failed, here are my notes on compiling:
Looks like I had to install pkgconf to get it working, but I can tell if thats the same issues you would be having.
pkg install pkgconf
setenv LOCAL_OPENZWAVE /mnt/homeassistant/tmp/openzwave/
pip3 install cython wheel six
pip3 install 'PyDispatcher>=2.0.5'
pip3 install python-openzwave --install-option="--flavor=dev" -v
winter
February 19, 2018, 7:33pm
478
You need to look back through the compile history, there will be an error to why libopenzwave.a failed to appear.
pdobrien3
(Dan)
February 19, 2018, 8:21pm
479
Command “/usr/bin/python3 -u -c “import setuptools, tokenize;file =’/tmp/pip-build-tios8crr/PyDispatcher/setup.py’;f=getattr(tokenize, ‘open’, open)(file );code=f.read().replace(’\r\n’, ‘\n’);f.close();exec(compile(code, file , ‘exec’))” install --record /tmp/pip-xxanicx2-record/install-record.txt --single-version-externally-managed --compile --flavor=dev --user --prefix=” failed with error code 1 in /tmp/pip-build-tios8crr/PyDispatcher/
Exception information:
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/pip/basecommand.py”, line 215, in main
status = self.run(options, args)
File “/usr/lib/python3/dist-packages/pip/commands/install.py”, line 360, in run
prefix=options.prefix_path,
File “/usr/lib/python3/dist-packages/pip/req/req_set.py”, line 784, in install
**kwargs
File “/usr/lib/python3/dist-packages/pip/req/req_install.py”, line 878, in install
spinner=spinner,
File “/usr/lib/python3/dist-packages/pip/utils/init .py”, line 725, in call_subprocess
% (command_desc, proc.returncode, cwd))
pip.exceptions.InstallationError: Command “/usr/bin/python3 -u -c “import setuptools, tokenize;file =’/tmp/pip-build-tios8crr/PyDispatcher/setup.py’;f=getattr(tokenize, ‘open’, open)(file );code=f.read().replace(’\r\n’, ‘\n’);f.close();exec(compile(code, file , ‘exec’))” install --record /tmp/pip-xxanicx2-record/install-record.txt --single-version-externally-managed --compile --flavor=dev --user --prefix=” failed with error code 1 in /tmp/pip-build-tios8crr/PyDispatcher/
winter
February 19, 2018, 8:32pm
480
Confusing, but do you have PyDispatcher installed in pip? It mentions this.
pip3 install 'PyDispatcher>=2.0.5'
winter
February 19, 2018, 8:40pm
481
Checkout this:
I get the following error when following these instructions
Command “/usr/bin/python3 -u -c “import setuptools, tokenize;file=’/tmp/pip-build-3wid9_cl/PyDispatcher/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(’\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” install --record /tmp/pip-2wpx09_v-record/install-record.txt --single-version-externally-managed --compile –flavor=ozwdev” failed with error code 1 in /tmp/pip-build-3wid9_cl/PyDispatcher/
Same error, something about virtual environments.
pdobrien3
(Dan)
February 19, 2018, 9:07pm
482
I do appreciate your help. Things went from bad to worse. I saw something about the repo not having the libopenzwave.a files. It was above my head ;-). Way above my head. Anyway, thank goodness for backups. I am back to where I was and may take a shot at it again when I have time.
winter
February 19, 2018, 10:27pm
483
I dont think the repo is suppose to have the .a files, I think they are compiled. The reason is that your libopenzwave.a is failing to compile and thats why it’s missing. Could be either a missing dependency or the repo is not good.
What is the repo? I can see if I can compile it here.
pdobrien3
(Dan)
February 19, 2018, 11:50pm
484
Under pdobrien3. Thank you.
winter
February 20, 2018, 12:52am
485
Installed perfectly for me. Maybe you can attach the full compile log?