openhab-rules-tools
openhab-rules-tools copied to clipboard
Library functions, classes, and examples to reuse in the development of new Rules.
Now that we have a centralized place where timers are actually created, add some bookkeeping there to keep track of when all the outstanding timers are scheduled to go off...
If the function that is called on each loop of the looping timer returns a time that is in the past, end the loop with an error rather than continuing...
As the uptake for JS Scripting increases and we get closer to the sunsetting of Nashorn the Rule Templates should be refactored to use openhab-js which will greatly simplify them...
There is a bug somewhere in the timer management that is causing a leak. Essentially I'm getting tons and tons of looping timers or alert timers building up. The solution...
With OH 4 release the new ItemStateUpdatedEvent and GroupStateUpdatedEvent were introduced and ItemStateUpdatedEvent replaced ItemStateEvent. Rule templates that do something different based on the trigger need to be updated.
Support the use case where if the timer already exists recreate the timer with the new parameters (including func) instead of just canceling it. Maybe a new method to call?...
See if there is a way to make it so that we can create the JS EventObject in UI rules.
LoopingTimer and others do not expose a `cancel` method making canceling them from Blockly awkward.