Zha broken?

So all went well with my fresh all-in-one install on a raspi3, until I got to the zigbee part. I’m using a Linear HUSBZB-1 from Amazon, if it helps. The Zwave component loaded fine. Below is the part of my config pertaining to the zigbee portion.

zha:
usb_path: /dev/ttyUSB0
database_path: /home/homeassistant/.homeassistant/zigbee.db

It seems once I define a database path and restart homeassistant, the entire web interface just stops loading. “192.168.1.xxx refused to connect.” I’ve tried other variations based on different posts, such as leaving the path off (just zigbee.db). While the web interface loads, it says zha isn’t loaded properly, and the log shows:


File “/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/setup.py”, line 191, in async_setup_component
result = yield from component.async_setup(hass, processed_config)
File “/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/zha/init.py”, line 87, in async_setup
APPLICATION_CONTROLLER = ControllerApplication(ezsp
, database)
File “/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/bellows/zigbee/application.py”, line 29, in init
self._dblistener = bellows.zigbee.appdb.PersistingListener(database_file, self)
File “/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/bellows/zigbee/appdb.py”, line 29, in init
detect_types=sqlite3.PARSE_DECLTYPES)


I suspect the zha config I posted is the right one, but I can’t figure out why HA stops loading with it. The log (with that configuration), shows:


2017-09-20 03:12:36 WARNING (MainThread) [homeassistant.setup] Setup of zha is taking over 10 seconds.


Nothing else related to zha. Is there anything else to try? I checked to make sure the zigbee.db file is owned by the homeassistant account (it is) and even tried a different db file name.

Apologies is this is confusing, it is late but I wanted to pick the internet’s brain. If you need any other logs please let me know. I’ll appreciate any tips!

Is your zwave USB path using ttyUSB0? If so, change zha’s to ttyUSB1.

I have the same stick and zwave is 0 and zha is 1.

Here’s a reported issue. Not sure if it’s exactly the same or not…

https://github.com/home-assistant/home-assistant/issues/8922

Well I’m a dummy! That was it. Swear I tried that before…

Before I go digging too deep, are ZHA sensors like the smartthings multi known to be limited in functionality? I was able to pair one but it doesn’t show battery life or temp. Looking around to see if there’s a way to edit the zigbee.db info, but not having much luck. I’m all for tinkering if there is hope, but I’m worried I might just have to go all z-wave. The multi sensor works fine on the smartthings hub.

I have bad news (kind of) for you: sensors for battery life and temperature are not yet implemented. I started on hacking in support for the xiaomi sensors - but there is a lot of stuff todo in bellows and the zha home assistant component.

All of my Zigbee sensors that report temp are doing so successfully. So far, these are motion, door/window switches and water leak detectors.They do not report battery life and tampered status.

You are correct, my mistake. Temperature is supported

https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/zha/const.py: Line 40