homebridge-fibaro-home-center
homebridge-fibaro-home-center copied to clipboard
com.fibaro.binarySwitch in homebridge shows like Lightbulb
com.fibaro.binarySwitch showed in home app as a "lightbulb" type of device, what makes some misunderstanding with manage home, previously on HC2 plugin it was pulled correctly with "switch" type to homebridge.
case 'com.fibaro.binarySwitch': case 'com.fibaro.developer.bxs.virtualBinarySwitch': case 'com.fibaro.satelOutput': case 'com.fibaro.FGWDS221': switch (parseInt(this.device.properties.deviceControlType)) { case 2: // Lighting case 5: // Bedside Lamp case 7: // Wall Lamp service = this.platform.Service.Lightbulb; this.mainCharacteristics = [this.platform.Characteristic.On]; break; case 25: // Video gate open service = this.platform.Service.LockMechanism; subtype = device.id + '--' + 'LOCK'; this.mainCharacteristics = [this.platform.Characteristic.LockCurrentState, this.platform.Characteristic.LockTargetState]; break; default: service = this.platform.Service.Switch; this.mainCharacteristics = [this.platform.Characteristic.On]; break; } break;
I found this part of code in "fibaroAccessory.ts" and as i see its can be in 3 types but how i can switch between them?
@h3roin, can you show me the device configuration in HC? Which version of HC do you have?
@h3roin If the problem still hasn't been solved then see #157