Homebridge won't start anymore

since yesterday, homebridge isn’t working anymore.

Versions: Hass.io with current Versions:
Home Assistant 0.68.1
supervisor 103.1
Homebridge-plugin 2.4.0

homebridge log:
[2018-5-6 10:12:13] Loaded plugin: homebridge-homeassistant
[2018-5-6 10:12:13] Registering platform ‘homebridge-homeassistant.HomeAssistant’
[2018-5-6 10:12:13] —
[2018-5-6 10:12:13] Loaded config.json with 0 accessories and 1 platforms.
[2018-5-6 10:12:13] —
[2018-5-6 10:12:13] Loading 1 platforms…
[2018-5-6 10:12:13] [HomeAssistant] Initializing HomeAssistant platform…
[2018-5-6 10:12:13] [HomeAssistant] Fetching HomeAssistant devices.
[2018-5-6 10:12:13] Loading 0 accessories…
undefined:1
<html><head><title>500 Internal Server Error</title></head><body><h1>500 Internal Server Error</h1>Server got itself in trouble</body></html>
^
SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse ()
at Request.request [as _callback] (/usr/lib/node_modules/homebridge-homeassistant/index.js:101:38)
at Request.self.callback (/usr/lib/node_modules/homebridge-homeassistant/node_modules/request/request.js:186:22)
at emitTwo (events.js:126:13)
at Request.emit (events.js:214:7)
at Request. (/usr/lib/node_modules/homebridge-homeassistant/node_modules/request/request.js:1163:10)
at emitOne (events.js:116:13)
at Request.emit (events.js:211:7)
at IncomingMessage. (/usr/lib/node_modules/homebridge-homeassistant/node_modules/request/request.js:1085:12)
at Object.onceWrapper (events.js:313:30)

systemlog:

18-05-06 08:13:24 INFO (MainThread) [hassio.api.proxy] /homeassistant/api/states access from a0d7b954_homebridge
18-05-06 08:13:24 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/aiohttp/web_protocol.py”, line 381, in start
resp = await self._request_handler(request)
File “/usr/lib/python3.6/site-packages/aiohttp/web_app.py”, line 322, in _handle
resp = await handler(request)
File “/usr/lib/python3.6/site-packages/aiohttp/web_middlewares.py”, line 88, in impl
return await handler(request)
File “/usr/lib/python3.6/site-packages/hassio/api/security.py”, line 36, in token_validation
return await handler(request)
File “/usr/lib/python3.6/site-packages/hassio/api/proxy.py”, line 108, in api
client = await self._api_client(request, path)
File “/usr/lib/python3.6/site-packages/hassio/api/proxy.py”, line 37, in _api_client
method = getattr(self._websession_ssl, request.method.lower())
File “/usr/lib/python3.6/site-packages/hassio/coresys.py”, line 269, in __getattr__
raise AttributeError()
AttributeError
18-05-06 08:13:36 WARNING (MainThread) [hassio.api.proxy] Unknown Home-Assistant API access!
18-05-06 08:13:36 INFO (MainThread) [hassio.api.proxy] Home-Assistant EventStream start
18-05-06 08:13:36 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/aiohttp/web_protocol.py”, line 381, in start
resp = await self._request_handler(request)
File “/usr/lib/python3.6/site-packages/aiohttp/web_app.py”, line 322, in _handle
resp = await handler(request)
File “/usr/lib/python3.6/site-packages/aiohttp/web_middlewares.py”, line 88, in impl
return await handler(request)
File “/usr/lib/python3.6/site-packages/hassio/api/security.py”, line 36, in token_validation
return await handler(request)
File “/usr/lib/python3.6/site-packages/hassio/api/proxy.py”, line 77, in stream
client = await self._api_client(request, ‘stream’, timeout=None)
File “/usr/lib/python3.6/site-packages/hassio/api/proxy.py”, line 37, in _api_client
method = getattr(self._websession_ssl, request.method.lower())
File “/usr/lib/python3.6/site-packages/hassio/coresys.py”, line 269, in __getattr__
raise AttributeError()
AttributeError

This issue has been fixed upstream in the Supervisor. Release 103.2 fixes it.

To upgrade:

Thanks, but I can’t see your image I just see:

Goto the Hass.io panel -> System tab.
Hit the “Reload” button in the Supervisor card.
Wait for the “Update” button to show up, hit it!

Done :wink:

I don’t see an update button:

I’m sorry m8, but read my post again…

You missed a step. Hit “Reload”.

Sorry, seems like I was to eager. Now I see the update

1 Like

@frenck Thank you for your fast help, everything is working again

2 Likes

hi i am on 103.3 and homebridge is working but it nota appearing on my home app.
I had it setup butt a couple off days ago it stop working so i deleted the bridge from the home app.
is there any issues that you are experiencing? thanks

