Zwave Integration with Docker

Running Home Assistant/Docker with Ubuntu on Intel NUC.
I am able to find the Zwave USB as /dev/ttyAMC0

I’ve attempted to configure using the HA configuration | integrations widget but complains can’t find it.

However, according to docs here: https://www.home-assistant.io/docs/z-wave/installation/ (under “Platform Specific Instructions > Docker”), it states to add a command to Docker Host. This is where I’m lost.

  1. How do I access docker host from the command line.
  2. Wondering what modifications to the command I need to make to work with my instance:

docker run -d --name="home-assistant" -v /home/pi/homeassistant:/config -v /etc/localtime:/etc/localtime:ro --net=host --device=/dev/ttyACM0 homeassistant/raspberrypi3-homeassistant

… as my home directory is names /home/ha-admin - and I wouldn’t think that the “raspberrypi3” would be applicable.

1 Like

Googling “docker host” returns the machine that docker is running on. So you would run that command on the machines terminal.

Your docker command will look something like the following:

docker run -d --name="home-assistant" -v /home/ha-admin/homeassistant:/config -v /etc/localtime:/etc/localtime:ro --net=host --device=/dev/ttyACM0 homeassistant/home-assistant:latest

The first section is where the config files will be created. Just change that to the location you want.
The last portion is the container image on dockerhub. You can specify latest released or specific build.

Once you get comfortable with docker, take a look at docker-compose. It is a slightly different method, but I find it pretty simple to update all my containers at once.

1 Like

Thanks! Running this command returns:

docker: unknown server OS:

What exactly do you run, Home Assistant Core in Docker or Home Assistant Supervised on Ubuntu?
Where did you run this command?

I set up HA supervised on Ubuntu. As part of the docs, tells me to install Docker.
using ssh cli ran the command.

Then you need to check this section of the Z-Wave docs, especially the part after "ha hardware info"and not the one about Docker. The part about docker is for Home Assistant Core on top of docker. It’s a bit confusing because HA supervised also runs in docker :slight_smile:

I’ve attempted to configure using the HA configuration | integrations widget but complains can’t find it.

I’ve run that command:

ha hardware info

And get this for the USB stick:

/dev/ttyACM0

I’ve also run the system info command inside HA and get this:

Serial:
/dev/serial/by-id/usb-0658_0200-if00

Neither of these work when I attempt setting inside the configuration | integrations | z-wave section.

Did you disable modemmanager?
What does the Hardware button in the System section of the supervisor show?

Yes
What does the Hardware button in the System section of the supervisor show?

Serial:
/dev/serial/by-id/usb-0658_0200-if00

Did you plug in the USB stick after HA was already started? If so, try restarting HA. You don’t need to reboot the entire host, just go to Control Panel -> Server Control, click Restart. Try adding the integration again. Use the path /dev/serial/by-id/usb-0658_0200-if00.

Restart was the solution, autopopulated and running!