{"action":"created","issue":{"url":"https://api.github.com/repos/ebaauw/homebridge-lib/issues/7","repository_url":"https://api.github.com/repos/ebaauw/homebridge-lib","labels_url":"https://api.github.com/repos/ebaauw/homebridge-lib/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/ebaauw/homebridge-lib/issues/7/comments","events_url":"https://api.github.com/repos/ebaauw/homebridge-lib/issues/7/events","html_url":"https://github.com/ebaauw/homebridge-lib/issues/7","id":334160883,"node_id":"MDU6SXNzdWUzMzQxNjA4ODM=","number":7,"title":"How do I create my own Service using homebridge-lib?","user":{"login":"ctschach","id":8994357,"node_id":"MDQ6VXNlcjg5OTQzNTc=","avatar_url":"https://avatars3.githubusercontent.com/u/8994357?v=4","gravatar_id":"","url":"https://api.github.com/users/ctschach","html_url":"https://github.com/ctschach","followers_url":"https://api.github.com/users/ctschach/followers","following_url":"https://api.github.com/users/ctschach/following{/other_user}","gists_url":"https://api.github.com/users/ctschach/gists{/gist_id}","starred_url":"https://api.github.com/users/ctschach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctschach/subscriptions","organizations_url":"https://api.github.com/users/ctschach/orgs","repos_url":"https://api.github.com/users/ctschach/repos","events_url":"https://api.github.com/users/ctschach/events{/privacy}","received_events_url":"https://api.github.com/users/ctschach/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-20T16:36:16Z","updated_at":"2018-06-21T08:21:53Z","closed_at":"2018-06-21T08:21:53Z","author_association":"CONTRIBUTOR","body":"I only want to create one additional service inside my application, so I'm trying something like this:\r\n\r\n```\r\nvar myService = new homebridgeLib.CustomHomeKitTypes(API, API.hap);\r\n\r\nmyService.createService('my.PowerMeter2', '00000012-0000-1000-8000-656261617577', [\r\n  eve.Characteristic.ElectricCurrent,\r\n  eve.Characteristic.CurrentConsumption\r\n]);\r\n```\r\n\r\nThis is causing an error, so I'm doing it wrong. \r\n\r\nIs there any way to call \"createService\"?"},"comment":{"url":"https://api.github.com/repos/ebaauw/homebridge-lib/issues/comments/399018002","html_url":"https://github.com/ebaauw/homebridge-lib/issues/7#issuecomment-399018002","issue_url":"https://api.github.com/repos/ebaauw/homebridge-lib/issues/7","id":399018002,"node_id":"MDEyOklzc3VlQ29tbWVudDM5OTAxODAwMg==","user":{"login":"ctschach","id":8994357,"node_id":"MDQ6VXNlcjg5OTQzNTc=","avatar_url":"https://avatars3.githubusercontent.com/u/8994357?v=4","gravatar_id":"","url":"https://api.github.com/users/ctschach","html_url":"https://github.com/ctschach","followers_url":"https://api.github.com/users/ctschach/followers","following_url":"https://api.github.com/users/ctschach/following{/other_user}","gists_url":"https://api.github.com/users/ctschach/gists{/gist_id}","starred_url":"https://api.github.com/users/ctschach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctschach/subscriptions","organizations_url":"https://api.github.com/users/ctschach/orgs","repos_url":"https://api.github.com/users/ctschach/repos","events_url":"https://api.github.com/users/ctschach/events{/privacy}","received_events_url":"https://api.github.com/users/ctschach/received_events","type":"User","site_admin":false},"created_at":"2018-06-21T08:21:53Z","updated_at":"2018-06-21T08:21:53Z","author_association":"CONTRIBUTOR","body":"Yes, thanks...this helps....was able to integrate this.\r\n\r\nSome documentation on how to use the various elements of homebridge-lib could not be wrong :-)"}}
{"actor":{"display_login":"ctschach"}}