Zeroconf error during first boot on fresh install

First time trying to install Home Assistant via the official docs: Manual installation on a Raspberry Pi
Near the end of the install I get to the point where I I run

(homeassistant) homeassistant@raspi:/srv/homeassistant $ pip3 install homeassistant

and after it was done with that, I’m supposed to run it for the first time via

(homeassistant) homeassistant@raspi:/srv/homeassistant $ hass

This takes a minute or two when it’s stuck on Starting Zeroconf broadcast , then I throws the Exception and is stuck in a loading state.

2020-01-28 23:25:58 INFO (SyncWorker_2) [homeassistant.components.zeroconf] Starting Zeroconf broadcast
Exception in thread zeroconf-ServiceBrowser__hap._tcp.local.:

Traceback

[..]
2020-01-28 23:25:56 INFO (MainThread) [homeassistant.setup] Setting up tts
2020-01-28 23:25:57 INFO (MainThread) [homeassistant.setup] Setup of domain tts took 0.0 seconds.
2020-01-28 23:25:57 INFO (SyncWorker_19) [homeassistant.loader] Loaded homekit_controller from homeassistant.components.homekit_controller
2020-01-28 23:25:58 INFO (MainThread) [homeassistant.bootstrap] Home Assistant initialized in 6.94s
2020-01-28 23:25:58 INFO (MainThread) [homeassistant.core] Starting Home Assistant
2020-01-28 23:25:58 INFO (MainThread) [homeassistant.core] Timer:starting
2020-01-28 23:25:58 INFO (SyncWorker_2) [homeassistant.components.zeroconf] Starting Zeroconf broadcast
Exception in thread zeroconf-ServiceBrowser__hap._tcp.local.:
Traceback (most recent call last):
  File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
    self.run()
  File "/srv/homeassistant/lib/python3.7/site-packages/zeroconf/__init__.py", line 1483, in run
    handler(self.zc)
  File "/srv/homeassistant/lib/python3.7/site-packages/zeroconf/__init__.py", line 1423, in <lambda>
    zeroconf=zeroconf, service_type=self.type, name=name, state_change=state_change
  File "/srv/homeassistant/lib/python3.7/site-packages/zeroconf/__init__.py", line 1301, in fire
    h(**kwargs)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/zeroconf/__init__.py", line 88, in service_update
    service_info = zeroconf.get_service_info(service_type, name)
  File "/srv/homeassistant/lib/python3.7/site-packages/zeroconf/__init__.py", line 2176, in get_service_info
    info = ServiceInfo(type_, name)
  File "/srv/homeassistant/lib/python3.7/site-packages/zeroconf/__init__.py", line 1530, in __init__
    if not type_.endswith(service_type_name(name, allow_underscores=True)):
  File "/srv/homeassistant/lib/python3.7/site-packages/zeroconf/__init__.py", line 262, in service_type_name
    raise BadTypeInNameException("Type '%s' must end with '._tcp.local.' or '._udp.local.'" % type_)
zeroconf.BadTypeInNameException: Type 'hap-059F40.local.' must end with '._tcp.local.' or '._udp.local.'

Additional information

  • I have a Raspberry Pi 4 (4GB) with a good 3A power supply, running from a class 10 SD card.
  • Raspbian Buster Lite is installed
  • Some noteworthy packages I’ve install over the past few days:
    • Apache
    • MariaDB
    • PHP 7.3
    • Homebridge
    • Domoticz (not my cup of tea, hence this install)

I have also tried reinstall zeroconf, which was mentioned in a different ticket here somewhere.

pip install zeroconf==0.24.0

I have also tried upgrading homeassistant after a full reboot because someone said it might load different dependencies then, no luck.

pip3 install --upgrade homeassistant

I have no idea what to do or try next?

I’ve re-installed Home Assistant twice now and everything is up and running. Still getting the Zeroconf error but the service is running and everything seems to be working fine in the web UI.

Not sure what finally fixed it, I’m just glad it’s okay now.