Need help getting ZWave GPIO on raspberry-pi3 to work

I’m running the cURL-command, but it just sits there forever and doesn’t complete.

curl -d '{"devices": ["ttyAMA0"]}' http://172.17.0.2/homeassistant/options

Any ideas why? I’m also receiving a bunch of errors when I try to manage the z-wave stick:

2017-09-08 23:15:36.839 Always, OpenZwave Version 1.4.2508 Starting Up
2017-09-08 23:15:36.880 Info, Setting Up Provided Network Key for Secure Communications
2017-09-08 23:15:36.880 Warning, Failed - Network Key Not Set
2017-09-08 23:15:36.880 Info, mgr, Added driver for controller /dev/ttyAMA0
2017-09-08 23:15:36.880 Info, Opening controller /dev/ttyAMA0
2017-09-08 23:15:36.880 Info, Trying to open serial port /dev/ttyAMA0 (attempt 1)
2017-09-08 23:15:36.881 Info, Serial port /dev/ttyAMA0 opened (attempt 1)
2017-09-08 23:15:36.882 Detail, contrlr, Queuing (Command) FUNC_ID_ZW_GET_VERSION: 0x01, 0x03, 0x00, 0x15, 0xe9
2017-09-08 23:15:36.882 Detail, contrlr, Queuing (Command) FUNC_ID_ZW_MEMORY_GET_ID: 0x01, 0x03, 0x00, 0x20, 0xdc
2017-09-08 23:15:36.882 Detail, contrlr, Queuing (Command) FUNC_ID_ZW_GET_CONTROLLER_CAPABILITIES: 0x01, 0x03, 0x00, 0x05, 0xf9
2017-09-08 23:15:36.882 Detail, contrlr, Queuing (Command) FUNC_ID_SERIAL_API_GET_CAPABILITIES: 0x01, 0x03, 0x00, 0x07, 0xfb
2017-09-08 23:15:36.882 Detail, contrlr, Queuing (Command) FUNC_ID_ZW_GET_SUC_NODE_ID: 0x01, 0x03, 0x00, 0x56, 0xaa
2017-09-08 23:15:36.882 Detail,
2017-09-08 23:15:36.882 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x15) - FUNC_ID_ZW_GET_VERSION: 0x01, 0x03, 0x00, 0x15, 0xe9
2017-09-08 23:15:37.882 Error, contrlr, ERROR: Dropping command, expected response not received after 1 attempt(s)
2017-09-08 23:15:37.883 Detail, contrlr, Removing current message
2017-09-08 23:15:37.883 Detail, contrlr, Notification: Notification - TimeOut

Hi,

in the end I was fed up and could not make it work properly.
Now I quit with the idea to run HA and the Zwave GPIO board all installed on 1 RPi.
I am now using the RPI where HA is installed, and a separate Gateway.
(VERA Plus controller because it is compatible with HA )

hey,
after iseb’s somewhat frustrated reply - which I completely understand - I just wanted to make sure you are aware that this thread did help me to understand what is going on an to help me, get my Z-Wave module to work on my new hass.io raspberry-pi3.
After all I did exactly what was documented here: Z-Wave - Home Assistant including the curl command.
My personal opinion - remove the sentence: “For some exceptional devices, the /dev/ttyAMA0 will not be detected by udev and are therefor not mapped with docker. So you need explicit set this device for mapping to Home-Assistant.” from the homepage. It might confuse some people. But after all my technical experience is certainly not good enough to judge if that could cause trouble for some configurations ?!??


To enable Z-Wave, plug your Z-Wave USB stick into your Raspberry Pi 3 and add the following to your configuration.yaml:

zwave:
usb_path: /dev/ttyACM0

If you need GPIO on raspberry-pi3 for you Z-Wave module add follow line into config.txt:

dtoverlay=pi3-miniuart-bt

For some exceptional devices, the /dev/ttyAMA0 will not be detected by udev and are therefor not mapped with docker. So you need explicit set this device for mapping to Home-Assistant. Execute this command on ssh add-on:

