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.
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.
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!)
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.
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.
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.
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.