mirror of
https://github.com/mtan93/homebridge.git
synced 2026-03-08 05:31:55 +00:00
Typo fixes
This commit is contained in:
@@ -667,7 +667,7 @@ KNXDevice.prototype = {
|
||||
//iterate(myService);
|
||||
return myService;
|
||||
},
|
||||
getMotionSenserService: function(config) {
|
||||
getMotionSensorService: function(config) {
|
||||
// Characteristic.ContactSensorState.CONTACT_DETECTED = 0;
|
||||
// Characteristic.ContactSensorState.CONTACT_NOT_DETECTED = 1;
|
||||
|
||||
@@ -682,7 +682,7 @@ KNXDevice.prototype = {
|
||||
}
|
||||
|
||||
var myService = new Service.MotionSensor(config.name,config.name);
|
||||
if (config.ContactSensorState) {
|
||||
if (config.MotionDetected) {
|
||||
this.log("MotionSensor MotionDetected characteristic enabled");
|
||||
this.bindCharacteristic(myService, Characteristic.MotionDetected, "Bool", config.MotionDetected);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user