Zha & zha_new: setup and database error

I recently setup Hassio on a Ubuntu Server box and it’s running great. I have some Xiaomi sensors to add, so I though I’d try to do it without using the Xiaomi hub since I’m already using a HUSBZB-1 for Zwave.

I’m having trouble getting the ZHA_new custom component to run. I also tried the built-in ZHA component and have had the same problems.

When I use this config, the zigbee.db file gets created but then Home Assistant fails to load (even after a reboot).

zha:
  usb_path: /dev/ttyUSB1
  database_path: zigbee.db

Removing that from the config allows it to boot correctly.

Then I read that we need the full path to the db file. So I changed the config to read:

zha:
  usb_path: /dev/ttyUSB1
  database_path: /usr/share/hassio/homeassistant/zigbee.db  

That allows Home Assistant to boot, but I have a setup error on my overview screen that says “The following components could not be set up…” and it refers to the ZHA component. Checking the log files reveals this:

  • sqlite3.OperationalError: unable to open database file

I’ve verified that’s the correct path in SSH and FTP. Any ideas on how I can get this working?