I'm having issues getting Homebridge working. Receiving the following ...
Loading 1 platforms...
[Wink] Initializing Wink platform...
Loading legacy platform Wink
[Wink] Fetching Wink devices.
Loading 0 accessories...
response in http: {"data":{"error":"invalid_grant","error_description":"This client is not permitted to use the password grant type"},"errors":["invalid_grant: This client is not permitted to use the password grant type"],"pagination":{},"error":"invalid_grant","error_description":"This client is not permitted to use the password grant type"}
response in http:
SyntaxError: Unexpected end of input
at Object.parse (native)
at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/homebridge-legacy-plugins/node_modules/wink-js/index.js:62:19)
at emitNone (events.js:72:20)
at IncomingMessage.emit (events.js:166:7)
at endReadableNT (_stream_readable.js:905:12)
at doNTCallback2 (node.js:450:9)
at process._tickCallback (node.js:364:17)
raw message
/usr/local/lib/node_modules/homebridge-legacy-plugins/platforms/Wink.js:87
for (var i=0; i<devices.data.length; i++){
^
TypeError: Cannot read property 'data' of undefined
at /usr/local/lib/node_modules/homebridge-legacy-plugins/platforms/Wink.js:87:34
at /usr/local/lib/node_modules/homebridge-legacy-plugins/node_modules/wink-js/index.js:198:7
at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/homebridge-legacy-plugins/node_modules/wink-js/index.js:69:7)
at emitNone (events.js:72:20)
at IncomingMessage.emit (events.js:166:7)
at endReadableNT (_stream_readable.js:905:12)
at doNTCallback2 (node.js:450:9)
at process._tickCallback (node.js:364:17)
Here's what my config.json file looks like ...
{
"bridge": {
"name": "Homebridge",
"username": "CC:22:3D:E3:CE:30",
"port": 51826,
"pin": "031-45-154"
},
"description": "This is an example configuration file with all supported devices. You can use this as a template for creating your own configuration file containing devices you actually own.",
"platforms": [
{
"platform": "Wink",
"name": "Wink",
"client_id": "YOUR_WINK_API_CLIENT_ID",
"client_secret": "YOUR_WINK_API_CLIENT_SECRET",
"username": "your@email.com",
"password": "WINK_PASSWORD"
}
],
"accessories": [
]
}
I'm using all the default values from the config-sample.son file. Is that right?
Any help would be appreciated.