Closed ctschach closed 6 years ago
Create a subclass of CustomHomeKitTypes
in which you define your characteristics (and services), see https://github.com/ebaauw/homebridge-lib/blob/master/lib/MyHomeKitTypes.js. To use the characteristics, instantiate your subclass, see e.g. https://github.com/ebaauw/homebridge-hue/blob/f0a606e5c1041cd8244437780d2910661c79e6f3/lib/HuePlatform.js#L73-L79
Yes, thanks...this helps....was able to integrate this.
Some documentation on how to use the various elements of homebridge-lib could not be wrong :-)
No, it wouldn’t. Note, however, that homebridge-lib is still in pre-release. First I want to refactor my plugins to use homebridge-lib in full, then publish a full releae version of homebridge-lib, then work on the WiKi. It’s all in my free time, and competing in priority with functional chnages to my plugins, so no ETA.
I only want to create one additional service inside my application, so I'm trying something like this:
This is causing an error, so I'm doing it wrong.
Is there any way to call "createService"?