I purchased an HUSBZB-1 to control Z-wave as well as a couple of zigbee bulbs. I decided to start with a clean install since I did not have too much already configured. I removed all z-wave and zigbee devices so that I could pair them later.
I installed the current hass-io (0.69.1) to a Raspberry Pi 3. I enabled the addons for SSH and Samba.
I then added the following to my configuration.yaml:
zwave:
usb_path: /dev/ttyUSB0
When I do this, the hassio startup doesn’t complete.
The logfile /config/home-assistant.log only shows:
2018-05-28 09:28:48 WARNING (Recorder) [homeassistant.components.recorder] Ended unfinished session (id=41 from 2018-05-28 14:08:47.927876)
2018-05-28 09:29:05 WARNING (MainThread) [homeassistant.setup] Setup of config is taking over 10 seconds.
2018-05-28 09:29:18 WARNING (MainThread) [homeassistant.setup] Setup of zha is taking over 10 seconds.
If I comment out the zha lines from the config file it starts normally and the z-wave portion of the device configures correctly.
The “show hardware” under Hass,IO shows the following serial ports:
serial:
/dev/ttyUSB1
/dev/ttyAMA0
/dev/ttyUSB0
I have tried each of them and it hangs with each. I tried it both removing the /config/zigbee.db file and leaving it. But the results are the same.
I believe the z-wave port is /dev/ttyUSB0 and the zigbee port is /dev/ttyUSB1.
I can’t seem to find any other logfiles and am at a loss as to how to obtain additional info about why this is hanging. When it hangs I can access files via samba and ssh but can only find /config/home-assistant.log.
Any help or ideas on how to obtain more information would be appreciated.
Ditto for me as well. Just got my HUSBZB-1 adapter and home assistant won’t start. Tried /dev/ttyUSB0 and /dev/ttyUSB1 as well as made sure that hass user had dialout permissions (/dev/ttyUSB also belongs to dialout group with rw permissions) etc.
Can you verify that both ttyUSBx interfaces are being created? Also verify you have the right USB stick as I’ve seen a couple people get just the ZWave version and not the ZWave/Zigbee version.
I found out some further information on this problem.
First I verified that I do have an HUSBZB-1 per the packaging and if I plug it into a windows machine, I get two serial ports to show up. They have no driver so they are not usable but I think they are even named with zwave and zigbee.
But I have some concerns as these controllers are no longer made and have been unavailable. I kept checking and they were available on Amazon from a 3rd party. So I ordered but I am still a bit suspicious and this could be a part in which the zigbee is not working.
As far as debugging, I could not figure out how to get at things in different docker containers so I loaded a Haspien distro and it failed in the same way. But I can see the command that is hanging which prevents the rest of HA from coming up.
2018-05-19 16:07:37 DEBUG (MainThread) [bellows.uart] Sending: b’1ac038bc7e’
Turns out you can cause the same hang from the command prompt.
bash-4.4# bellows -v DEBUG -d /dev/ttyUSB1 info
debug: Using selector: EpollSelector
debug: Connected. Resetting.
debug: Sending: b’1ac038bc7e’
^C
Aborted!
This is from a github issue that was closed yesterday.
I don’t know if there is an issue with the underlying code casing the hang or if I, and others, have a bad controller. But at the very least HA should timeout at some point and move on to the rest of starting up.
Have you tried database_path: without the leading /config? Perhaps the Hass user does not have write permission there. I have the same stick and gave up trying to get zigbee to work. The db file would get created, but I could not get anything to pair with it. I ended up using a DeConz usb stick.
Has anyone figured out how to get this to work? I am running 0.77.3 and have the exact same issue of “WARNING (MainThread) [homeassistant.setup] Setup of zha is taking over 10 seconds.”
I am running mine in a docker container and the zwave section is working great. On my setup I use /dev/serial/by-id/usb-Silicon_Labs_HubZ_Smart_Home_Controller_512006CB-if01-port0 for the zigbee where if00 is the zwave. I went ahead and gave full write permissions to the zigbee.db and it still fails. It creates a zigbee.db file though. I opened that up with sqlite and the table structure is there but there is no data populated.
Is there another zigbee usb dongle that works really well I should consider? I am using smartthings through mqtt to control my zigbee devices but it would be nice to have HA do it directly.
If it’s a new install and the husbzb-1 is not working with Zigbee, go ahead and delete the following file using ssh.
/config/.storage/core.config_entries
You will probably need to stop home assistant before removing the file, then reboot the device.
It should recreate the file, then you can use nano on the core.config_entries file to make sure it has mapped the USB correctly.