Z-wave Docker Home Assistant

Hello,

I’ve installed Ubuntu 18 LTS version. Also with Docker, Portainer. And Home Assistant (0.104.2)
But i’m now stuck at adding the z-wave aeon stick passtrough to HA.

I’ve already done,

in etc/udev/rules.d/99-com.rules add the following line to the end:

SUBSYSTEM=="tty", ATTRS{idVendor}=="0658", ATTRS{idProduct}=="0200", SYMLINK+="ttyUSB-ZStick-5G"

but i’m now stuck at adding this to the run command.
the manual i followed is pointing me to stop the container and then under media add

'–device /dev/ttyUSB-ZStick-5G:/dev/ttyUSB-ZStick-5G`

But i don’t have something called media. Can someone pointing me to the right direction ?

Thanks.

With Kind Regards,

GodZZila

What is the manual you are following? There is a guide that I followed in the Documentation.

Depending on how you run the container can effect how you invoke the passthrough.

Here is a section of my docker-compose file:

  homeassistant:
    container_name: home-assistant
    image: homeassistant/home-assistant:latest
    volumes:
      - /home/homeassistant/.docker/homeassistant:/config
      - /etc/localtime:/etc/localtime:ro
    devices:
      - /dev/ttyACM0:/dev/ttyACM0
    restart: unless-stopped
    network_mode: host

I would highly recommend installing docker compose once you get used to docker.

1 Like

Docker Compose makes your configuration much clearer, it’s very similar to the configuration yaml files Home Assistant uses. The end of that documentation link above has some examples, and you can find other examples and useful commands at https://github.com/artmg/home-assistant-docker

Others have mentioned how to pass the USB stick to docker. I’ll recommend ditching the custom udev rules and just use the default ones. The path /dev/serial/by-id/usb-0658_0200-if00 works for Aeotec sticks (and others) without doing anything custom.

I forget to mention i’ve installed hassio instead of HA only.

i followed this installation file.

how do i pase this to docker? i tried with docker-compose but then it recreate an container without hassio options.

or is it better to install the hassio for intel nuc image straight to the SSD Drive?

You could try the hass.io image for NUC if that’s all you plan to use it for. You will be restricted to running only HA and the addons, nothing else, AFAIK.

Are you sure you have to do anything special to pass in the USB device? I though the Hass.io supervisor does everything for you. It certainly will not pick up your custom udev path though. Did you try listing the devices already, as the instructions suggest? Does it show anything?

Also, make sure you follow the instructions to disable ModemManager, or you will have a lot of trouble.

if i try what you said, i’m getting this