$ curl -d ‘{“devices”: [“ttyAMA0”]}’ http://hassio/homeassistant/options

After that, you need change usb_path to /dev/ttyAMA0.

1 Like

Hey gerds423

That may be fine for you but I have the exact same problem as iseb. I too, am thinking of giving up on this and searching for other alternatives.
I followed the instructions from the link you mention and get the following result:
core-ssh:~# curl -d ‘{“devices”: [“ttyAMA0”]}’ http://hassio/homeassistant/options
{“result”: “ok”, “data”: {}}core-ssh:~#
However, this does nothing and does not create the tty device.

Lucky you.

hey dwdion,
really sorry to hear about your trouble. Unfortunately I also gave up now as well, as I could not get the RFLink to work on hass.io, in a way due to a similar problem. If I am not all wrong hass.io and therefore docker are closer to the hardware and therefore need to provide the access to the actual home assistant installation and that appears to cause the trouble.
Until that is fixed, I also went back to hassbian.
Back to your problem - the output you get looks right to me - any log errors that we could look at?

Hi Gerd and thanks for the reply.

The Razberry is now working. I guess I was too impatient. However, I do not like it that you cannot see a lot of things on the hass.io. The devices created, for example are not visible over the ssh connection. This is most likely a separate instance than that being used for the home assistant. It makes troubleshooting very difficult.
I did think about hassbian and might give it a look at. I would like a solution that supports both z-wave and a Hue bridge as I have already bought some of these items.

Thanks again.

Cheers

Denis

How do you modify config.txt on Pi 3, I cant find this file

from a different thread:

looks to me that something went wrong on the copy and past. Try to copy and paste and the remove the
'
and retype them in. Somehow the copy and past result is not the same

Have put a few days now to get a Razberry card to work with Hass.io.

Can I make the conclution that it will NEVER work propperly?
If thats the case can someone please make an official statement that this combination never will work.

Just don’t claim it will work.
The docks information seems faulty as is, according to this thread.

I got as far as I have some z-wave control page, can’t add devices thou.
In the log there is a driver failure!

So hass.io might have to go!

Hey!
It works for me.
The thread is one year old, I’m not sure that’s the most up to date information.

Can you please confirm that you are running the latest version of HassOS? HassOS 1.13 is my version right now.

Have you added

dtoverlay=pi3-miniuart-bt
into your config.txt?

What do you mean by this:

The docks information seems faulty as is, according to this thread.

B

its been a while since I had my pi up. I am struggling having the Zwave module to work ,as I want to add my sensor again. tried to restart the zwave on the gui with no luck… Anybody can remind me what could be the issue :slight_smile:

   pi@raspberrypi:/srv/homeassistant/lib/python3.5/site-packages/python_openzwave/ozw_config$ ls -ltr /dev/tty*|tail -n 1
