Home Assistant on FreeBSD

After a drive failed in my build server caused me to lose all the work I did to build packages for Home Assistant, I finally got motivated to rebuild it again. It took a long time to figure it all out again and never wanted to have to start from scratch so all of it is pushed into a git repo1 that can be used as a poudriere ports overlay.

This setup is used to bridge Z-Wave light switches to HomeKit so I can control them from my phone.

This is running on a Raspberry Pi 3, a Zooz USB 700 ZST10, and a bunch of Zooz 700 Series ZEN76 light switches.

Install Home Assistant:

pkg install multimedia/py-homeassistant

Start the Z-Wave service in a tmux pane:

chmod 660 /dev/ttyU0
zwave-server /dev/ttyU0

Start Home Assistant in another tmux pane:

hass --skip-pip --ignore-os-check

It will take a bit to start up, but then should be accessible in a browser on port 8123. Some errors are expected, because I don’t want to have cloud or mobile support as this will be local-only.

Once an account is created, the Z-Wave integration can be configured to point to the Z-Wave JS server on ws://localhost:3000. Then the light switches can be configured and added to their respective areas in Home Assistant:

Home Assistant lights

Once the lights are configured setup the HomeKit Bridge integration to allow exposing them to HomeKit.