this is homebridge running

Successfully called chroot().
Successfully dropped remaining capabilities.
No service file found in /etc/avahi/services.
*** WARNING: Detected another IPv4 mDNS stack running on this host. This makes mDNS unreliable and is thus not recommended. ***
*** WARNING: Detected another IPv6 mDNS stack running on this host. This makes mDNS unreliable and is thus not recommended. ***
Joining mDNS multicast group on interface hassio.IPv6 with address fe80::42:4eff:fef2:80ce.
New relevant interface hassio.IPv6 for mDNS.
Joining mDNS multicast group on interface hassio.IPv4 with address 172.30.32.1.
New relevant interface hassio.IPv4 for mDNS.
Joining mDNS multicast group on interface eth0.IPv6 with address fe80::23f2:7f49:16a:ecc8.
New relevant interface eth0.IPv6 for mDNS.
Joining mDNS multicast group on interface eth0.IPv4 with address 192.168.0.220.
New relevant interface eth0.IPv4 for mDNS.
Network interface enumeration completed.
Registering new address record for fe80::42:4eff:fef2:80ce on hassio..
Registering new address record for 172.30.32.1 on hassio.
.
Registering new address record for fe80::23f2:7f49:16a:ecc8 on eth0..
Registering new address record for 192.168.0.220 on eth0.
.
Server startup complete. Host name is hassio.local. Local service cookie is 704507254.
*** WARNING *** The program ‘node’ uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=node
*** WARNING *** The program ‘node’ called ‘DNSServiceRegister()’ which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister
[2018-5-10 18:22:52] Loaded plugin: homebridge-harmonyhub
[2018-5-10 18:22:54] Registering platform ‘homebridge-harmonyhub.HarmonyHub’
[2018-5-10 18:22:54] —
[2018-5-10 18:22:55] Loaded plugin: homebridge-homeassistant
[2018-5-10 18:22:55] Registering platform ‘homebridge-homeassistant.HomeAssistant’
[2018-5-10 18:22:55] —
[2018-5-10 18:22:55] Loaded plugin: homebridge-mqtt-switch-tasmota
[2018-5-10 18:22:55] Registering accessory ‘homebridge-mqtt-switch-tasmota.mqtt-switch-tasmota’
[2018-5-10 18:22:55] —
[2018-5-10 18:22:56] Loaded plugin: homebridge-platform-wemo
[2018-5-10 18:22:56] Registering platform ‘homebridge-platform-wemo.BelkinWeMo’
[2018-5-10 18:22:56] —
[2018-5-10 18:22:56] Loaded config.json with 2 accessories and 3 platforms.
[2018-5-10 18:22:56] —
[2018-5-10 18:22:56] Loading 3 platforms…
[2018-5-10 18:22:56] [HomeAssistant] Initializing HomeAssistant platform…
[2018-5-10 18:22:56] [HomeAssistant] Fetching HomeAssistant devices.
[2018-5-10 18:22:56] [Harmony Hub] Initializing HarmonyHub platform…
[2018-5-10 18:22:56] [WeMo Platform] Initializing BelkinWeMo platform…
[2018-5-10 18:22:56] Loading 2 accessories…
[2018-5-10 18:22:56] [bed] Initializing mqtt-switch-tasmota accessory…
[2018-5-10 18:22:56] [bed] Nazwa do RESULT POWER
[2018-5-10 18:22:56] [room] Initializing mqtt-switch-tasmota accessory…
[2018-5-10 18:22:56] [room] Nazwa do RESULT POWER
[2018-5-10 18:22:57] [WeMo Platform] Online: Wemo Dimmer [149182D81F7A]
[2018-5-10 18:22:57] [HomeAssistant] Received event: ping
Setup Payload:
X-HM://0023RPE53JGBC
Scan this code with your HomeKit app on your iOS device to pair with Homebridge:

Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:

┌────────────┐     
│ 180-94-807 │     
└────────────┘     

[2018-5-10 18:22:57] Homebridge is running on port 51826.
[2018-5-10 18:22:58] [Harmony Hub] Fetching Logitech Harmony activities…
[2018-5-10 18:22:59] [Harmony Hub] Found activities:
Play PS3
PowerOff
Tv Cold
AC
Watch TV

I’m having this issue as well. Homebridge starts, but Homekit can’t find it or any devices exposed by it. HASS 0.68.1 Supervisor 103.3

I have to delete the cache sometimes.

This is all I’m getting, is anybody else having issues?

Supervisor is at 105

I switched to the new homekit: component, its works just as good as homebridge since the last release.

Well I believe I narrowed it down, it seems like the nest thermostat component was keeping other accessories from responding. I removed it from home bridge and now it’s all working. Has anybody else had this issue with nest?