I'm struggling to get started with python-openzwave because I can't find a simple example that actually works.
The hello_world.py example requires louie, which I don't have, and so far have failed in my attempts to install.
The tast_lib.py example gets further, but never shows any results when I toggle a light switch (which I know is bound to this controller, as it works with Home Assistant). It's not clear what the output of this example should be, but here's what I get:
> python3 test_lib.py --sniff=10
2017-10-21 07:27:24.305 Always, OpenZwave Version 1.4.2586 Starting Up
Add watcher
Add device
2017-10-21 07:27:24.305 Info, Setting Up Provided Network Key for Secure Communications
2017-10-21 07:27:24.305 Warning, Failed - Network Key Not Set
2017-10-21 07:27:24.305 Info, mgr, Added driver for controller /dev/tty.usbmodem1A1211
2017-10-21 07:27:24.305 Info, Opening controller /dev/tty.usbmodem1A1211
Sniff network for 10.0 seconds
2017-10-21 07:27:24.305 Info, Trying to open serial port /dev/tty.usbmodem1A1211 (attempt 1)
Remove watcher
Remove device
2017-10-21 07:27:34.306 Detail, Notification: DriverRemoved
2017-10-21 07:27:34.306 Always, ***************************************************************************
2017-10-21 07:27:34.306 Always, ********************* Cumulative Network Statistics *********************
2017-10-21 07:27:34.306 Always, *** General
2017-10-21 07:27:34.306 Always, Driver run time: . . . 0 days, 0 hours, 0 minutes
2017-10-21 07:27:34.306 Always, Frames processed: . . . . . . . . . . . . . . . . . . . . 0
2017-10-21 07:27:34.306 Always, Total messages successfully received: . . . . . . . . . . 0
2017-10-21 07:27:34.306 Always, Total Messages successfully sent: . . . . . . . . . . . . 0
2017-10-21 07:27:34.306 Always, ACKs received from controller: . . . . . . . . . . . . . 0
2017-10-21 07:27:34.306 Always, *** Errors
2017-10-21 07:27:34.306 Always, Unsolicited messages received while waiting for ACK: . . 0
2017-10-21 07:27:34.306 Always, Reads aborted due to timeouts: . . . . . . . . . . . . . 0
2017-10-21 07:27:34.306 Always, Bad checksum errors: . . . . . . . . . . . . . . . . . . 0
2017-10-21 07:27:34.306 Always, CANs received from controller: . . . . . . . . . . . . . 0
2017-10-21 07:27:34.306 Always, NAKs received from controller: . . . . . . . . . . . . . 0
2017-10-21 07:27:34.307 Always, Out of frame data flow errors: . . . . . . . . . . . . . 0
2017-10-21 07:27:34.307 Always, Messages retransmitted: . . . . . . . . . . . . . . . . . 0
2017-10-21 07:27:34.307 Always, Messages dropped and not delivered: . . . . . . . . . . . 0
2017-10-21 07:27:34.307 Always, ***************************************************************************
2017-10-21 07:27:34.307 Warning, WARNING: Tried to write driver config with no home ID set
...at which point, it locks up. Not even control-C interrupts it. I added another print command after the manager.removeDriver call, and that never appears, so it's clear it's locked up inside manager.removeDriver.
If I comment out the removeDriver call, then I can get the demo to exit. But as noted above, I never get any output during the "Sniff Network" phase.
I am running Python 3.6.3 on Mac OS X 10.11.6. I set the correct device for my Aeotec Z-Stick, but I don't know what that "Network Key" is that it's complaining about, so perhaps that's the problem.
Any tips?
Thank you,
- Joe