ilcato / homebridge-Fibaro-HC2

Homebridge plugin for Fibaro Home Center 2 (and Home Center Lite ...)
Apache License 2.0
66 stars 27 forks source link

Losing state upon exception #82

Closed beorn closed 6 years ago

beorn commented 6 years ago

Hi,

It works, but whenever I restart homebridge a lot of the state is lost - room, favorites - all the devices show up in the default room without any state/ name changed preserved.

After some google'ing it seems one potential problem could be if the plugin doesn't support the 'new API':

https://github.com/nfarina/homebridge/issues/874 https://github.com/pdlove/homebridge-smartthings/issues/158 https://github.com/nfarina/homebridge/issues/1005

and fail sometimes to return all devices (accessories and services), or fail with an exception. The exception I'm running into is: https://github.com/ilcato/homebridge-Fibaro-HC2/issues/81

ilcato commented 6 years ago

The plugin is supporting the new API.

beorn commented 6 years ago

The issue seems to be that at least when there's an exception, like described in #81, all state is lost.