Skip to content

Releases: rkoshak/openhab-rules-tools

v2.0.3

18 Aug 18:03
31285c4
Compare
Choose a tag to compare

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

28 Feb 22:02
Compare
Choose a tag to compare

What's Changed

  • Check versions of openhab-js and ohrt by @rkoshak in #90
  • Fixed bug in expired. by @rkoshak in #91
  • Implemented merged threshold alert and open door reminder by @rkoshak in #92

Full Changelog: v2.0.1...v2.0.2

v2.0.1

23 Feb 20:18
Compare
Choose a tag to compare

Fixed bug in version checking logic

v2.0.0

23 Feb 19:45
Compare
Choose a tag to compare

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

07 Feb 22:25
a5bb6f3
Compare
Choose a tag to compare

What's Changed

  • Use createTimer instead of createTimerWithArgument 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

v1.1.4

20 Oct 18:27
Compare
Choose a tag to compare

No differences between the previous version. Somehow the npm versions and github became out of sync.

v1.1.3

20 Oct 18:22
99b0d4d
Compare
Choose a tag to compare

Added the ability to supply a name when creating a timer to make debugging easier. If the name isn't supplied, the ruleUID will be used. If that isn't available the filename will be used. Otherwise it defaults to the name of the library.

v1.1.2

30 Aug 21:08
Compare
Choose a tag to compare

Deprecated timeUtils.toDateTime() in favor of openhab-js's time.toZDT(). There are minor differences in how it handles Duration strings. It now follows the ISO8601 standard so such strings will need to start with "PT".

v1.1.1

16 Feb 17:56
Compare
Choose a tag to compare
  • Minor bug fixes in timeUtils
  • Added .npmignore to avoid publishing the rule-templates as part of the library

v1.1.0

28 Jan 21:38
43592d0
Compare
Choose a tag to compare

Initial full release of openhab-rules-tools rewritten for the JavaScript Scripting add-on in openHAB. Deprecated code can be found in the before_npm branch. Install using npm i openhab_rules_tools.