Skip to content

Commit

Permalink
Added Fibaro floodSensor
Browse files Browse the repository at this point in the history
Added 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]};
  • Loading branch information
leoneleone authored Jul 28, 2016
1 parent 4aaec46 commit d174b57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]};
Expand Down

0 comments on commit d174b57

Please sign in to comment.