{"action":"created","issue":{"url":"https://api.github.com/repos/vojtamolda/homebridge-bluetooth/issues/2","repository_url":"https://api.github.com/repos/vojtamolda/homebridge-bluetooth","labels_url":"https://api.github.com/repos/vojtamolda/homebridge-bluetooth/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/vojtamolda/homebridge-bluetooth/issues/2/comments","events_url":"https://api.github.com/repos/vojtamolda/homebridge-bluetooth/issues/2/events","html_url":"https://github.com/vojtamolda/homebridge-bluetooth/issues/2","id":188950207,"number":2,"title":"Issue with initializing accessory","user":{"login":"fallenfate1982","id":11913442,"avatar_url":"https://avatars.githubusercontent.com/u/11913442?v=3","gravatar_id":"","url":"https://api.github.com/users/fallenfate1982","html_url":"https://github.com/fallenfate1982","followers_url":"https://api.github.com/users/fallenfate1982/followers","following_url":"https://api.github.com/users/fallenfate1982/following{/other_user}","gists_url":"https://api.github.com/users/fallenfate1982/gists{/gist_id}","starred_url":"https://api.github.com/users/fallenfate1982/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fallenfate1982/subscriptions","organizations_url":"https://api.github.com/users/fallenfate1982/orgs","repos_url":"https://api.github.com/users/fallenfate1982/repos","events_url":"https://api.github.com/users/fallenfate1982/events{/privacy}","received_events_url":"https://api.github.com/users/fallenfate1982/received_events","type":"User","site_admin":false},"labels":[{"id":450051687,"url":"https://api.github.com/repos/vojtamolda/homebridge-bluetooth/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":{"login":"vojtamolda","id":8467740,"avatar_url":"https://avatars.githubusercontent.com/u/8467740?v=3","gravatar_id":"","url":"https://api.github.com/users/vojtamolda","html_url":"https://github.com/vojtamolda","followers_url":"https://api.github.com/users/vojtamolda/followers","following_url":"https://api.github.com/users/vojtamolda/following{/other_user}","gists_url":"https://api.github.com/users/vojtamolda/gists{/gist_id}","starred_url":"https://api.github.com/users/vojtamolda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vojtamolda/subscriptions","organizations_url":"https://api.github.com/users/vojtamolda/orgs","repos_url":"https://api.github.com/users/vojtamolda/repos","events_url":"https://api.github.com/users/vojtamolda/events{/privacy}","received_events_url":"https://api.github.com/users/vojtamolda/received_events","type":"User","site_admin":false},"assignees":[{"login":"vojtamolda","id":8467740,"avatar_url":"https://avatars.githubusercontent.com/u/8467740?v=3","gravatar_id":"","url":"https://api.github.com/users/vojtamolda","html_url":"https://github.com/vojtamolda","followers_url":"https://api.github.com/users/vojtamolda/followers","following_url":"https://api.github.com/users/vojtamolda/following{/other_user}","gists_url":"https://api.github.com/users/vojtamolda/gists{/gist_id}","starred_url":"https://api.github.com/users/vojtamolda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vojtamolda/subscriptions","organizations_url":"https://api.github.com/users/vojtamolda/orgs","repos_url":"https://api.github.com/users/vojtamolda/repos","events_url":"https://api.github.com/users/vojtamolda/events{/privacy}","received_events_url":"https://api.github.com/users/vojtamolda/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/vojtamolda/homebridge-bluetooth/milestones/2","html_url":"https://github.com/vojtamolda/homebridge-bluetooth/milestones/0.1.5","labels_url":"https://api.github.com/repos/vojtamolda/homebridge-bluetooth/milestones/2/labels","id":2163873,"number":2,"title":"0.1.5","description":null,"creator":{"login":"vojtamolda","id":8467740,"avatar_url":"https://avatars.githubusercontent.com/u/8467740?v=3","gravatar_id":"","url":"https://api.github.com/users/vojtamolda","html_url":"https://github.com/vojtamolda","followers_url":"https://api.github.com/users/vojtamolda/followers","following_url":"https://api.github.com/users/vojtamolda/following{/other_user}","gists_url":"https://api.github.com/users/vojtamolda/gists{/gist_id}","starred_url":"https://api.github.com/users/vojtamolda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vojtamolda/subscriptions","organizations_url":"https://api.github.com/users/vojtamolda/orgs","repos_url":"https://api.github.com/users/vojtamolda/repos","events_url":"https://api.github.com/users/vojtamolda/events{/privacy}","received_events_url":"https://api.github.com/users/vojtamolda/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":0,"state":"open","created_at":"2016-11-29T15:21:26Z","updated_at":"2016-11-29T15:21:51Z","due_on":null,"closed_at":null},"comments":15,"created_at":"2016-11-13T03:43:18Z","updated_at":"2016-11-29T15:33:29Z","closed_at":null,"body":"Good Day,\r\n\r\nAfter some reinstalls of homebridge I was able to get your plugin installed. However, I seems to be getting the following error when running home bridge with your accessory sample:\r\n\r\n```\r\n[11/12/2016, 11:37:05 PM] ---\r\n[11/12/2016, 11:37:05 PM] Loaded config.json with 1 accessories and 0 platforms.\r\n[11/12/2016, 11:37:05 PM] ---\r\n[11/12/2016, 11:37:05 PM] Loading 1 accessories...\r\n[11/12/2016, 11:37:05 PM] [Arduino 101] Initializing BLE Accessory accessory...\r\n/usr/local/lib/node_modules/homebridge-bluetooth/index.js:18\r\n  this.lights.service = trim_uuid(config.lights.service);\r\n                                               ^\r\nTypeError: Cannot read property 'service' of undefined\r\n    at new BLEAccessory (/usr/local/lib/node_modules/homebridge-bluetooth/index.js:18:48)\r\n    at Server._loadAccessories (/usr/local/lib/node_modules/homebridge/lib/server.js:262:29)\r\n    at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:78:38)\r\n    at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:40:10)\r\n    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)\r\n    at Module._compile (module.js:570:32)\r\n    at Object.Module._extensions..js (module.js:579:10)\r\n    at Module.load (module.js:487:32)\r\n    at tryModuleLoad (module.js:446:12)\r\n```\r\n\r\nAny thoughts?"},"comment":{"url":"https://api.github.com/repos/vojtamolda/homebridge-bluetooth/issues/comments/263602737","html_url":"https://github.com/vojtamolda/homebridge-bluetooth/issues/2#issuecomment-263602737","issue_url":"https://api.github.com/repos/vojtamolda/homebridge-bluetooth/issues/2","id":263602737,"user":{"login":"fallenfate1982","id":11913442,"avatar_url":"https://avatars.githubusercontent.com/u/11913442?v=3","gravatar_id":"","url":"https://api.github.com/users/fallenfate1982","html_url":"https://github.com/fallenfate1982","followers_url":"https://api.github.com/users/fallenfate1982/followers","following_url":"https://api.github.com/users/fallenfate1982/following{/other_user}","gists_url":"https://api.github.com/users/fallenfate1982/gists{/gist_id}","starred_url":"https://api.github.com/users/fallenfate1982/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fallenfate1982/subscriptions","organizations_url":"https://api.github.com/users/fallenfate1982/orgs","repos_url":"https://api.github.com/users/fallenfate1982/repos","events_url":"https://api.github.com/users/fallenfate1982/events{/privacy}","received_events_url":"https://api.github.com/users/fallenfate1982/received_events","type":"User","site_admin":false},"created_at":"2016-11-29T15:33:29Z","updated_at":"2016-11-29T15:33:29Z","body":"Yup, but it should also let home kit know that it was unsuccessful in finding/connecting to the device.\r\n\r\nMy actual issue is with this though, is that for sending the command, home bridge does not seem to spend very long trying to find the device to connect / write to it. I concluded this as I tested with other BLE applications on the same computer - where hombridge does not connect and actually issue the command, other programs were able to do this, however they took a bit longer. Distance was kept constant and does a few times.\r\n\r\nAs far as I could tell, the plugin or home bridge does not seem to tell home kit that they were unsuccessful in switching off the light, that they were not able to find/connect to the device. NOTE though, the code in platform.js you pointed out DOES find the device because its a constant scan. So the device is found for setting up on start up BUT sometimes when a command is sent, its not found and home kit reports success.\r\n\r\n\r\n "}}
{"actor":{"display_login":"fallenfate1982"}}