don't show on/off for blinds

This commit is contained in:
Andre Schröter
2015-08-01 20:15:59 +02:00
parent 939f79b2b0
commit e0de3f2a82

View File

@@ -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) {