sean9keenan / homebridge-bigAssFans

A Homebridge plugin for Big Ass Fans
MIT License
27 stars 14 forks source link

Error after configuration and installation of plugin in Homebridge #34

Open jF-X opened 4 years ago

jF-X commented 4 years ago

Trying to configure plugin for a single fan, getting an error when restarting homebridge:

TypeError: existingAccessory.getServices is not a function
    at new BigAssFanAccessory (/usr/local/lib/node_modules/homebridge-bigAssFans/index.js:254:52)
    at /usr/local/lib/node_modules/homebridge/src/server.ts:357:50
    at Array.forEach (<anonymous>)
    at Server._loadAccessories (/usr/local/lib/node_modules/homebridge/src/server.ts:330:29)
    at Server.start (/usr/local/lib/node_modules/homebridge/src/server.ts:156:12)
    at cli (/usr/local/lib/node_modules/homebridge/src/cli.ts:80:10)
    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
    at Module._compile (internal/modules/cjs/loader.js:1015:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1035:10)
    at Module.load (internal/modules/cjs/loader.js:879:32)