I’m using the Nortek HUSBZB-1 stick for Z-Wave and Zigbee. It appears as though the Z-Wave is working and I actually got the Zigbee to work once and paired a sensor with it. When I rebooted, I ran into issues. I followed this environment setup for my Hass.io. Here’s my code:
zha:
usb_path: /dev/ttyUSB1
database_path: /home/homeassistant/.homeassistant/zigbee.db
When it worked, I commented out the database_path line and connected to a SmartThings Multipurpose sensor. I figured out through other comments in the forum that my zigbee.db file just doesn’t exist at all. I have tried to change the database_path to the config file for home assistant (similar to the Z-Wave) so the config looked like this:
zha:
usb_path: /dev/ttyUSB1
database_path: /usr/shared/hassio/homeassistant/zigbee.db
I have even tried to create the file using both touch zigbee.db
and sqlite3 aFile.db "create table aTable(field1 int); drop table aTable;"
. I created a /home/homeassistant/.homeassistant
directory and cranted full 777 permissions to both folders and changed ownership to the username being used by hass.io. I did the same when I created a file in /usr/shared/hassio/homeassistant, but that didn’t work either. After creating the new “user directory” and failing, I also tried to create the zigbee.db file in that folder and that didn’t work either.
I have tried changing the usb_path, but the zha domain disappears in services, so the usb_path should be correct.
I’ve been trying to force this to work for about 2 hours and I’m not really sure what I’m doing wrong (or why it worked once). Any ideas?