mirror of
https://github.com/mtan93/homebridge.git
synced 2026-04-16 14:23:10 +01:00
don't show on/off for blinds
This commit is contained in:
@@ -614,6 +614,7 @@ FHEMAccessory.prototype = {
|
|||||||
value = 1;
|
value = 1;
|
||||||
else
|
else
|
||||||
value = 0;
|
value = 0;
|
||||||
|
//value = 2;
|
||||||
|
|
||||||
value = parseInt(value);
|
value = parseInt(value);
|
||||||
|
|
||||||
@@ -926,14 +927,13 @@ FHEMAccessory.prototype = {
|
|||||||
designedMaxLength: 255
|
designedMaxLength: 255
|
||||||
}]
|
}]
|
||||||
|
|
||||||
//if( this.name != undefined
|
if( this.endpoints.onOff
|
||||||
// && !this.hasTemperature
|
&& !this.hasTemperature
|
||||||
// && !this.hasHumidity
|
&& !this.hasHumidity
|
||||||
// && !this.isBlind
|
&& !this.isBlind
|
||||||
// && !this.isThermostat
|
&& !this.isThermostat
|
||||||
// && !this.isContactSensor
|
&& !this.isContactSensor
|
||||||
// && !this.isOccupancySensor ) {
|
&& !this.isOccupancySensor ) {
|
||||||
if( this.endpoints.onOff ) {
|
|
||||||
cTypes.push({
|
cTypes.push({
|
||||||
cType: types.POWER_STATE_CTYPE,
|
cType: types.POWER_STATE_CTYPE,
|
||||||
onRegister: function(characteristic) {
|
onRegister: function(characteristic) {
|
||||||
|
|||||||
Reference in New Issue
Block a user