gismo141 / homebridge-server

Server plugin for homebridge
https://gismo141.github.io/configure-your-homebridge-2/
152 stars 20 forks source link

Crash when opening Homebridge configuration page #14

Closed RienduPre closed 7 years ago

RienduPre commented 7 years ago

Hi,

When I open the configuration page, The Homebridge NodeJE crashes, all other functions, like backup, log, plugins and reboot do work as expected. See attached screenshot for the error.

2016-12-19_1607

Im running it on a RPi with only the HomeSeer plugin installed.

Best regards,

Rien

gismo141 commented 7 years ago

I think I know why this happens. Do you have an empty "accessories": [],-section in your config.json?

As I can see in your example config in the HomeSeer-project, you're only using one platform. I could add a code-line to ask if the accessories-section is undefined.

gismo141 commented 7 years ago

Fix is incomplete - adding new accessory or plugin without the existing section leads to error.

I am working on it ;)