Skip to content

v2.0.3

Latest
Compare
Choose a tag to compare
@rkoshak rkoshak released this 18 Aug 18:03
· 28 commits to main since this release
31285c4

What's Changed

Rule Templates

  • Added hysteresis to threshold alert by @rkoshak in #93
  • Added rule start delay template by @rkoshak in #94
  • Add all null and alerting Items in call to process rule by @rkoshak in #95
  • Added rate limit option to Threshold Alert by @rkoshak in #96
  • Item threshold and all props override via md by @rkoshak in #97
  • Reschedule property by @rkoshak in #98
  • Don't put reschedule in quotes by @rkoshak in #99
  • Call a rule when Item first alerts, normalized UnDefType by @rkoshak in #100
  • Schedule initAlertRule call to end of DND, separate loggers by @rkoshak in #101
  • Added comment with version of rule by @rkoshak in #102
  • Added resetExpire rule template by @rkoshak in #104
  • ThresholdAlert Bug Fixes by @rkoshak in #106

Library

There is no new functionality but some almost breaking changes to the library.

  • All deprecated functions now generate a warning in the logs.
  • I created and export a factory for all the classes now. For example, given the old approach:
var { timerMgr } = require('openhab_rules_tools');

var tm = new timerMgr.TimerMgr();

you should use

var {TimerMgr} = require('openhab_rules_tools');
var tm = TimerMgr();

If you try to import the version that starts with the lower case, you will get a warning in the logs.

So while old code will continue to work, your logs will become full of warnings.

Eventually I will remove the old way along with the deprecated functions.

Full Changelog: v2.0.2...v2.0.3