Home Assistant Z-Wave Network Viewer (using Docker)

Yes, it is working now without ssl. Thanks!

I updated to Supervisor version 2020.12.6 and to Operating System
Home Assistant OS 5.8 and network viewer stopped working. I tried restarting and rebuilding but nothing worked. I uninstalled and now it will not install. I get this error.

The command '/bin/ash -o pipefail -c apk add --no-cache python3 py3-pip musl && apk add --no-cache --virtual .build-deps build-base python3-dev git libffi-dev openssl-dev && git clone --depth=1 https://github.com/elad-bar/ha-zwave-network.git && cd ha-zwave-network && pip install --no-cache-dir requests asyncws aiofiles flask pyopenssl && mkdir -p /web && find . -print | sed '/.git|Dockerfile/d' | cpio -pvdm / && apk del .build-deps && cd .. && rm -rf /usr/src/ha-zwave-network.git && mkdir /debug' returned a non-zero code: 39.

Help please.

I will fix it at the weekend

Great! Thank you.

Itā€™s still not working.

Hi,

Iā€™m running home assistant with OpenZWave (beta) and network viewer all of them in docker containers but Iā€™m not able to get a Z-wave graphic, both the graphic and the nodes.json are empty.

This is my log

INFO:Managers.configuration_manager:Configuration is valid, data: {'home_assistant_url': 'http://192.168.0.70:8123/', 'home_assistant_token': 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiI3MDIwYThjGQ0M2UxOTI5MmQ1NGU0NDM2YWExYiIsImlhdCI6MTYwMzE44gTyODQ2OCwiZXhwIjoxOTE4NDg4NDY4fQ.q3SG1VUeWNpNGNvSUYRr6QBrjNgxbeTgVRAAYoKIG9m0', 'ssl_key': '', 'ssl_certificate': '', 'is_debug': True, 'is_local': False, 'server_port': 6123, 'home_assistant_web_socket_url': 'ws://192.168.0.70:8123/', 'is_ssl': False, 'ssl_context': None}
 * Serving Flask app "webserver" (lazy loading)
DEBUG:asyncio:Using selector: EpollSelector
 * Environment: production
   WARNING: This is a development server. Do not use it in a production deployment.
   Use a production WSGI server instead.
INFO:Managers.data_manager:Connecting to ws://192.168.0.70:8123/
 * Debug mode: on
ERROR:Managers.data_manager:Failed to connect due to error: 'NoneType' object has no attribute 'encode' [LN: 96]
INFO:werkzeug: * Running on http://0.0.0.0:6123/ (Press CTRL+C to quit)
INFO:werkzeug: * Restarting with stat
INFO:Managers.configuration_manager:Configuration is valid, data: {'home_assistant_url': 'http://192.168.0.70:8123/', 'home_assistant_token': 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiI3MDIwYThjGQ0M2UxOTI5MmQ1NGU0NDM2YWExYiIsImlhdCI6MTYwMzE44gTyODQ2OCwiZXhwIjoxOTE4NDg4NDY4fQ.q3SG1VUeWNpNGNvSUYRr6QBrjNgxbeTgVRAAYoKIG9m0', 'ssl_key': '', 'ssl_certificate': '', 'is_debug': True, 'is_local': False, 'server_port': 6123, 'home_assistant_web_socket_url': 'ws://192.168.0.70:8123/', 'is_ssl': False, 'ssl_context': None}
DEBUG:asyncio:Using selector: EpollSelector
INFO:Managers.data_manager:Connecting to ws://192.168.0.70:8123/
WARNING:werkzeug: * Debugger is active!
INFO:werkzeug: * Debugger PIN: 196-535-277
ERROR:Managers.data_manager:Failed to connect due to error: 'NoneType' object has no attribute 'encode' [LN: 96]
INFO:Managers.data_manager:Connecting to ws://192.168.0.70:8123/
ERROR:Managers.data_manager:Failed to connect due to error: 'NoneType' object has no attribute 'encode' [LN: 96]
INFO:Managers.data_manager:Connecting to ws://192.168.0.70:8123/
ERROR:Managers.data_manager:Failed to connect due to error: 'NoneType' object has no attribute 'encode' [LN: 96]

Can anybody help me?

AFAIK this doesnā€™t work with the openzwave beta (yet).

Hi,

According to the description in GitHub it does

I was using the app with OpenZwave beta until it stopped when i upgraded Supervisor version 2020.12.6 and to Operating System Home Assistant OS 5.8.

Does this tool adjust the link line colors based on the link quality if the data is available via ozw?

FYI, this fails to build under the latest version of supervisor and HA when using @sjthespianā€™s add-on.

fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/main/aarch64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/community/aarch64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/main/aarch64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/community/aarch64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/testing/aarch64/APKINDEX.tar.gz
ERROR: unsatisfiable constraints:

  libcrypto1.1-1.1.1g-r0:
    breaks: openssl-dev-1.1.1i-r0[libcrypto1.1=1.1.1i-r0]
    satisfies: world[libcrypto1.1=1.1.1g-r0]
               ca-certificates-20191127-r4[so:libcrypto.so.1.1]
               python3-3.8.5-r0[so:libcrypto.so.1.1]
               libcurl-7.69.1-r0[so:libcrypto.so.1.1]
               apk-tools-2.10.5-r1[so:libcrypto.so.1.1]
               libssl1.1-1.1.1g-r0[so:libcrypto.so.1.1]
               libtls-standalone-2.9.1-r1[so:libcrypto.so.1.1]
  libssl1.1-1.1.1g-r0:
    breaks: openssl-dev-1.1.1i-r0[libssl1.1=1.1.1i-r0]
    satisfies: world[libssl1.1=1.1.1g-r0]
               python3-3.8.5-r0[so:libssl.so.1.1]
               libcurl-7.69.1-r0[so:libssl.so.1.1]
               apk-tools-2.10.5-r1[so:libssl.so.1.1]
               libtls-standalone-2.9.1-r1[so:libssl.so.1.1]
Removing intermediate container 6a18858c74dd

I will check it in the weekend, I have the same issueā€¦
Thanks

checked it once again, the OZWDaemon failed and thatā€™s caused the service ā€œfailureā€, so I donā€™t have a real issue working with OZW,
Are you using the docker or addon?

thanks

Hi Bar,

Iā€™m not sure if your question is for me but Iā€™m using OZWDaemon and Home Assistant core both running in docker containers

I meant for the zwave network viewer, is it the docker or addon of HA (how did you installed the viewer)?

Iā€™ve the viewer also installed in docker

according to the log above, it seems that you have connection issue with HA,
It can cause due to wrong URL or wrong token,
please make sure the url is accesible (from the container), if it is accesible, please generate a new long lived access token and update the environment variable.
please let me know if it worked for you

thanks

This is the error I get on installation:

## Failed to install addon

The command '/bin/ash -o pipefail -c apk add --no-cache python3 py3-pip musl && apk add --no-cache --virtual .build-deps build-base python3-dev git libffi-dev openssl-dev && git clone --depth=1 https://github.com/elad-bar/ha-zwave-network.git && cd ha-zwave-network && pip install --no-cache-dir requests asyncws aiofiles flask pyopenssl && mkdir -p /web && find . -print | sed '/.git|Dockerfile/d' | cpio -pvdm / && apk del .build-deps && cd .. && rm -rf /usr/src/ha-zwave-network.git && mkdir /debug' returned a non-zero code: 39

and this:

(3/33) Installing libffi (3.3-r2)
(4/33) Installing gdbm (1.13-r1)
(5/33) Installing xz-libs (5.2.5-r0)
(6/33) Installing sqlite-libs (3.32.1-r0)
(7/33) Installing python3 (3.8.5-r0)
(8/33) Installing py3-appdirs (1.4.4-r1)
(9/33) Installing py3-ordered-set (4.0.1-r0)
(10/33) Installing py3-parsing (2.4.7-r0)
(11/33) Installing py3-six (1.15.0-r0)
(12/33) Installing py3-packaging (20.4-r0)
(13/33) Installing py3-setuptools (47.0.0-r0)
(14/33) Installing py3-chardet (3.0.4-r4)
(15/33) Installing py3-idna (2.9-r0)
(16/33) Installing py3-certifi (2020.4.5.1-r0)
(17/33) Installing py3-urllib3 (1.25.9-r0)
(18/33) Installing py3-requests (2.23.0-r0)
(19/33) Installing py3-msgpack (1.0.0-r0)
(20/33) Installing py3-lockfile (0.12.2-r3)
(21/33) Installing py3-cachecontrol (0.12.6-r0)
(22/33) Installing py3-colorama (0.4.3-r0)
(23/33) Installing py3-distlib (0.3.0-r0)
(24/33) Installing py3-distro (1.5.0-r1)
(25/33) Installing py3-webencodings (0.5.1-r3)
(26/33) Installing py3-html5lib (1.0.1-r4)
(27/33) Installing py3-pytoml (0.1.21-r0)
(28/33) Installing py3-pep517 (0.8.2-r0)
(29/33) Installing py3-progress (1.5-r0)
(30/33) Installing py3-toml (0.10.1-r0)
(31/33) Installing py3-retrying (1.3.3-r0)
(32/33) Installing py3-contextlib2 (0.6.0-r0)
(33/33) Installing py3-pip (20.1.1-r0)
Executing busybox-1.31.1-r16.trigger
OK: 72 MiB in 58 packages
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/main/aarch64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/community/aarch64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/main/aarch64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/community/aarch64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/testing/aarch64/APKINDEX.tar.gz
ERROR: unsatisfiable constraints:


  libcrypto1.1-1.1.1g-r0:
    breaks: openssl-dev-1.1.1i-r0[libcrypto1.1=1.1.1i-r0]
    satisfies: world[libcrypto1.1=1.1.1g-r0]
               ca-certificates-20191127-r4[so:libcrypto.so.1.1]
               python3-3.8.5-r0[so:libcrypto.so.1.1]
               libcurl-7.69.1-r0[so:libcrypto.so.1.1]
               apk-tools-2.10.5-r1[so:libcrypto.so.1.1]
               libssl1.1-1.1.1g-r0[so:libcrypto.so.1.1]
               libtls-standalone-2.9.1-r1[so:libcrypto.so.1.1]
  libssl1.1-1.1.1g-r0:
    breaks: openssl-dev-1.1.1i-r0[libssl1.1=1.1.1i-r0]
    satisfies: world[libssl1.1=1.1.1g-r0]
               python3-3.8.5-r0[so:libssl.so.1.1]
               libcurl-7.69.1-r0[so:libssl.so.1.1]
               apk-tools-2.10.5-r1[so:libssl.so.1.1]
               libtls-standalone-2.9.1-r1[so:libssl.so.1.1]
Removing intermediate container 1b1425fb1809

Hi Bar,

I tried generating a new token but I still get the error

ERROR:Managers.data_manager:Failed to connect due to error: 'NoneType' object has no attribute 'encode' [LN: 96]

I build my containers with docker compose and my HA container is in host mode so I tried to ping my host IP address from inside the viewer container with the following command and I get a response

docker exec -ti ha-zwave-network ping 192.168.0.70

Do you have any other ideas?

since I didnā€™t create the addon, I cannot fix it,
It requires the addon ownerā€™s attention to align packages