Use Case
Wet Basement Alert
Receive a repeating notification when the basement has a leak and optionally turn on a light to indicate that there is an alert.
Requirements
- Water leak sensor
- (Optional) - Alert Light blueprint
Setup
- In the Alert Entity field, select the water leak sensor for the basement.
- In the Alert State field, enter ‘on’. Since this is a binary sensor, the sensor is ‘on’ when water is detected.
- In the Idle State field, enter ‘off’. Technically we could just leave this field blank, then any state other than the alert state would stop the alert. But in this case, we want a positive indication that water is no longer detected.
- In the Initial Delay field, enter 1 minute. This will act as a debounce to prevent rapidly repeating alerts as the water sensor dries.
- In the Notification Device field, select your mobile device.
- In the Notification Title field, enter Alert! or whatever you’d like.
- In the Notification Message field, enter There is a water leak in the basement! or what ever you’d like.
- In the Unique Action ID field, enter basement_water_leak. This value just needs to be unique from every other alert.
- In the Repeat Delay field, enter 1 hour
- For Critical Notification Profile, select the appropriate platform. For me, that’s iPhone.
- For Volume, 0.5 is not too quiet but not too loud.
- In the Severity Level Counter field, select your High Alert Counter. This is optional and requires the Alert Light blueprint.
What Will Happen?
Hopefully nothing! Nobody wants a wet basement.
The water leak sensor changes to ‘on’ and stays on for 1 minute:
-
The alert automation triggers.
-
The severity level counter is incremented, turning on the light specified in the Alert Light blueprint.
-
Since we did not set up a zone or a time window, a notification is sent to your phone immediately and bypasses Do Not Disturb.
-
The automation now enters into a waiting period for 1 hour and will wait there unless the water sensor reports ‘off’ or the alert is dismissed from the notification.
-
Let’s say 1 hour passes: another notification is sent to your phone.
-
If you want to dismiss the alert, you can long press on the notification and select dismiss.
-
If you dismiss the alert or the water sensor reports ‘off’, then the severity level counter is decremented and the automation stops.
Home Assistant starts up and 30 seconds have passed
- The alert automation triggers.
- It checks if the water leak sensor is ‘on’. If it is, it sends a notification and enters the wait loop.
@stefan1982, hope this helps!



