Linear NGDZ00-4 Garage Door

Alright the very weird thing is when i start/restart/reboot 1.5 gets overwritten with 1.4 which explains why I couldn’t get the cover to show when adding in zwave when using “pip3 install python-openzwave --install-option=”–flavor=ozwdev"

I updated my install instructions to the following:

cd /home/homeassistant/.homeassistant
sudo systemctl stop [email protected]
sudo su -s /bin/bash homeassistant
source /srv/homeassistant/bin/activate
pip3 uninstall python_openzwave
pip3 install --no-cache-dir python-openzwave==0.4.3 --install-option="–flavor=ozwdev"

When I start hass though i get the following:
Mar 17 20:24:56 raspberrypi systemd[1]: [email protected]: Main process exited, code=killed, status=6/ABRT
Mar 17 20:24:56 raspberrypi systemd[1]: [email protected]: Unit entered failed state.
Mar 17 20:24:56 raspberrypi systemd[1]: [email protected]: Failed with result ‘signal’.

Any ideas?

I did try to blow away the DB and let Hass rebuild it.
I did edit the /srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/zwave/init.py and edited the version to 0.4.4 but i’m getting getting the same error and can’t start.

Should be 0.4.3 if you’re using 0.4.3 libs.

I tried 0.4.3 and 0.4.4 both yield the same error when trying to start.

Mar 17 20:24:56 raspberrypi systemd[1]: [email protected]: Main process exited, code=killed, status=6/ABRT
Mar 17 20:24:56 raspberrypi systemd[1]: [email protected]: Unit entered failed state.
Mar 17 20:24:56 raspberrypi systemd[1]: [email protected]: Failed with result ‘signal’

Uninstalling open-zwave and starting Hass reverts to the latest from Hass and starts normally.

Hi folks,
Are we still in a position where the garage door is still not supported as a cover in the main branch? If so is the additional edits not worth pushing?

I’m having an issue having this device (removed from wink) show up as a cover. However my blinds show up as a cover?

The garage door is a barrier class device and the barrier class is not supported in the main OZW branch. Cover is an HA device / description.

1 Like

Thanks for clarifying, been down a custom route before only to see it rolled out in the next version so wanted to check how much extra tinkering was needed.

The issue is OpenZwave not officially supporting it yet on their master branch, you can get support via their dev branch. I have been running that for over a year and it’s working fine for me. YMMV

No modifications to HA need to be done.

1 Like

Anything else need to be modified for ubuntu in the script other than the file locations? script has seemingly worked, had a bunch of warnings of deprecations. On to testing :slight_smile:

Not sure I’ve only used it on a Pi.

ok. i’ll report back with any issues - seems to be ok so far (although i know i’m going to immediately regret saying that)

EDIT: [On Ubuntu 17.0]
versions were the same in the script
file locations needed changing
(in my example user was different)
I also had an issue with /usr/lib/python3.6… permissions (but seemingly easy enough to fix)

now on to test the garage door itself this eve

I got it to work. I’m using the following Dockerfile:

FROM homeassistant/home-assistant:0.65.5

RUN set -e && \
    pip uninstall -y python_openzwave && \

    pip3 install --upgrade cython==0.24.1 && \
    pip3 install --no-cache-dir python_openzwave==0.4.3 --install-option="--flavor=ozwdev" && \
    mkdir -p /usr/local/share/python-openzwave && \
    ln -s /usr/local/lib/python3.6/site-packages/python_openzwave/ozw_config /usr/local/share/python-openzwave/config

I did lose all my device names. Also, when I secure paired it, I got a MAC error, and had to do “Refresh Node” (and perhaps a restart) for it to get me the coveted “Cover” widget.

Yeah I wish they would just release a new version of openzwave. It’s been years since the last release.

1 Like

Tried these manually, all went fine but still getting same error :frowning:
Mar 17 20:24:56 raspberrypi systemd[1]: [email protected]: Main process exited, code=killed, status=6/ABRT
Mar 17 20:24:56 raspberrypi systemd[1]: [email protected]: Unit entered failed state.
Mar 17 20:24:56 raspberrypi systemd[1]: [email protected]: Failed with result ‘signal’

not going to lie - this is a MASSIVE ball ache.

who do we have to pressure on the OZW to add a freaking garage door?

cant build open-zwave-control-panel (and cant figure out what isnt right) - and REALLY dont want to have to do ANOTHER rebuild to get a garage door working

edited covers/zwave.py as per guidance above - but not able to install dev version of ozcp

You can use my branch of openzwave, I just synced to the upstream master branch.

1 Like

Could someone here good with linux check the below (i tried a lot of things, but ulitmately i feel this is what got it working). Hoping it will help others
EDIT:
ok finally got it working. dev worked ozwdev flavor did not. version 4.4.0 NOT 4.3.0
let me attempt to explain what is happening for not linux/non devs out there.
I’m using:

Ubuntu 17.10 with a virtual environment

so my steps were a little different - but the initial part was the same - and well should be similar across the board. note i use XXXX for your homeassistant location below.
It seems the barrier components are missing from open-zwave, despite HA being ready for when it is included. The task here is to build open-zwave from a dev version (or in this instance a fork with the barrier components) then installing it instead of the current version HA uses. The last step is to then tell HA the version is slightly different

i cant say if i needed libmicrohttpd or not, but follow these steps to get that installed.

cd /XXXX/src
mkdir libmicrohttpd
chown user:user libmicrohttpd             #<---note user:user change to your HA user
cd /XXXX/src/libmicrohttpd
wget ftp://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-0.9.19.tar.gz
chown user:user libmicrohttpd-0.9.19.tar.gz
tar zxvf libmicrohttpd-0.9.19.tar.gz
chown user:user libmicrohttpd-0.9.19
cd libmicrohttpd-0.9.19
./configure
make
make install

Then using Linear NGDZ00-4 Garage Door - #522 by winter

cd XXXXX               #{where XXXX} is your homeassistant folder
source bin/activate
cd src
git clone https://github.com/ryanwinter/open-zwave.git
cd open-zwave
make #{should make the open-wave stuff}
pip3 install cython wheel six
pip3 install 'PyDispatcher>=2.0.5'
pip3 uninstall python_openzwave
export LOCAL_OPENZWAVE=/XXXX/src/open-zwave    #{as above XXXX is Homeassistant folder}
pip3 install 'python_openzwave' --install-option="--flavor=dev"

now last thing to note is the version mine was 0.4.4
locate the file

XXXX/lib/python3.6/site-packages/homeassistant/components/zwave/_init _.py’

and change the line to this:

REQUIREMENTS = [‘pydispatcher==2.0.5’, ‘python_openzwave==0.4.4’]
(paying close attention to ensure the 0.4.4 matches whatever was built in the open-zwave build

1 Like

so i have it installed - and cover shows (and displays correctly when manually triggering garage opener) but it isnt responding to cover.open_cover or cover.close_cover

thoughts?

Does a cover show up in the dev-states? the <> button

so a reboot seemed to solve it - all working

A lot quicker locally than Wink! just a shame we cant bug the OZW folks to push boundary to master (or build HA with a open-zwave build that contains it just for us :slight_smile: )

1 Like

Usually the pip install method with the added flags work without any additional meddling so there really isn’t a need. :stuck_out_tongue: