Releases: rkoshak/openhab-rules-tools
Releases · rkoshak/openhab-rules-tools
v2.0.3
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
v2.0.2
v2.0.1
v2.0.0
What's Changed
Library
- Readme updates by @rkoshak in #79
- [helpers] Added code to calculate and publish the current state by @rkoshak in #80
- [countdownTimer] Call the function at the end, not the beginning by @rkoshak in #86
- [loopingTimer] throw exception when looping timer time in past by @rkoshak in #87
- [helpers] Added helper functions to test library version nums by @rkoshak in #89
Rule Templates
Note: Rule templates do not follow a release cycle.
- [mqttEb] Initial reimplementation of MQTT Event Bus by @rkoshak in #81
- [expire_updater] Added expire_updater rule template by @rkoshak in #82
- [thingStatus] Changed trigger for thingStatus to support changes in core by @rkoshak in #83
- [presenceSim] Reimplementation of Presence simulation for OH 4 by @rkoshak in #84
- [rule tempaltes] Don't set log level in rule template by @rkoshak in #85
- [mqttEb] Publishing ONLINE is now handled by the Broker Thing by @rkoshak in #88
Full Changelog: v1.2.0...v2.0.0
v1.2.0
What's Changed
- Use
createTimer
instead ofcreateTimerWithArgument
by @florian-h05 in #76 - Added rewrite of the Thing Status Reporting rule template using ECMAScript 2021 for OH 4 by @rkoshak in #77
- Added rewrite of the Debounce rule template using ECMAScript 2021 for OH 4 by @rkoshak (I forgot to make a PR and merged straight into main)
- Added rewrite of the Time Based State Machine using ECMAScript 2021 for OH 4 by @rkoshak (I forgot to make a PR and merged straight into main)
- Added checkGrpAndMetadata to helpers.js and exposed it to be used by rule templates to validate Item configs for rule templates like Debounce and Time Based State Machine by @rkoshak (I forgot to make a PR and merged straight into main)
As of this release the library depends on openhab-js 4.0 or later.
Full Changelog: v1.1.4...v1.2.0