mirror of
https://github.com/mtan93/homebridge.git
synced 2026-03-08 05:31:55 +00:00
Merge remote-tracking branch 'nfarina/master'
This commit is contained in:
@@ -189,7 +189,8 @@ SamplePlatform.prototype.addAccessory = function(accessoryName) {
|
|||||||
// Plugin can save context on accessory
|
// Plugin can save context on accessory
|
||||||
// To help restore accessory in configureAccessory()
|
// To help restore accessory in configureAccessory()
|
||||||
// newAccessory.context.something = "Something"
|
// 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")
|
newAccessory.addService(Service.Lightbulb, "Test Light")
|
||||||
.getCharacteristic(Characteristic.On)
|
.getCharacteristic(Characteristic.On)
|
||||||
.on('set', function(value, callback) {
|
.on('set', function(value, callback) {
|
||||||
|
|||||||
Reference in New Issue
Block a user