Fix for HomeSeer occupancy sensor

This commit is contained in:
stipus
2015-10-10 12:38:46 +02:00
parent 772f35efac
commit 4fbd7eb775

View File

@@ -3,6 +3,7 @@
//
// HomeSeer Platform Shim for HomeBridge
// V0.1 - Jean-Michel Joudrier (stipus at stipus dot com) - 2015/10/07 - Initial version
// V0.2 - Jean-Michel Joudrier (stipus at stipus dot com) - 2015/10/10 - occupancy sensor fix
//
//
// Remember to add platform to config.json.
@@ -320,7 +321,7 @@ HomeSeerAccessory.prototype = {
}
case "OccupancySensor": {
var occupancySensorService = new Service.OccupancySensor();
motionSensorService
occupancySensorService
.getCharacteristic(Characteristic.OccupancyDetected)
.on('get', this.getPowerState.bind(this));
services.push( occupancySensorService );