A water leak detector detects water leakage and leakage resolution. When water leakage occurs, the water leak detector triggers the gateway to send audible and visual alarms and push a message to the mobile phone. It can also control other asSoCiated smart devices through the gateway. When the leakage is resolved, the device triggers the gateway to push a message to the mobile phone.