From e0de3f2a82f6110212d1a345af129ce75cb7d59d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andre=20Schr=C3=B6ter?= Date: Sat, 1 Aug 2015 20:15:59 +0200 Subject: [PATCH] don't show on/off for blinds --- platforms/FHEM.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/platforms/FHEM.js b/platforms/FHEM.js index d635db3..787e57d 100644 --- a/platforms/FHEM.js +++ b/platforms/FHEM.js @@ -614,6 +614,7 @@ FHEMAccessory.prototype = { value = 1; else value = 0; + //value = 2; value = parseInt(value); @@ -926,14 +927,13 @@ FHEMAccessory.prototype = { designedMaxLength: 255 }] - //if( this.name != undefined - // && !this.hasTemperature - // && !this.hasHumidity - // && !this.isBlind - // && !this.isThermostat - // && !this.isContactSensor - // && !this.isOccupancySensor ) { - if( this.endpoints.onOff ) { + if( this.endpoints.onOff + && !this.hasTemperature + && !this.hasHumidity + && !this.isBlind + && !this.isThermostat + && !this.isContactSensor + && !this.isOccupancySensor ) { cTypes.push({ cType: types.POWER_STATE_CTYPE, onRegister: function(characteristic) {