Limit Notifications from Changing Forecasts

Hello,

I have a rule that notifies if the forecast includes precipitation so I can roll up the windows of our vehicles. Because the forecast jumps around from Rain, to Showers, to xyz, and back, I'm getting multiple notifications per day. How do I limit these notifications to one a day or one every X hours?

What I would do is use the Rule’s Private Boolean.

Set it to False when the rule is run, and add a Required Expression that only runs the rule when it is True

Then create another rule that switches it to True at a convenient time (say, 5am).

1 Like

If you want to limit notifications, you'll need to limit how often the rule is currently being triggered. Right now, your rule is running every 15 minutes and will always notify you if the forecast contains Rain, Thunderstorm, Drizzle, Snow, or Showers. My suggestion would be to move the notifications to its own rule rather than part of your variable setting rule. This way, it is significantly easier to limit how often to notify, but not change how often your variables are being set.

For instance, you could create a different Hub Variable called "Windows need to be up" and have it be Boolean (i.e True/False). Then, in your current rule, instead of notifying you, it sets the Boolean to True. So, it would look like:

If variable contains "bad weather",
set Windows need to be up to True
Else
set Windows need to be up to False
End-IF
Rest of your actions

Then, create a second rule that triggers on Windows need to be up becoming true. This will be your notification rule and can contain the logging, notifications, and run actions that you are currently using.

1 Like