Open Zwave initialize

I went by the AIO instructions at

Had to muck with symlinks to get OpenZwave to start but worked through that.

Now I can’t get OpenZwave to recognize my AEON LABS Zstick 2.

my dmesg:

[195405.213315] cp210x ttyUSB0: cp210x converter now disconnected from ttyUSB0
[195405.213372] cp210x 1-1.2:1.0: device disconnected
[281595.334594] usb 1-1.2: new full-speed USB device number 6 using dwc_otg
[281595.471098] usb 1-1.2: New USB device found, idVendor=10c4, idProduct=ea60
[281595.471111] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[281595.471119] usb 1-1.2: Product: CP2102 USB to UART Bridge Controller
[281595.471127] usb 1-1.2: Manufacturer: Silicon Labs
[281595.471135] usb 1-1.2: SerialNumber: 0001
[281595.474182] cp210x 1-1.2:1.0: cp210x converter detected
[281595.483125] usb 1-1.2: cp210x converter now attached to ttyUSB0

I stop HomeAssistant and start OpenZwave:

2017-09-16 18:29:03.331 Always, OpenZwave Version 1.4.2723 Starting Up
webserver starting port 8888
post: key=dev data=\dev\ttyUSB0 size=12
post: key=fn data=open size=4
post: key=usb data=false size=5
2017-09-16 18:29:26.958 Info, Setting Up Provided Network Key for Secure Communications
2017-09-16 18:29:26.958 Warning, Failed - Network Key Not Set
2017-09-16 18:29:26.959 Info, mgr, Added driver for controller \dev\ttyUSB0
2017-09-16 18:29:26.960 Info, Opening controller \dev\ttyUSB0
2017-09-16 18:29:26.960 Info, Trying to open serial port \dev\ttyUSB0 (attempt 1)
2017-09-16 18:29:26.960 Error, ERROR: Cannot open serial port \dev\ttyUSB0. Error code 2
2017-09-16 18:29:26.960 Error, ERROR: Failed to open serial port \dev\ttyUSB0
2017-09-16 18:29:26.960 Warning, WARNING: Failed to init the controller (attempt 0)
2017-09-16 18:29:31.961 Info, Opening controller \dev\ttyUSB0
2017-09-16 18:29:31.961 Info, Trying to open serial port \dev\ttyUSB0 (attempt 1

Is the stick on /dev/ttyUSB0?

What does ls -al /dev/ttyUSB0 show?

pi@raspberrypi:/srv/homeassistant/src/open-zwave-control-panel $ ls -al /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 0 Sep 16 18:22 /dev/ttyUSB0

You’re sure that’s the stick?

What does sudo id homeassistant show?

pi@raspberrypi:/srv/homeassistant/src/open-zwave-control-panel $ sudo id homeassistant
uid=999(homeassistant) gid=996(homeassistant) groups=996(homeassistant),20(dialout),44(video),997(gpio)

pi@raspberrypi:/srv/homeassistant/src/open-zwave-control-panel $ sudo lshw
raspberrypi
description: ARMv7 Processor rev 4 (v7l)
product: Raspberry Pi 3 Model B Rev 1.2
serial: 00000000f341e399
width: 32 bits
capabilities: smp
*-core
description: Motherboard
physical id: 0
*-cpu:0
description: CPU
product: cpu
physical id: 0
bus info: cpu@0
size: 1200MHz
capacity: 1200MHz
capabilities: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 cpufreq
*-cpu:1
description: CPU
product: cpu
physical id: 1
bus info: cpu@1
size: 1200MHz
capacity: 1200MHz
capabilities: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 cpufreq
*-cpu:2
description: CPU
product: cpu
physical id: 2
bus info: cpu@2
size: 1200MHz
capacity: 1200MHz
capabilities: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 cpufreq
*-cpu:3
description: CPU
product: cpu
physical id: 3
bus info: cpu@3
size: 1200MHz
capacity: 1200MHz
capabilities: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 cpufreq
*-memory
description: System memory
physical id: 4
size: 927MiB
*-usbhost
product: DWC OTG Controller
vendor: Linux 4.9.41-v7+ dwc_otg_hcd
physical id: 1
bus info: usb@1
logical name: usb1
version: 4.09
capabilities: usb-2.00
configuration: driver=hub slots=1 speed=480Mbit/s
*-usb
description: USB hub
product: SMC9514 Hub
vendor: Standard Microsystems Corp.
physical id: 1
bus info: usb@1:1
version: 2.00
capabilities: usb-2.00
configuration: driver=hub maxpower=2mA slots=5 speed=480Mbit/s
*-usb:0
description: Generic USB device
product: SMSC9512/9514 Fast Ethernet Adapter
vendor: Standard Microsystems Corp.
physical id: 1
bus info: usb@1:1.1
version: 2.00
capabilities: usb-2.00
configuration: driver=smsc95xx maxpower=2mA speed=480Mbit/s
*-usb:1
description: Generic USB device
product: CP2102 USB to UART Bridge Controller
vendor: Silicon Labs
physical id: 2
bus info: usb@1:1.2
version: 1.00
serial: 0001
capabilities: usb-1.10
configuration: driver=cp210x maxpower=100mA speed=12Mbit/s
*-network:0
description: Ethernet interface
physical id: 2
logical name: eth0
serial: b8:27:eb:41:e3:99
size: 100Mbit/s
capacity: 100Mbit/s
capabilities: ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=smsc95xx driverversion=22-Aug-2005 duplex=full firmware=smsc95xx USB 2.0 Ethernet ip=192.168.0.141 link=yes multicast=yes port=MII speed=100Mbit/s
*-network:1
description: Wireless interface
physical id: 3
logical name: wlan0
serial: b8:27:eb:14:b6:cc
capabilities: ethernet physical wireless
configuration: broadcast=yes driver=brcmfmac driverversion=7.45.41.46 firmware=01-f8a78378 multicast=yes wireless=IEEE 802.11

and remove aeon stick:

pi@raspberrypi:/srv/homeassistant/src/open-zwave-control-panel $ sudo lshw
raspberrypi
description: ARMv7 Processor rev 4 (v7l)
product: Raspberry Pi 3 Model B Rev 1.2
serial: 00000000f341e399
width: 32 bits
capabilities: smp
*-core
description: Motherboard
physical id: 0
*-cpu:0
description: CPU
product: cpu
physical id: 0
bus info: cpu@0
size: 1200MHz
capacity: 1200MHz
capabilities: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 cpufreq
*-cpu:1
description: CPU
product: cpu
physical id: 1
bus info: cpu@1
size: 1200MHz
capacity: 1200MHz
capabilities: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 cpufreq
*-cpu:2
description: CPU
product: cpu
physical id: 2
bus info: cpu@2
size: 1200MHz
capacity: 1200MHz
capabilities: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 cpufreq
*-cpu:3
description: CPU
product: cpu
physical id: 3
bus info: cpu@3
size: 1200MHz
capacity: 1200MHz
capabilities: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 cpufreq
*-memory
description: System memory
physical id: 4
size: 927MiB
*-usbhost
product: DWC OTG Controller
vendor: Linux 4.9.41-v7+ dwc_otg_hcd
physical id: 1
bus info: usb@1
logical name: usb1
version: 4.09
capabilities: usb-2.00
configuration: driver=hub slots=1 speed=480Mbit/s
*-usb
description: USB hub
product: SMC9514 Hub
vendor: Standard Microsystems Corp.
physical id: 1
bus info: usb@1:1
version: 2.00
capabilities: usb-2.00
configuration: driver=hub maxpower=2mA slots=5 speed=480Mbit/s
*-usb
description: Generic USB device
product: SMSC9512/9514 Fast Ethernet Adapter
vendor: Standard Microsystems Corp.
physical id: 1
bus info: usb@1:1.1
version: 2.00
capabilities: usb-2.00
configuration: driver=smsc95xx maxpower=2mA speed=480Mbit/s
*-network:0
description: Ethernet interface
physical id: 2
logical name: eth0
serial: b8:27:eb:41:e3:99
size: 100Mbit/s
capacity: 100Mbit/s
capabilities: ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=smsc95xx driverversion=22-Aug-2005 duplex=full firmware=smsc95xx USB 2.0 Ethernet ip=192.168.0.141 link=yes multicast=yes port=MII speed=100Mbit/s
*-network:1
description: Wireless interface
physical id: 3
logical name: wlan0
serial: b8:27:eb:14:b6:cc
capabilities: ethernet physical wireless
configuration: broadcast=yes driver=brcmfmac driverversion=7.45.41.46 firmware=01-f8a78378 multicast=yes wireless=IEEE 802.11

So, permissions are right, but lshw doesn’t tell us about the device links in /dev.

Insert the stick, run ls /dev/tty*, remove the stick, run ls /dev/tty*. In the second, one tty device will be missing, that’s the stick.

With the stick:

pi@raspberrypi:/srv/homeassistant/src/open-zwave-control-panel $ ls /dev/tty*
/dev/tty /dev/tty11 /dev/tty15 /dev/tty19 /dev/tty22 /dev/tty26 /dev/tty3 /dev/tty33 /dev/tty37 /dev/tty40 /dev/tty44 /dev/tty48 /dev/tty51 /dev/tty55 /dev/tty59 /dev/tty62 /dev/tty9
/dev/tty0 /dev/tty12 /dev/tty16 /dev/tty2 /dev/tty23 /dev/tty27 /dev/tty30 /dev/tty34 /dev/tty38 /dev/tty41 /dev/tty45 /dev/tty49 /dev/tty52 /dev/tty56 /dev/tty6 /dev/tty63 /dev/ttyAMA0
/dev/tty1 /dev/tty13 /dev/tty17 /dev/tty20 /dev/tty24 /dev/tty28 /dev/tty31 /dev/tty35 /dev/tty39 /dev/tty42 /dev/tty46 /dev/tty5 /dev/tty53 /dev/tty57 /dev/tty60 /dev/tty7 /dev/ttyprintk
/dev/tty10 /dev/tty14 /dev/tty18 /dev/tty21 /dev/tty25 /dev/tty29 /dev/tty32 /dev/tty36 /dev/tty4 /dev/tty43 /dev/tty47 /dev/tty50 /dev/tty54 /dev/tty58 /dev/tty61 /dev/tty8 /dev/ttyUSB0

without stick:
pi@raspberrypi:/srv/homeassistant/src/open-zwave-control-panel $ ls /dev/tty*
/dev/tty /dev/tty11 /dev/tty15 /dev/tty19 /dev/tty22 /dev/tty26 /dev/tty3 /dev/tty33 /dev/tty37 /dev/tty40 /dev/tty44 /dev/tty48 /dev/tty51 /dev/tty55 /dev/tty59 /dev/tty62 /dev/tty9
/dev/tty0 /dev/tty12 /dev/tty16 /dev/tty2 /dev/tty23 /dev/tty27 /dev/tty30 /dev/tty34 /dev/tty38 /dev/tty41 /dev/tty45 /dev/tty49 /dev/tty52 /dev/tty56 /dev/tty6 /dev/tty63 /dev/ttyAMA0
/dev/tty1 /dev/tty13 /dev/tty17 /dev/tty20 /dev/tty24 /dev/tty28 /dev/tty31 /dev/tty35 /dev/tty39 /dev/tty42 /dev/tty46 /dev/tty5 /dev/tty53 /dev/tty57 /dev/tty60 /dev/tty7 /dev/ttyprintk
/dev/tty10 /dev/tty14 /dev/tty18 /dev/tty21 /dev/tty25 /dev/tty29 /dev/tty32 /dev/tty36 /dev/tty4 /dev/tty43 /dev/tty47 /dev/tty50 /dev/tty54 /dev/tty58 /dev/tty61 /dev/tty8

This may be operator error:

I clicked USB in OPENzwave web interface and see this after clicking initialize:

post: key=dev data= /dev/ttyUSB0 size=13
post: key=fn data=open size=4
post: key=usb data=true size=4

What else should I be able to see in web interface?

This is a stick that was in a machine running HomeGenie. Shouldn’t the stick already know about nodes?

Do I need to reassociate it with the zwave devices it has been running under HomeGenie?

Don’t use OpenZWave’s control panel, you don’t need it and it may just complicate things for you.

The stick will know about the paired devices. Are you saying that none show up in your HA dev-states? Do you have a zwcfg_*.xml file in /home/homeassistant/.homeassistant/?

I do not:

pi@raspberrypi:/home/homeassistant/.homeassistant $ ls
automations.yaml configuration.yaml customize.yaml deps groups.yaml home-assistant.log home-assistant_v2.db scripts.yaml tts

But third try putting:
zwave:
usb_path: /dev/ttyUSB0
into configuration.yaml and I am seeing zwave devices in home assistant web interface.

thanks.

I guess creating that file takes awhile. I just checked:

pi@raspberrypi:/home/homeassistant/.homeassistant $ ls
automations.yaml customize.yaml groups.yaml home-assistant_v2.db pyozw.sqlite tts zwscene.xml
configuration.yaml deps home-assistant.log OZW_Log.txt scripts.yaml zwcfg_0x01853264.xml

I think it’s only written to on shutdown from memory