I made the above changes & now i have ozwcp back and can run it.
in OZWCP the GDO (node 2) displays:
“2 LBR+ Z-Wave+ node Always On Slave Access Control Sensor Unknown: id=014f Unknown: type=4744, id=3530 off 12:11:35 PM Ready”
under “current values” it’s now showing all the items listed in the OZWCP picture from your post above (#188).
the log at the bottom in OZWCP shows that it is running v1.5.2806.
in HA, my OZW_log.txt is still showing i’m on 1.4.2657 and there is still no cover component in HA. none of the sensors are showing the correct configuration (they still say "…access_control, …alarm_level, …alarm_type, …burglar, …sourcenodeid)
it is showing that it is Linear unknown type 4744 id 3530. so HA at least knows what type it is (sort of).
So to recover from what has already been done we need to delete the libopenzwave.cpython-34m.so file.
For me it’s in /srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/
Once you rm that file head back to the /srv/homeassistant/src/python-openzwave directory and run make once more on it (note you MIGHT need to run make clean first). This should create a new libopenzwave.cpython-34m.so and that’ll bring HA up to the 1.5.xxxxxx version.
Traceback (most recent call last):
File “setup-lib.py”, line 31, in
from Cython.Distutils import build_ext
ImportError: No module named Cython.Distutils
Makefile:62: recipe for target ‘clean’ failed
make: *** [clean] Error 1
My file location was ““/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/libopenzwave-0.3.3-py3.4-linux-armv7l.egg”. I renamed it to “libopenzwave.cpython-34m.so.old”
I then ran “sudo make clean” in the “python-openzwave” folder
I got the following error:
python setup-lib.py build
Traceback (most recent call last):
File “setup-lib.py”, line 31, in
from Cython.Distutils import build_ext
ImportError: No module named Cython.Distutils
Makefile:62: recipe for target ‘clean’ failed
make: *** [clean] Error 1
I then did “sudo make install”
I got the following error:
python setup-lib.py build
Traceback (most recent call last):
File “setup-lib.py”, line 31, in
from Cython.Distutils import build_ext
ImportError: No module named Cython.Distutils
Makefile:270: recipe for target ‘build’ failed
make: *** [build] Error 1
Those errors above were at the very end of the operation. The clean log was fairly small. The install log was pretty long.
Doing a search on both “setup-lib.py” & Cython.Distutils" found no instances anywhere.
source /srv/homeassistant/homeassistant_venv/bin/activate
cd /srv/homeassistant/src/python-openzwave
pip3 install --upgrade cython==0.24.1
make install
I am running Hassbain, Hass .48.1. Just tried to add Linear garage door opener.
I could not get any reactions using the hass front end. I switched over to the ozwcp.
I have generated a key and added to the options.xml (hopefully correctly)
& then run your script from post #181 above. I copied the contents of the script into a text file. saved it as open_zwave_patch_aio.sh in the /home/pi/ directory. I made it executable with:
$ chmod +x open_zwave_patch_aio.sh
here is a copy of the above file exactly as I am running it:
4 - after that completes, navigate to the /srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/cover/ directory and delete the contents of the files “init.py” & “zwave.py” and replace them with contents of the “proper-patch” files from github using the link from your post #202 above.
5 - Should OZWCP work at this point?
6 - If OZWCP doesn’t work then navigate to the /srv/homeassistant/src/open-zwave-control-panel directory. Edit the “makefile” file line 38, delete it and replace it with:
7 - If I do everything up to this point as listed above do you think I should be running openzwave v1.5 in both HA & OZWCP? And that both OZWCP & HA should show the correct indications for the GDO & sensors (cover component should display & all sensors including the door position sensor should all have an entity listing?
I just want to make sure to the best of my ability that I’m not screwing something up.
Starting from scratch isn’t really needed. Try executing the commands in the script one by one with a copy/paste.
The error you’re getting usually happens when the venv isn’t activated.
You can also give this a shot, download the file and upload it to your /srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/
Started running the patch script one line at a time.
I got to line 30 (pip3 uninstall -y python-openzwave)
Error returned is “Cannot uninstall requirement python-openzwave, not installed”
Ran
$ pip3 list
As user home-assistant in the venv and it didn’t show up in the list.
As a double check i also ran it as user pi and it wasn’t there either
I went to the python-openzwave directory and ran
$ make install
It said it was complete.
Ran $ pip3 list again, nothing.
Ran $ pip list, nothing for either user pi or home-assistant
I checked back through the install logs for AIO & found the following:
…
[localhost] sudo: git checkout python3
[localhost] out: error: pathspec ‘python3’ did not match any file(s) known to git.
[localhost] out:
Warning: sudo() received nonzero return code 1 while executing ‘git checkout python3’!
…
and a whole bunch of syntax warnings like the following:
…
[localhost] out: File “build/bdist.linux-armv7l/egg/socketio/virtsocket.py”, line 365
[localhost] out: except (ValueError, KeyError, Exception), e:
[localhost] out: ^
[localhost] out: SyntaxError: invalid syntax
[localhost] out:
…
Should i just continue on through the script at this point?
And as a side note:
Do the steps from my last post above (#207) look like they are correct?
It may help someone else trying to follow along with this long and winding thread. I was getting confused and I’m following pretty closely.
and @firstof9, I tried that for me and still got the 66 error.
I can see Node012, Decrypted Packet: 0x00, 0x66, 0x03, 0xff and the 0xff changes to 0x00 when move the tilt sensor.
ff is door up and 00 is door down.
But I still see the “don’t understand 66 class” message.
@penright Ok your’s looks compiled without error except for the ozwcp, which isn’t a big deal.
Step 0: Stop homeassistant
Step 1: cd /srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/zwave
Step 2: sudo nano __init__.py
Step 3: Line 40 make it look like this:
Step 4: CTRL X to save and close that file
Step 5: cd /home/homeassistant/.homeassistant/deps
Step 6: Here either rm -Rf * or try to find anything openzwave related and delete it (easier to rm -Rf *)
Step 7: Start homeassistant
HA should start re-downloading anything you deleted and start using the openzwave libs you compiled.
First, I found REQUIREMENTS in between the "from … " and “CONF_…”
First time I restarted hass looks like zwave did not load. I restarted and dropped down the node in the zwave section and watched it probed and waited till all showed completed.
Few notes:
Looks like all the zwave devices lost their names
I now see an entity cover. and it’s state is open, but if I go into the dev {{ states.cover.unknown_id014f_unknown_type4744_id3530_barrier_state_label.state }} it shows open but does not change when I move the sensor. The ozw log shows it is communicating without error.