Open ZWave Control Panel / Docker Help

I’m just getting started with Home Assistant and Z-wave, and am a bit lost on how to start pairing my z-wave devices. This isn’t exactly HA related, but hoping some of you can help!

My server runs unraid (nas os), which I can run docker containers on, but not directly install software on. I have the official home assistant docker running, and my z-wave usb stick (Sigma UZB) is on /dev/ttyACM0

My plan was to pari everything in the Open Z-Wave CP, then bring it into HA. I’m assuming Open Z-Wave CP needs to be installed in its own docker container, so I shut down the HA docker, installed Open Z-Wave CP docker, and started it up with params --device /dev/ttyACM0.

The Web UI for OZWCP comes up fine… but everything is blank. I added “/dev/ttyACM0” to the device name input, and click Initialize, but just end up with errors. I have tried this with and without the USB checkbox checked, and have tried restarting a few different times.

See log:

2016-08-12 19:07:30.419 Always, OpenZwave Version 1.4.0 Starting Up
2016-08-12 19:08:55.863 Info, Setting Up Provided Network Key for Secure Communications
2016-08-12 19:08:55.863 Warning, Failed - Network Key Not Set
2016-08-12 19:08:55.863 Info, mgr, Added driver for controller /dev/ttyACM0
2016-08-12 19:08:55.863 Info, Opening controller /dev/ttyACM0
2016-08-12 19:08:55.863 Info, Trying to open serial port /dev/ttyACM0 (attempt 1)
2016-08-12 19:08:55.863 Error, ERROR: Cannot open serial port /dev/ttyACM0. Error code 13
2016-08-12 19:08:55.863 Error, ERROR: Failed to open serial port /dev/ttyACM0

I’ve been experimenting with this for a bit now, but am lost on what to try next or what I’m missing.

Still unable to get this working, although HA seems to recognize the USB stick. See OZW_log.txt

2016-08-19 13:22:52.147 Always, OpenZwave Version 1.4.2099 Starting Up
2016-08-19 13:22:52.729 Info, Setting Up Provided Network Key for Secure Communications
2016-08-19 13:22:52.729 Warning, Failed - Network Key Not Set
2016-08-19 13:22:52.729 Info, mgr, Added driver for controller /dev/ttyACM0
2016-08-19 13:22:52.729 Info, Opening controller /dev/ttyACM0
2016-08-19 13:22:52.729 Info, Trying to open serial port /dev/ttyACM0 (attempt 1)
2016-08-19 13:22:52.729 Info, Serial port /dev/ttyACM0 opened (attempt 1)
2016-08-19 13:22:52.729 Detail, contrlr, Queuing (Command) FUNC_ID_ZW_GET_VERSION: 0x01, 0x03, 0x00, 0x15, 0xe9
2016-08-19 13:22:52.729 Detail, contrlr, Queuing (Command) FUNC_ID_ZW_MEMORY_GET_ID: 0x01, 0x03, 0x00, 0x20, 0xdc
2016-08-19 13:22:52.729 Detail, contrlr, Queuing (Command) FUNC_ID_ZW_GET_CONTROLLER_CAPABILITIES: 0x01, 0x03, 0x00, 0x05, 0xf9
2016-08-19 13:22:52.729 Detail, contrlr, Queuing (Command) FUNC_ID_SERIAL_API_GET_CAPABILITIES: 0x01, 0x03, 0x00, 0x07, 0xfb
2016-08-19 13:22:52.729 Detail, contrlr, Queuing (Command) FUNC_ID_ZW_GET_SUC_NODE_ID: 0x01, 0x03, 0x00, 0x56, 0xaa
2016-08-19 13:22:52.729 Detail,

Anyone else using the OZWCP docker? Is there an alternative way I should be doing this?

I can run the OZWCP… but can’t figure out how to automatically share the config files of OZWCP with my HA config. In HA, I can set the config path to any directory, and therefore can mount a volume with OZWCP config. However in OZWCP, the config gets saved in the same directory as the ozwcp executable, which I can’t mount from another volume because thats part of the docker container.

For now I manually am working around this by copying the saved config files in ozwcp to another directory (using docker exec)

Now, what controls the name of my z-wave devices? Do I need to set that in HA configuration.yaml or OZWCP. I have set the name in OZWCP, made sure it was included in the config files (zwcfg_*.xml) and included it in the config path for HA. However in HA I still get names like “Unknown: id=00c…”

How did you fix the OZWCP docker?
I’m having the same issue… HA docker is able to access /dev/ttyACM0 but the OZWCP docker is not.

Thanks

I believe you need to make sure the user you re running it as has access to the device. Usually need to be in group serial, or dialout.

thanks @tps but it was not a /dev/ttyACM0 access issue.
the ozwp did not have the zwcfg file.

I’ve run something like this:

docker run -d --name="ozw-cp" -u 0 -p 8008:8008 --device=/dev/ttyACM0 -v /etc/hass/zwcfg_0x016a2e06.xml:/home/ozwcp_user/open-zwave-control-panel/zwcfg_0x016a2e06.xml openzwave/openzwave-control-panel

3 Likes