diff --git a/index.js b/index.js index 15b9deb..d52c493 100644 --- a/index.js +++ b/index.js @@ -166,7 +166,7 @@ FibaroHC2Platform.prototype = { service = {controlService: new Service.ContactSensor(s.name), characteristics: [Characteristic.ContactSensorState]}; else if (s.type == "com.fibaro.lightSensor") service = {controlService: new Service.LightSensor(s.name), characteristics: [Characteristic.CurrentAmbientLightLevel]}; - else if (s.type == "com.fibaro.FGFS101" || s.type == "com.fibaro.floodSensor") + else if (s.type == "com.fibaro.FGFS101" || s.type == "com.fibaro.floodSensor") service = {controlService: new Service.LeakSensor(s.name), characteristics: [Characteristic.LeakDetected]}; else if (s.type == "com.fibaro.FGWP101") service = {controlService: new Service.Outlet(s.name), characteristics: [Characteristic.On, Characteristic.OutletInUse]};