From efc570e5a9abfd252b70ace2a154c2360595f4cb Mon Sep 17 00:00:00 2001 From: Khaos Tian Date: Fri, 18 Nov 2016 00:33:36 -0800 Subject: [PATCH] Update example plugin Add comment for service name. --- example-plugins/homebridge-samplePlatform/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/example-plugins/homebridge-samplePlatform/index.js b/example-plugins/homebridge-samplePlatform/index.js index 75e619b..42792b2 100644 --- a/example-plugins/homebridge-samplePlatform/index.js +++ b/example-plugins/homebridge-samplePlatform/index.js @@ -189,7 +189,8 @@ SamplePlatform.prototype.addAccessory = function(accessoryName) { // Plugin can save context on accessory // To help restore accessory in configureAccessory() // newAccessory.context.something = "Something" - + + // Make sure you provided a name for service otherwise it may not visible in some HomeKit apps. newAccessory.addService(Service.Lightbulb, "Test Light") .getCharacteristic(Characteristic.On) .on('set', function(value, callback) {