Typo fixes

This commit is contained in:
Snowdd1
2015-09-19 21:56:20 +02:00
parent 48f613f8ae
commit 80b2a047d4

View File

@@ -667,7 +667,7 @@ KNXDevice.prototype = {
//iterate(myService); //iterate(myService);
return myService; return myService;
}, },
getMotionSenserService: function(config) { getMotionSensorService: function(config) {
// Characteristic.ContactSensorState.CONTACT_DETECTED = 0; // Characteristic.ContactSensorState.CONTACT_DETECTED = 0;
// Characteristic.ContactSensorState.CONTACT_NOT_DETECTED = 1; // Characteristic.ContactSensorState.CONTACT_NOT_DETECTED = 1;
@@ -682,7 +682,7 @@ KNXDevice.prototype = {
} }
var myService = new Service.MotionSensor(config.name,config.name); var myService = new Service.MotionSensor(config.name,config.name);
if (config.ContactSensorState) { if (config.MotionDetected) {
this.log("MotionSensor MotionDetected characteristic enabled"); this.log("MotionSensor MotionDetected characteristic enabled");
this.bindCharacteristic(myService, Characteristic.MotionDetected, "Bool", config.MotionDetected); this.bindCharacteristic(myService, Characteristic.MotionDetected, "Bool", config.MotionDetected);
} }