mirror of
https://github.com/mtan93/homebridge.git
synced 2026-04-17 22:05:21 +01:00
GarageDoorOpener fixed
This commit is contained in:
@@ -210,7 +210,7 @@ KNXDevice.prototype = {
|
||||
this.log("knx registering FLOAT " + addresses);
|
||||
knxd_registerGA(addresses, function(val, src, dest, type){
|
||||
this.log("Received value from bus:"+val+ " for " +dest+ " from "+src+" of type "+type+ " for " + characteristic.displayName);
|
||||
if (val>=(characteristic.minimumValue || 0) && val<=(characteristic.maximumValue || 255) {
|
||||
if (val>=(characteristic.minimumValue || 0) && val<=(characteristic.maximumValue || 255)) {
|
||||
characteristic.setValue(val, undefined, 'fromKNXBus');
|
||||
} else {
|
||||
this.log("Value %s out of bounds %s...%s ",hk_value, (characteristic.minimumValue || 0), (characteristic.maximumValue || 255));
|
||||
|
||||
Reference in New Issue
Block a user