mirror of
https://github.com/mtan93/homebridge.git
synced 2026-03-08 05:31:55 +00:00
Support WeMo "Light" services
This commit is contained in:
@@ -144,6 +144,16 @@ WeMoAccessory.prototype.getServices = function() {
|
||||
|
||||
return [garageDoorService];
|
||||
}
|
||||
else if (this.service == "Light") {
|
||||
var lightbulbService = new Service.Lightbulb(this.name);
|
||||
|
||||
lightbulbService
|
||||
.getCharacteristic(Characteristic.On)
|
||||
.on('get', this.getPowerOn.bind(this))
|
||||
.on('set', this.setPowerOn.bind(this));
|
||||
|
||||
return [lightbulbService];
|
||||
}
|
||||
else if (this.service == "MotionSensor") {
|
||||
var motionSensorService = new Service.MotionSensor(this.name);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user