From 0ba4a83d8ee64193fade4fe880beff6f2ff6addf Mon Sep 17 00:00:00 2001 From: Bob van de Vijver Date: Wed, 25 Feb 2026 13:53:19 +0100 Subject: [PATCH 1/2] Fix close position configuration for Blind Tilt --- drivers/blind_tilt_ble/device.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/blind_tilt_ble/device.js b/drivers/blind_tilt_ble/device.js index d43b86a..ee59cba 100644 --- a/drivers/blind_tilt_ble/device.js +++ b/drivers/blind_tilt_ble/device.js @@ -45,7 +45,7 @@ class BlindTiltBLEDevice extends Homey.Device this.motionMode = 2; } - this.closePosition = Number(this.getSetting('closePosition')); + this.closePosition = this.getSetting('closePosition'); if (this.closePosition === null) { this.closePosition = 'down'; @@ -90,7 +90,7 @@ class BlindTiltBLEDevice extends Homey.Device if (changedKeys.indexOf('closePosition') >= 0) { - this.closePosition = Number(newSettings.closePosition); + this.closePosition = newSettings.closePosition; } setImmediate(() => @@ -128,7 +128,7 @@ class BlindTiltBLEDevice extends Homey.Device } else { - value = this.closePosition ? 1 : 0; + value = this.closePosition === 'down' ? 1 : 0; } return this.runToPos(value * 100, this.motionMode); From 829ef448a8d78d2ab41e4ab80ac88c30f471dd39 Mon Sep 17 00:00:00 2001 From: Bob van de Vijver Date: Wed, 25 Feb 2026 13:57:00 +0100 Subject: [PATCH 2/2] Up position is 1, down is 0 --- drivers/blind_tilt_ble/device.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/blind_tilt_ble/device.js b/drivers/blind_tilt_ble/device.js index ee59cba..43841d5 100644 --- a/drivers/blind_tilt_ble/device.js +++ b/drivers/blind_tilt_ble/device.js @@ -128,7 +128,7 @@ class BlindTiltBLEDevice extends Homey.Device } else { - value = this.closePosition === 'down' ? 1 : 0; + value = this.closePosition === 'up' ? 1 : 0; } return this.runToPos(value * 100, this.motionMode);