I have successfully configured the zigbee component previously to see my zigbee controller through hass and seeing that 0.44 may have a more native approach to using it was exciting.
So I upgraded to 0.44 with the hopes to use ZHA. Updated the config…yaml but getting errors. Anyone else getting this and know how to resolve?
2017-05-07 10:01:30 ERROR (MainThread) [homeassistant.setup] Error during setup of component zha
Traceback (most recent call last):
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/setup.py", line 185, in _async_setup_component
result = yield from component.async_setup(hass, processed_config)
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/zha/__init__.py", line 87, in async_setup
APPLICATION_CONTROLLER = ControllerApplication(ezsp_, database)
File "/home/homeassistant/.homeassistant/deps/bellows/zigbee/application.py", line 28, in __init__
self._dblistener = bellows.zigbee.appdb.PersistingListener(database_file, self)
File "/home/homeassistant/.homeassistant/deps/bellows/zigbee/appdb.py", line 29, in __init__
detect_types=sqlite3.PARSE_DECLTYPES)
sqlite3.OperationalError: unable to open database file
Based on the zha page it seems as though hass will generate the zigbee.db file, or am I wrong?
I’m guessing you’re hitting a permissions issue… does the user running hass have write access to the dir that the zigbee.db file should get created in?
Full path fixed the error, now when it tries to load it hangs when it attempts to process ZHA. Commented out HA loads perfectly. Awaiting 0.44.+ revisions.
I am having this same issue. I’m on HA 0.47.1 with the HZUZB Nortek stick
bellows -d /dev/ttyUSB1 devices
Traceback (most recent call last):
File "/srv/homeassistant/bin/bellows", line 9, in <module>
load_entry_point('bellows==0.2.7', 'console_scripts', 'bellows')()
File "/srv/homeassistant/lib/python3.4/site-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/srv/homeassistant/lib/python3.4/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/srv/homeassistant/lib/python3.4/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/srv/homeassistant/lib/python3.4/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/srv/homeassistant/lib/python3.4/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/srv/homeassistant/lib/python3.4/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/srv/homeassistant/lib/python3.4/site-packages/bellows/cli/application.py", line 56, in devices
app = bellows.zigbee.application.ControllerApplication(ezsp, database)
File "/srv/homeassistant/lib/python3.4/site-packages/bellows/zigbee/application.py", line 28, in __init__
self._dblistener = bellows.zigbee.appdb.PersistingListener(database_file, self)
File "/srv/homeassistant/lib/python3.4/site-packages/bellows/zigbee/appdb.py", line 29, in __init__
detect_types=sqlite3.PARSE_DECLTYPES)
sqlite3.OperationalError: unable to open database file
HA hangs if I leave the zha: in my configuration. I can see that the dependencies for zha installed and my zigbee.db file has been created.
I’ve found that sometimes the USB stick gets into a strange state, and unplugging and plugging it in again can resolve things that look like hangs.
The next version of hass (if the PRs get merged in time) will also use bellows 0.3, which has more robust handling of RST (the command sent to the USB stick at startup), so should hopefully fix some of those issues.
Thanks for the reply. I just noticed while I was messing with trying to get zha to work that it reset all my zwave names back to their defaults. I wonder if something is wrong my with stick, an unplug and reboot did not seem to help anything.
Was hoping to get some of these zigbee door sensors running but I will try again on the next release.