crw-rw---- 1 root dialout 204, 64 Dec  9 11:45 /dev/ttyAMA0
pi@raspberrypi:/srv/homeassistant/lib/python3.5/site-packages/python_openzwave/ozw_config$ ls -l /dev/ttyAMA0
crw-rw---- 1 root dialout 204, 64 Dec  9 11:45 /dev/ttyAMA0
pi@raspberrypi:/srv/homeassistant/lib/python3.5/site-packages/python_openzwave/ozw_config$ 
pi@raspberrypi:/srv/homeassistant/lib/python3.5/site-packages/python_openzwave/ozw_config$ 
pi@raspberrypi:/srv/homeassistant/lib/python3.5/site-packages/python_openzwave/ozw_config$ tail -f /home/homeassistant/.homeassistant/OZW_Log.txt 
2018-12-09 11:45:54.522 Detail, 
2018-12-09 11:45:54.522 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x07) - FUNC_ID_SERIAL_API_GET_CAPABILITIES: 0x01, 0x03, 0x00, 0x07, 0xfb
2018-12-09 11:45:55.523 Error, contrlr, ERROR: Dropping command, expected response not received after 1 attempt(s)
2018-12-09 11:45:55.523 Detail, contrlr, Removing current message
2018-12-09 11:45:55.523 Detail, contrlr, Notification: Notification - TimeOut
2018-12-09 11:45:55.534 Detail, 
2018-12-09 11:45:55.534 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x56) - FUNC_ID_ZW_GET_SUC_NODE_ID: 0x01, 0x03, 0x00, 0x56, 0xaa
2018-12-09 11:45:56.534 Error, contrlr, ERROR: Dropping command, expected response not received after 1 attempt(s)
2018-12-09 11:45:56.535 Detail, contrlr, Removing current message
2018-12-09 11:45:56.535 Detail, contrlr, Notification: Notification - TimeOut
2018-12-09 11:55:11.637 Error, mgr,     Manager::GetDriver failed - Home ID 0x00000000 is unknown
2018-12-09 11:55:11.637 Warning, Exception: Manager.cpp:373 - 100 - Invalid HomeId passed to GetDriver
2018-12-09 11:55:11.637 Info, mgr,     Manager::WriteConfig failed - _homeId 0 not found
2018-12-09 11:55:12.640 Detail, Notification: DriverRemoved
2018-12-09 11:55:12.640 Always, ***************************************************************************
2018-12-09 11:55:12.640 Always, *********************  Cumulative Network Statistics  *********************
2018-12-09 11:55:12.640 Always, *** General
2018-12-09 11:55:12.640 Always, Driver run time: . .  . 0 days, 0 hours, 9 minutes
2018-12-09 11:55:12.640 Always, Frames processed: . . . . . . . . . . . . . . . . . . . . 0
2018-12-09 11:55:12.641 Always, Total messages successfully received: . . . . . . . . . . 0
2018-12-09 11:55:12.641 Always, Total Messages successfully sent: . . . . . . . . . . . . 5
2018-12-09 11:55:12.641 Always, ACKs received from controller:  . . . . . . . . . . . . . 0
2018-12-09 11:55:12.641 Always, *** Errors
2018-12-09 11:55:12.641 Always, Unsolicited messages received while waiting for ACK:  . . 0
2018-12-09 11:55:12.641 Always, Reads aborted due to timeouts:  . . . . . . . . . . . . . 0
2018-12-09 11:55:12.641 Always, Bad checksum errors:  . . . . . . . . . . . . . . . . . . 0
2018-12-09 11:55:12.641 Always, CANs received from controller:  . . . . . . . . . . . . . 0
2018-12-09 11:55:12.641 Always, NAKs received from controller:  . . . . . . . . . . . . . 0
2018-12-09 11:55:12.641 Always, Out of frame data flow errors:  . . . . . . . . . . . . . 0
2018-12-09 11:55:12.641 Always, Messages retransmitted: . . . . . . . . . . . . . . . . . 0
2018-12-09 11:55:12.642 Always, Messages dropped and not delivered: . . . . . . . . . . . 5
2018-12-09 11:55:12.642 Always, ***************************************************************************
2018-12-09 11:55:12.642 Warning, WARNING: Tried to write driver config with no home ID set
2018-12-09 11:55:14.644 Info, mgr,     Driver for controller /dev/ttyAMA0 removed
2018-12-09 11:55:20.489 Info, Setting Up Provided Network Key for Secure Communications
2018-12-09 11:55:20.489 Info, mgr,     Added driver for controller /dev/ttyAMA0
2018-12-09 11:55:20.490 Info,   Opening controller /dev/ttyAMA0
2018-12-09 11:55:20.490 Info, Trying to open serial port /dev/ttyAMA0 (attempt 1)
2018-12-09 11:55:20.490 Info, Serial port /dev/ttyAMA0 opened (attempt 1)
2018-12-09 11:55:20.491 Detail, contrlr, Queuing (Command) FUNC_ID_ZW_GET_VERSION: 0x01, 0x03, 0x00, 0x15, 0xe9
2018-12-09 11:55:20.491 Detail, contrlr, Queuing (Command) FUNC_ID_ZW_MEMORY_GET_ID: 0x01, 0x03, 0x00, 0x20, 0xdc
2018-12-09 11:55:20.491 Detail, contrlr, Queuing (Command) FUNC_ID_ZW_GET_CONTROLLER_CAPABILITIES: 0x01, 0x03, 0x00, 0x05, 0xf9
2018-12-09 11:55:20.491 Detail, contrlr, Queuing (Command) FUNC_ID_SERIAL_API_GET_CAPABILITIES: 0x01, 0x03, 0x00, 0x07, 0xfb
2018-12-09 11:55:20.491 Detail, contrlr, Queuing (Command) FUNC_ID_ZW_GET_SUC_NODE_ID: 0x01, 0x03, 0x00, 0x56, 0xaa
2018-12-09 11:55:20.491 Detail, 
2018-12-09 11:55:20.491 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x15) - FUNC_ID_ZW_GET_VERSION: 0x01, 0x03, 0x00, 0x15, 0xe9
2018-12-09 11:55:21.492 Error, contrlr, ERROR: Dropping command, expected response not received after 1 attempt(s)
2018-12-09 11:55:21.492 Detail, contrlr, Removing current message
2018-12-09 11:55:21.492 Detail, contrlr, Notification: Notification - TimeOut
2018-12-09 11:55:21.500 Detail, 
2018-12-09 11:55:21.501 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x20) - FUNC_ID_ZW_MEMORY_GET_ID: 0x01, 0x03, 0x00, 0x20, 0xdc
2018-12-09 11:55:22.501 Error, contrlr, ERROR: Dropping command, expected response not received after 1 attempt(s)
2018-12-09 11:55:22.501 Detail, contrlr, Removing current message
2018-12-09 11:55:22.501 Detail, contrlr, Notification: Notification - TimeOut
2018-12-09 11:55:22.511 Detail, 
2018-12-09 11:55:22.511 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x05) - FUNC_ID_ZW_GET_CONTROLLER_CAPABILITIES: 0x01, 0x03, 0x00, 0x05, 0xf9
2018-12-09 11:55:23.511 Error, contrlr, ERROR: Dropping command, expected response not received after 1 attempt(s)
2018-12-09 11:55:23.511 Detail, contrlr, Removing current message
2018-12-09 11:55:23.512 Detail, contrlr, Notification: Notification - TimeOut
2018-12-09 11:55:23.522 Detail, 
2018-12-09 11:55:23.522 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x07) - FUNC_ID_SERIAL_API_GET_CAPABILITIES: 0x01, 0x03, 0x00, 0x07, 0xfb
2018-12-09 11:55:24.523 Error, contrlr, ERROR: Dropping command, expected response not received after 1 attempt(s)
2018-12-09 11:55:24.523 Detail, contrlr, Removing current message
2018-12-09 11:55:24.524 Detail, contrlr, Notification: Notification - TimeOut
2018-12-09 11:55:24.532 Detail, 
2018-12-09 11:55:24.533 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x56) - FUNC_ID_ZW_GET_SUC_NODE_ID: 0x01, 0x03, 0x00, 0x56, 0xaa
2018-12-09 11:55:25.533 Error, contrlr, ERROR: Dropping command, expected response not received after 1 attempt(s)
2018-12-09 11:55:25.534 Detail, contrlr, Removing current message
2018-12-09 11:55:25.534 Detail, contrlr, Notification: Notification - TimeOut[quote="bboti86, post:32, topic:23142, full:true"]
Hey! 
It works for me. 
The thread is one year old, I'm not sure that's the most up to date information. 

Can you please confirm that you are running the latest version of HassOS? HassOS 1.13 is my version right now. 

Have you added 
> dtoverlay=pi3-miniuart-bt 
into your config.txt? 

What do you mean by this:

> The docks information seems faulty as is, according to this thread.

B
[/quote]