Date/time condition
-
Consider the following example:
This is always true, which is not always evident (e.g. when used within Reactions or there are a lot of other conditions and you miss this one being "green").
Manual says there's no "at" operator, but I was thinking could this behaviour be changed so that when date/time is specified like in my example, it would behave like "at" instead of being always true?
-
You don't need an "at" because an "after" will trigger at the set time. It also has the advantage that if the system is down when the set time arrives, it will trigger as soon as the system comes up (when used in a Rule's trigger conditions; any time until midnight), so the event is less likely missed. If you want to make sure something only happens at the set time or within a smaller error, set a
between <time> and <time+minutes>(there are other clever things you can do as well, exercise for the reader).Between 1300 and 1300means between 1300 today and 1300 tomorrow. That won't change.BTW, this behavior (and explanation) goes back to the Reactor plugin for Vera.










