homebridge-syntex-webhooks
Advanced tools
Comparing version 1.0.4-b3 to 1.0.4-b4
18
index.js
@@ -254,3 +254,3 @@ var request = require('request'); | ||
{ | ||
log('\x1b[36m%s\x1b[0m', "[UPDATE]", "HomeKit Status für " + this.name + " ( " + this.type + " ) geändert zu '" + newState + "' ( " + this.mac + " )"); | ||
log('\x1b[36m%s\x1b[0m', "[UPDATE]", "HomeKit Status für '" + this.name + "' geändert zu '" + newState + "' ( " + this.mac + " )"); | ||
this.service.getCharacteristic(Characteristic.ContactSensorState).updateValue(newState ? Characteristic.ContactSensorState.CONTACT_DETECTED : Characteristic.ContactSensorState.CONTACT_NOT_DETECTED); | ||
@@ -267,3 +267,3 @@ }).bind(this); | ||
{ | ||
log('\x1b[36m%s\x1b[0m', "[UPDATE]", "HomeKit Status für " + this.name + " ( " + this.type + " ) geändert zu '" + newState + "' ( " + this.mac + " )"); | ||
log('\x1b[36m%s\x1b[0m', "[UPDATE]", "HomeKit Status für '" + this.name + "' geändert zu '" + newState + "' ( " + this.mac + " )"); | ||
this.service.getCharacteristic(Characteristic.MotionDetected).updateValue(newState); | ||
@@ -280,3 +280,3 @@ }).bind(this); | ||
{ | ||
log('\x1b[36m%s\x1b[0m', "[UPDATE]", "HomeKit Status für " + this.name + " ( " + this.type + " ) geändert zu '" + newState + "' ( " + this.mac + " )"); | ||
log('\x1b[36m%s\x1b[0m', "[UPDATE]", "HomeKit Status für '" + this.name + "' geändert zu '" + newState + "' ( " + this.mac + " )"); | ||
this.service.getCharacteristic(Characteristic.CurrentTemperature).updateValue(newState); | ||
@@ -296,3 +296,3 @@ }).bind(this); | ||
{ | ||
log('\x1b[36m%s\x1b[0m', "[UPDATE]", "HomeKit Status für " + this.name + " ( " + this.type + " ) geändert zu '" + newState + "' ( " + this.mac + " )"); this.service.getCharacteristic(Characteristic.CurrentRelativeHumidity).updateValue(newState); | ||
log('\x1b[36m%s\x1b[0m', "[UPDATE]", "HomeKit Status für '" + this.name + "' geändert zu '" + newState + "' ( " + this.mac + " )"); this.service.getCharacteristic(Characteristic.CurrentRelativeHumidity).updateValue(newState); | ||
}).bind(this); | ||
@@ -308,3 +308,3 @@ | ||
{ | ||
log('\x1b[36m%s\x1b[0m', "[UPDATE]", "HomeKit Status für " + this.name + " ( " + this.type + " ) geändert zu '" + newState + "' ( " + this.mac + " )"); | ||
log('\x1b[36m%s\x1b[0m', "[UPDATE]", "HomeKit Status für '" + this.name + "' geändert zu '" + newState + "' ( " + this.mac + " )"); | ||
this.service.getCharacteristic(Characteristic.LeakDetected).updateValue(newState); | ||
@@ -321,3 +321,3 @@ }).bind(this); | ||
{ | ||
log('\x1b[36m%s\x1b[0m', "[UPDATE]", "HomeKit Status für " + this.name + " ( " + this.type + " ) geändert zu '" + newState + "' ( " + this.mac + " )"); this.service.getCharacteristic(Characteristic.CurrentAmbientLightLevel).updateValue(parseFloat(newState)); | ||
log('\x1b[36m%s\x1b[0m', "[UPDATE]", "HomeKit Status für '" + this.name + "' geändert zu '" + newState + "' ( " + this.mac + " )"); this.service.getCharacteristic(Characteristic.CurrentAmbientLightLevel).updateValue(parseFloat(newState)); | ||
}).bind(this); | ||
@@ -423,3 +423,3 @@ | ||
log('\x1b[36m%s\x1b[0m', "[READ]", "HomeKit Status für " + this.name + " ( " + this.type + " ) ist '" + state + "' ( " + this.mac + " )"); | ||
log('\x1b[36m%s\x1b[0m', "[READ]", "HomeKit Status für '" + this.name + "' ist '" + state + "' ( " + this.mac + " )"); | ||
}); | ||
@@ -467,3 +467,3 @@ | ||
{ | ||
log('\x1b[36m%s\x1b[0m', "[UPDATE]", "HomeKit Status für " + this.name + " ( " + this.type + " ) geändert zu '" + newState + "' ( " + this.mac + " )"); | ||
log('\x1b[36m%s\x1b[0m', "[UPDATE]", "HomeKit Status für '" + this.name + "' geändert zu '" + newState + "' ( " + this.mac + " )"); | ||
this.service.getCharacteristic(Characteristic.On).updateValue(newState); | ||
@@ -505,3 +505,3 @@ }).bind(this); | ||
log('\x1b[36m%s\x1b[0m', "[READ]", "HomeKit Status für " + this.name + " ( " + this.type + " ) ist '" + state + "' ( " + this.mac + " )"); | ||
log('\x1b[36m%s\x1b[0m', "[READ]", "HomeKit Status für '" + this.name + "' ist '" + state + "' ( " + this.mac + " )"); | ||
}); | ||
@@ -508,0 +508,0 @@ }; |
{ | ||
"name": "homebridge-syntex-webhooks", | ||
"version": "1.0.4-b3", | ||
"version": "1.0.4-b4", | ||
"description": "A webhook plugin for HTTP devices", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26755