The kit is based on:
- Aqara Xiaomi Water Sensor IP67 – The manual is here
- Claber rain sensor 90915 (NC contact if it does not rain)
- SONOFF ZigBee smart switch
The wiring
Connect the two wires of the Claber rain sensor 90915 to the two rear screws of the Aqara Xiaomi Water Sensor, see image below.
Home Assistant
Connect the Aqara Xiaomi Water Sensor to Home Assistant, we use the ConBee II, Zigbee universal USB gateway (for more info see here).
At this point you can create an automation that if there is water blocks the irrigation system you have (by SONOFF ZigBee smart switch).
For inspiration you can see our immersion pump control system found here.