2020-01-19 19:51:17.149 Always, OpenZwave Version 1.4.3452 Starting Up
2020-01-19 19:51:18.677 Info, Setting Up Provided Network Key for Secure Communications
2020-01-19 19:51:18.677 Warning, Failed - Network Key Not Set
2020-01-19 19:51:18.677 Info, mgr, Added driver for controller /dev/serial/by-id/usb-0658_0200-if00
2020-01-19 19:51:18.677 Info, Opening controller /dev/serial/by-id/usb-0658_0200-if00
2020-01-19 19:51:18.677 Info, Trying to open serial port /dev/serial/by-id/usb-0658_0200-if00 (attempt 1)
2020-01-19 19:51:18.678 Info, Serial port /dev/serial/by-id/usb-0658_0200-if00 opened (attempt 1)
2020-01-19 19:51:18.678 Detail, contrlr, Queuing (Command) FUNC_ID_ZW_GET_VERSION: 0x01, 0x03, 0x00, 0x15, 0xe9
2020-01-19 19:51:18.678 Detail, contrlr, Queuing (Command) FUNC_ID_ZW_MEMORY_GET_ID: 0x01, 0x03, 0x00, 0x20, 0xdc
2020-01-19 19:51:18.678 Detail, contrlr, Queuing (Command) FUNC_ID_ZW_GET_CONTROLLER_CAPABILITIES: 0x01, 0x03, 0x00, 0x05, 0xf9
2020-01-19 19:51:18.679 Detail, contrlr, Queuing (Command) FUNC_ID_SERIAL_API_GET_CAPABILITIES: 0x01, 0x03, 0x00, 0x07, 0xfb
2020-01-19 19:51:18.679 Detail, contrlr, Queuing (Command) FUNC_ID_ZW_GET_SUC_NODE_ID: 0x01, 0x03, 0x00, 0x56, 0xaa
2020-01-19 19:51:18.679 Detail,
2020-01-19 19:51:18.679 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x15) - FUNC_ID_ZW_GET_VERSION: 0x01, 0x03, 0x00, 0x15, 0xe9
2020-01-19 19:51:19.180 Warning, WARNING: 500ms passed without reading the rest of the frame…aborting frame read
2020-01-19 19:51:19.180 Warning, contrlr, WARNING: NAK received…triggering resend
2020-01-19 19:51:19.180 Error, contrlr, ERROR: Dropping command, expected response not received after 1 attempt(s)
2020-01-19 19:51:19.180 Detail, contrlr, Removing current message
2020-01-19 19:51:19.180 Warning, WARNING: Out of frame flow! (0x5a). Sending NAK.
2020-01-19 19:51:19.180 Detail,
2020-01-19 19:51:19.180 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x20) - FUNC_ID_ZW_MEMORY_GET_ID: 0x01, 0x03, 0x00, 0x20, 0xdc
2020-01-19 19:51:19.180 Detail, Unsolicited message received while waiting for ACK.
2020-01-19 19:51:19.184 Detail, contrlr, Received: 0x01, 0x10, 0x01, 0x5a, 0x2d, 0x57, 0x61, 0x76, 0x65, 0x20, 0x34, 0x2e, 0x35, 0x34, 0x00, 0x01, 0x93, 0x18
2020-01-19 19:51:19.184 Warning, contrlr, WARNING: Checksum incorrect - sending NAK
2020-01-19 19:51:19.185 Detail, Unsolicited message received while waiting for ACK.
2020-01-19 19:51:19.186 Detail, contrlr, Received: 0x01, 0x10, 0x01, 0x15, 0x5a, 0x2d, 0x57, 0x61, 0x76, 0x65, 0x20, 0x34, 0x2e, 0x35, 0x34, 0x00, 0x01, 0x93
2020-01-19 19:51:19.186 Detail,
2020-01-19 19:51:19.186 Info, contrlr, Received reply to FUNC_ID_ZW_GET_VERSION:
2020-01-19 19:51:19.186 Info, contrlr, Static Controller library, version Z-Wave 4.54
2020-01-19 19:51:20.186 Error, contrlr, ERROR: Dropping command, expected response not received after 1 attempt(s)
2020-01-19 19:51:20.186 Detail, contrlr, Removing current message
2020-01-19 19:51:20.186 Detail, contrlr, Notification: Notification - TimeOut
2020-01-19 19:51:20.186 Detail,
2020-01-19 19:51:20.186 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x05) - FUNC_ID_ZW_GET_CONTROLLER_CAPABILITIES: 0x01, 0x03, 0x00, 0x05, 0xf9
2020-01-19 19:51:20.187 Detail, contrlr, Received: 0x01, 0x04, 0x01, 0x05, 0x08, 0xf7
2020-01-19 19:51:20.187 Detail,
2020-01-19 19:51:20.187 Info, contrlr, Received reply to FUNC_ID_ZW_GET_CONTROLLER_CAPABILITIES:
2020-01-19 19:51:20.187 Info, contrlr, There is no SUC ID Server (SIS) in this network.
2020-01-19 19:51:20.187 Info, contrlr, The PC controller is a primary controller.
2020-01-19 19:51:20.187 Detail, Node247, Expected reply was received
2020-01-19 19:51:20.187 Detail, Node247, Message transaction complete
2020-01-19 19:51:20.187 Detail,
2020-01-19 19:51:20.188 Detail, contrlr, Removing current message
2020-01-19 19:51:20.188 Detail,
2020-01-19 19:51:20.188 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x07) - FUNC_ID_SERIAL_API_GET_CAPABILITIES: 0x01, 0x03, 0x00, 0x07, 0xfb
2020-01-19 19:51:20.191 Detail, contrlr, Received: 0x01, 0x2b, 0x01, 0x07, 0x01, 0x01, 0x00, 0x86, 0x00, 0x01, 0x00, 0x5a, 0xfe, 0x81, 0xff, 0x88, 0x4f, 0x1f, 0x00, 0x00, 0xfb, 0x9f, 0x7d, 0xa0, 0x67, 0x00, 0x00, 0x80, 0x00, 0x80, 0x86, 0x00, 0x00, 0x00, 0xe8, 0x73, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x60, 0x00, 0x00, 0xfa
2020-01-19 19:51:20.191 Detail,
2020-01-19 19:51:20.191 Info, contrlr, Received reply to FUNC_ID_SERIAL_API_GET_CAPABILITIES
2020-01-19 19:51:20.191 Info, contrlr, Serial API Version: 1.1
2020-01-19 19:51:20.191 Info, contrlr, Manufacturer ID: 0x0086
2020-01-19 19:51:20.191 Info, contrlr, Product Type: 0x0001
2020-01-19 19:51:20.191 Info, contrlr, Product ID: 0x005a
2020-01-19 19:51:20.191 Detail, contrlr, Queuing (Command) FUNC_ID_ZW_GET_RANDOM: 0x01, 0x04, 0x00, 0x1c, 0x20, 0xc7
2020-01-19 19:51:20.191 Detail, contrlr, Queuing (Command) FUNC_ID_SERIAL_API_GET_INIT_DATA: 0x01, 0x03, 0x00, 0x02, 0xfe
2020-01-19 19:51:20.191 Detail, contrlr, Queuing (Command) FUNC_ID_SERIAL_API_SET_TIMEOUTS: 0x01, 0x05, 0x00, 0x06, 0x64, 0x0f, 0x97
2020-01-19 19:51:20.191 Detail, contrlr, Queuing (Command) FUNC_ID_SERIAL_API_APPL_NODE_INFORMATION: 0x01, 0x07, 0x00, 0x03, 0x01, 0x02, 0x01, 0x00, 0xf9
2020-01-19 19:51:20.191 Detail, Node001, Expected reply was received
2020-01-19 19:51:20.191 Detail, Node001, Message transaction complete
2020-01-19 19:51:20.191 Detail,
2020-01-19 19:51:20.191 Detail, contrlr, Removing current message
2020-01-19 19:51:20.191 Detail,
2020-01-19 19:51:20.191 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x56) - FUNC_ID_ZW_GET_SUC_NODE_ID: 0x01, 0x03, 0x00, 0x56, 0xaa
2020-01-19 19:51:20.193 Detail, contrlr, Received: 0x01, 0x04, 0x01, 0x56, 0x00, 0xac
2020-01-19 19:51:20.193 Detail,
2020-01-19 19:51:20.193 Info, contrlr, Received reply to GET_SUC_NODE_ID. Node ID = 0
2020-01-19 19:51:20.193 Info, Controller Does not Support SUC - Cannot Setup Controller as SUC Node
2020-01-19 19:51:20.193 Detail, Node172, Expected reply was received
2020-01-19 19:51:20.193 Detail, Node172, Message transaction complete
2020-01-19 19:51:20.193 Detail,
2020-01-19 19:51:20.193 Detail, contrlr, Removing current message
2020-01-19 19:51:20.193 Detail,
2020-01-19 19:51:20.193 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x1c) - FUNC_ID_ZW_GET_RANDOM: 0x01, 0x04, 0x00, 0x1c, 0x20, 0xc7
2020-01-19 19:51:20.747 Warning, WARNING: 500ms passed without reading the rest of the frame…aborting frame read
2020-01-19 19:51:20.747 Detail, contrlr, Received: 0x01, 0x1c, 0x20, 0x44, 0x34, 0xdf, 0xb2, 0x5d, 0xd1, 0xd0, 0x42, 0x20, 0x72, 0xc9, 0x88, 0xe8, 0xef, 0x2e, 0x0d, 0x2d, 0xbf, 0xe8, 0x20, 0x23, 0x1e, 0x56, 0x05, 0x6b, 0x4b, 0x6e
2020-01-19 19:51:20.747 Warning, contrlr, WARNING: Checksum incorrect - sending NAK
2020-01-19 19:51:20.749 Detail, contrlr, Received: 0x01, 0x25, 0x01, 0x1c, 0x01, 0x20, 0x44, 0x34, 0xdf, 0xb2, 0x5d, 0xd1, 0xd0, 0x42, 0x20, 0x72, 0xc9, 0x88, 0xe8, 0xef, 0x2e, 0x0d, 0x2d, 0xbf, 0xe8, 0x20, 0x23, 0x1e, 0x56, 0x05, 0x6b, 0x4b, 0x6e, 0x23, 0xeb, 0xa6, 0x48, 0x29, 0xa7
2020-01-19 19:51:20.749 Detail,
2020-01-19 19:51:20.749 Info, contrlr, Received reply to FUNC_ID_ZW_GET_RANDOM: true
2020-01-19 19:51:20.749 Detail, Node032, Expected reply was received
2020-01-19 19:51:20.749 Detail, Node032, Message transaction complete
2020-01-19 19:51:20.749 Detail,
2020-01-19 19:51:20.749 Detail, contrlr, Removing current message
2020-01-19 19:51:20.749 Detail,
2020-01-19 19:51:20.750 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x02) - FUNC_ID_SERIAL_API_GET_INIT_DATA: 0x01, 0x03, 0x00, 0x02, 0xfe
2020-01-19 19:51:20.848 Detail, contrlr, Received: 0x01, 0x25, 0x01, 0x02, 0x05, 0x00, 0x1d, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0xc7
2020-01-19 19:51:20.848 Detail,
2020-01-19 19:51:20.848 Fatal, Failed to get HomeID or Controller Node ID during Init Sequence, m_homeId = 0x00000000, m_Controller_nodeId = 255
2020-01-19 19:51:20.848 Detail, Notification: DriverFailed

Did you disable modemmanager as mentioned?

i now have, but the same error in the log.

i think it is working. i’ve rebooted the complete host. so after disabling the modem manager. it looks like it is working. ill try to add a node

yep working. so disabling the momdemmanager dit the trick.
with using this as path.

zwave:
usb_path: /dev/serial/by-id/usb-0658_0200-if00

thanks everyone and specially freshcoast :wink: