tommasomarchionni / homebridge-openHAB

Homebridge plugin for openHAB
Apache License 2.0
49 stars 18 forks source link

Module isnt starting #38

Open ghost opened 7 years ago

ghost commented 7 years ago

Every time i try to start homebridge I get following error:

2016-10-13 17:05:26] Loaded plugin: homebridge-openhab
/usr/lib/node_modules/homebridge-openhab/index.js:59
    Utility.addSupportTo(AbstractItem, Accessory);
                                       ^

ReferenceError:

 Accessory is not defined
    at Plugin.module.exports [as initializer] (/usr/lib/node_modules/homebridge-openhab/index.js:59:40)
    at Server.<anonymous> (/usr/lib/node_modules/homebridge/lib/server.js:147:14)
    at Array.forEach (native)
    at Server._loadPlugins (/usr/lib/node_modules/homebridge/lib/server.js:125:22)
    at new Server (/usr/lib/node_modules/homebridge/lib/server.js:48:24)
    at module.exports (/usr/lib/node_modules/homebridge/lib/cli.js:26:16)
    at Object.<anonymous> (/usr/lib/node_modules/homebridge/bin/homebridge:17:22)
    at Module._compile (module.js:556:32)
    at Object.Module._extensions..js (module.js:565:10)
    at Module.load (module.js:473:32)

This is my Config:
"platforms": [
       "platform": "openHAB",
        "name": "openHAB",
        "host": "127.0.0.1",
        "port": "8080",
        "sitemap": "default",
        "useLabelForName": true
  ],

Any ideas?