mirror of
https://github.com/mtan93/homebridge.git
synced 2026-03-08 05:31:55 +00:00
Fix for HomeSeer occupancy sensor
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user