Installation on FreeNAS 9.10

Freenas is a free and open-source network-attached storage (NAS) software based on FreeBSD and the OpenZFS file system. It is licensed under the terms of the BSD License and runs on commodity x86-64 hardware.

This has been tested on the FreeNAS 9.10. These instructions assume you already have a running and accessible jail. For more information on creating a jail follow the official FreeNAS 9.10.x documentation HERE. Once you have the jail follow the steps below.

Install the necessary Python Packages.

# pkg update
# pkg upgrade
# pkg install python35
# pkg install py35-sqlite3
# python3.5 -m ensurepip

Install Home Assistant itself.

# pip3 install homeassistant

Create an /etc/rc.local file to enable Home Assistant to start when the jail starts. The command in /etc/rc.local can also be run in a terminal session but Home Assistant will exit when that session is closed.

# /usr/local/bin/hass --open-ui --config /home/.homeassistant/ &

Make /etc/rc.local executable so it runs on startup

# chmod 755 /etc/rc.local

Finally restart the jail from the Freenas GUI.

USB Z-wave sticks may give dmesg warnings similar to “data interface 1, has no CM over data, has no break”. This doesn’t impact the function of the Z-wave stick in Hass. Just make sure the proper /dev/cu* is used in the Home Assistant configuration.yaml file.