Help with repeating notification for contact sensor

I am trying to get my door contact that is left open for example 1 minute to notify me every 30 seconds (for testing).
-> Open period one minute.
-> Repeat notification 30 seconds

Is this possible? I would prefer to do this for each door in RM - not able to get it to work.


Thanks much

By "not working", I presume you mean that you don't get any notification at all?

What you have in the Text Notifications box setup seems overly complicated... What's the deal with the "Local File" in there? To simplify things for troubleshooting, just try a very vanilla plain-text test message like "door alert test" -- dump the whole Random thing and leave all those %xyz% parts out.

Once you get a vanilla notification working OK, then layer in fancier options one at a time so that you can verify they work at each iteration.

2 Likes

I use a Notifications app to do this as well. Here is my screenshot as an example.

This has been working well for years. The only 'gotcha' is that if multiple doors are open at the same time, the %device% variable will contain the last door name that triggered the rule. To avoid this, one can just create a Notifier app instance for each door. I did this for our two garage doors, as they are the two doors that I most care about leaving open accidentally (out of sight, out of mind!)

1 Like

Thanks

If you leave the doors open will it notify you again if you miss the first one? I am receiving one, I would just like to get one every X minutes.

Okay I made the changes.

I am getting just one notification. What I would like is if I miss it I will receive another one in X amount of time.

Yes, it works exactly like that. For example, while I am mowing the lawn, I will receive multiple notifications (every N minutes as configured) reminding me to shut the garage door. Once I shut the door, the notifications stop.

Here is one of the garage door notifier apps...

Make sure you click DONE at the bottom once you have everything configured.

1 Like

I am missing something.


I am only getting one. :frowning:

Uncheck the "Random Message" slider and try it again.

Another possible fix would be to simply Remove this Notifier instance, and create it again from scratch to see of that clears up the issue. Try setting the "For How Long" to something a little longer, like 2 minutes. Keep the repeat at every 1 minute and see if that makes a difference. Of course, the contact sensor must stay OPEN for the repeat to work. Make sure its status isn't changing to closed somehow during your test.

1 Like

Thanks I will give that a try

New:

Message,
Times
File

Well it's working - Thanks :slight_smile: :laughing:

1 Like

Okay, I am getting notification, even when the door is closed.

my wife opened the slider at 5;00 am and it has been closed since then. However I keep getting notifications. What is wrong with my rule?


Should I keep getting notifications even when thee door is closed?

Nope, once the door is closed the repeating notification should stop. Please check the status of the "Kitchen Slider Contact" by bringing up its device details page in the Hubitat Web UI. It is important to know whether the Hubitat "device" is properly reporting the correct status of the door contact sensor. You can also check the EVENTS tab of the contact sensor device, to see exactly what happened and when, from the hub's perspective.

Here is a screenshot

1 Like

According to your screenshot, the contact sensor last reported that the door opened.

About 300 milliseconds after the sensor reported door closed.

You might want to check the physical installation of the sensor and its magnet.

3 Likes

As @marktheknife mentioned above, the contact sensor says the door is open, and thus the Notification will continue until the door sensor reports that it is closed. The code is working properly.

thanks I will check on that