{"action":"created","issue":{"url":"https://api.github.com/repos/aklambeth/bg-hive-api/issues/3","repository_url":"https://api.github.com/repos/aklambeth/bg-hive-api","labels_url":"https://api.github.com/repos/aklambeth/bg-hive-api/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/aklambeth/bg-hive-api/issues/3/comments","events_url":"https://api.github.com/repos/aklambeth/bg-hive-api/issues/3/events","html_url":"https://github.com/aklambeth/bg-hive-api/issues/3","id":125481236,"number":3,"title":"Failure running connection example","user":{"login":"lawrie","id":3097250,"avatar_url":"https://avatars.githubusercontent.com/u/3097250?v=3","gravatar_id":"","url":"https://api.github.com/users/lawrie","html_url":"https://github.com/lawrie","followers_url":"https://api.github.com/users/lawrie/followers","following_url":"https://api.github.com/users/lawrie/following{/other_user}","gists_url":"https://api.github.com/users/lawrie/gists{/gist_id}","starred_url":"https://api.github.com/users/lawrie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lawrie/subscriptions","organizations_url":"https://api.github.com/users/lawrie/orgs","repos_url":"https://api.github.com/users/lawrie/repos","events_url":"https://api.github.com/users/lawrie/events{/privacy}","received_events_url":"https://api.github.com/users/lawrie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-01-07T20:46:52Z","updated_at":"2016-02-18T22:27:01Z","closed_at":null,"body":"When running the connection example code, I get:\r\n\r\n/home/pi/hive/node_modules/bg-hive-api/hubs.js:53\r\n              connection.context.hubs[0].devices = GetDevices(deviceId[0].id);\r\n                                                                         ^\r\nTypeError: Cannot read property 'id' of undefined\r\n    at Object.callback (/home/pi/hive/node_modules/bg-hive-api/hubs.js:53:76)\r\n    at next (/home/pi/hive/node_modules/bg-hive-api/node_modules/async/lib/async.js:801:43)\r\n    at /home/pi/hive/node_modules/bg-hive-api/node_modules/async/lib/async.js:32:16\r\n    at Request._callback (/home/pi/hive/node_modules/bg-hive-api/Connection.js:63:9)\r\n    at Request.self.callback (/home/pi/hive/node_modules/bg-hive-api/node_modules/request/request.js:373:22)\r\n    at Request.emit (events.js:110:17)\r\n    at Request.<anonymous> (/home/pi/hive/node_modules/bg-hive-api/node_modules/request/request.js:1318:14)\r\n    at Request.emit (events.js:129:20)\r\n    at IncomingMessage.<anonymous> (/home/pi/hive/node_modules/bg-hive-api/node_modules/request/request.js:1266:12)\r\n    at IncomingMessage.emit (events.js:129:20)\r\n\r\nAm I doing something wrong, or has the API changed?"},"comment":{"url":"https://api.github.com/repos/aklambeth/bg-hive-api/issues/comments/185952600","html_url":"https://github.com/aklambeth/bg-hive-api/issues/3#issuecomment-185952600","issue_url":"https://api.github.com/repos/aklambeth/bg-hive-api/issues/3","id":185952600,"user":{"login":"aklambeth","id":2073680,"avatar_url":"https://avatars.githubusercontent.com/u/2073680?v=3","gravatar_id":"","url":"https://api.github.com/users/aklambeth","html_url":"https://github.com/aklambeth","followers_url":"https://api.github.com/users/aklambeth/followers","following_url":"https://api.github.com/users/aklambeth/following{/other_user}","gists_url":"https://api.github.com/users/aklambeth/gists{/gist_id}","starred_url":"https://api.github.com/users/aklambeth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aklambeth/subscriptions","organizations_url":"https://api.github.com/users/aklambeth/orgs","repos_url":"https://api.github.com/users/aklambeth/repos","events_url":"https://api.github.com/users/aklambeth/events{/privacy}","received_events_url":"https://api.github.com/users/aklambeth/received_events","type":"User","site_admin":false},"created_at":"2016-02-18T22:27:01Z","updated_at":"2016-02-18T22:27:01Z","body":"surfshag, Whilst it would be possible to use this api as the foundation for a plug-in which will work with HomeBridge you'd have to be able to write the additional plug in code to make it work with Homebridge. I know someone who has done this but I don't know if they released the code. So the tldr answer is no this won't work out of the box but if you're happy to learn node.js then you should be able to hack something together."}}