{"action":"created","issue":{"url":"https://api.github.com/repos/nfarina/homebridge/issues/116","labels_url":"https://api.github.com/repos/nfarina/homebridge/issues/116/labels{/name}","comments_url":"https://api.github.com/repos/nfarina/homebridge/issues/116/comments","events_url":"https://api.github.com/repos/nfarina/homebridge/issues/116/events","html_url":"https://github.com/nfarina/homebridge/pull/116","id":102587033,"number":116,"title":"Support new API in getServices()","user":{"login":"nfarina","id":117280,"avatar_url":"https://avatars.githubusercontent.com/u/117280?v=3","gravatar_id":"","url":"https://api.github.com/users/nfarina","html_url":"https://github.com/nfarina","followers_url":"https://api.github.com/users/nfarina/followers","following_url":"https://api.github.com/users/nfarina/following{/other_user}","gists_url":"https://api.github.com/users/nfarina/gists{/gist_id}","starred_url":"https://api.github.com/users/nfarina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nfarina/subscriptions","organizations_url":"https://api.github.com/users/nfarina/orgs","repos_url":"https://api.github.com/users/nfarina/repos","events_url":"https://api.github.com/users/nfarina/events{/privacy}","received_events_url":"https://api.github.com/users/nfarina/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2015-08-23T04:39:21Z","updated_at":"2015-08-23T18:35:19Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/nfarina/homebridge/pulls/116","html_url":"https://github.com/nfarina/homebridge/pull/116","diff_url":"https://github.com/nfarina/homebridge/pull/116.diff","patch_url":"https://github.com/nfarina/homebridge/pull/116.patch"},"body":"See [`getServices()` implementation in `accessories/Http.js`](https://github.com/nfarina/homebridge/blob/support-new-api/accessories/Http.js#L72) for an\r\nexample of how to use.\r\n\r\nFixes #114\r\nFixes #57\r\n\r\n/cc @madmod, @volschin"},"comment":{"url":"https://api.github.com/repos/nfarina/homebridge/issues/comments/133895417","html_url":"https://github.com/nfarina/homebridge/pull/116#issuecomment-133895417","issue_url":"https://api.github.com/repos/nfarina/homebridge/issues/116","id":133895417,"user":{"login":"cflurin","id":5056710,"avatar_url":"https://avatars.githubusercontent.com/u/5056710?v=3","gravatar_id":"","url":"https://api.github.com/users/cflurin","html_url":"https://github.com/cflurin","followers_url":"https://api.github.com/users/cflurin/followers","following_url":"https://api.github.com/users/cflurin/following{/other_user}","gists_url":"https://api.github.com/users/cflurin/gists{/gist_id}","starred_url":"https://api.github.com/users/cflurin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cflurin/subscriptions","organizations_url":"https://api.github.com/users/cflurin/orgs","repos_url":"https://api.github.com/users/cflurin/repos","events_url":"https://api.github.com/users/cflurin/events{/privacy}","received_events_url":"https://api.github.com/users/cflurin/received_events","type":"User","site_admin":false},"created_at":"2015-08-23T18:35:19Z","updated_at":"2015-08-23T18:35:19Z","body":"@nfarina, Thanks I'll fix it.\r\nI'm trying the Service.AccessoryInformation, the Manufacturer, Model and SeriaNumber are OK\r\nbut I'm not sure how to implement the Identify Service:\r\n\r\n```javascript\r\n    var informationService = new Service.AccessoryInformation();\r\n    \r\n    informationService\r\n      .setCharacteristic(Characteristic.Manufacturer, \"FHEM Manufacturer\")\r\n      .setCharacteristic(Characteristic.Model, \"FHEM Model\")\r\n      .setCharacteristic(Characteristic.SerialNumber, \"FHEM Serial Number\");\r\n      \r\n    informationService\r\n      .getCharacteristic(Characteristic.Identify)\r\n      .on('set', function(paired, callback) { \r\n        this.log(\"setIdentify: \" + paired);\r\n        callback();\r\n      }.bind(this));\r\n````\r\nWhat is wrong?"}}