Trigger at the beginning of the interval instead of the end.
Is this a feature relevant to companion itself, and not a module?
- [x] I believe this to be a feature for companion, not a module
Is there an existing issue for this?
- [x] I have searched the existing issues
Describe the feature
Currently a "Time Interval" trigger doesn't run the actions until the end of the first interval. It would be useful to have an option for running at the beginning of the interval too (i.e. right away).
Usecases
For example, if I add a Trigger to switch camera angle every 10 minutes, it is useful to have it trigger right away both as a confirmation that it's running and especially in the case when it is starting a more complex action sequence (i.e. do something, wait, do something else, ...)
You can have multiple trigger events within a single trigger.
Adding one for "Startup" will run the trigger when Companion starts. Adding one for "On condition becoming true" with a condition of the trigger being enabled (which is a given as a condition anyway, so it shouldn't mess anything up) would run the trigger as soon it's enabled.
Pairing either with your time interval should give you exactly what you're looking for--running the trigger every, say, 10 minutes, as well as immediately.
I do both in different triggers to achieve that same goal of "Fire now and also fire every X minutes" and I haven't had any issues.