HomeKit: Close the water valve if leak detected


Water leaks often happens in some hidden places due to the natural corrosion caused by flowing water. What is more, a stuffed sink can easily spring a leak as well. That is why, it is the FIBARO Flood Sensor placed under your kitchen sink will act immediately if there are any drips detected. You can set an automation which will cut off the water by turning off the solenoid valve. To be able to set this automation, you need to connect the FIBARO Single Switch to a solenoid valve (100-240V AC, 50/60 Hz). Only then you will be able to control it via HomeKit.

Please consider whether to use normally open or normally closed solenoid valve, as:

  • normally open valve, in case of a power failure, will stay open,
  • normally closed valve, in case of a power failure, will stay closed.


  • iPhone or iPad,
  • Home hub (Apple TV, HomePod, or iPad),
  • FIBARO for HomeKit Devices app,
  • FIBARO Flood Sensor (FGBHFS-101),
  • FIBARO Single Switch (FGBHS-213) or any other HomeKit-enabled switch,
  • 2-way normally open or normally closed solenoid valve (100-240V AC).

Step-by-step guide

  1. Open the Fibaro for HomeKit app and tap Scenes.
  2. To create a new automation, tap the plus symbol in the upper-right corner.
  3. Tap Automation.
  4. Tap Devices.
  5. Choose Flood Sensor.
  6. Select Leak detection, Specific change, to Yes. Tap Next to continue.
  7. Now skip the if condition and tap Next without choosing any conditions.
  8. Tap Create New Scene to create the action which will be executed after leak detection.
  9. Tap Valve.
  10. Select Power State and:
    – set to if you have a normally closed solenoid valve,
    – set to if you have a normally open solenoid valve.
    Then, tap Add.
  11. Finish the scene by tapping Next.
  12. Verify the scene summary and tap Next again.
  13. Name the scene and tap Save.
  14. Select the newly created scene by tapping its name. Tap Next to continue to the automation configuration.
  15. Verify the summary of the whole automation and tap Next.
  16. Choose the name for your new automation and tap Save.
  17. You can see your newly created automation under the AUTOMATIONS bar. Its subtitle includes the number of devices and scenes which are involved in this automation.

March 23, 2018   13046    Use Cases    
Total 10 Votes:

Tell us how can we improve this post?

+ = Verify Human or Spambot ?

Comments are closed.