diff --git a/CHANGELOG.md b/CHANGELOG.md
index 316c8bf4c..21283a7c6 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,9 @@
| Type | Namespace | Description | Reference | Breaking |
|-------------|------------|--------------------------------------------------------------------------|--------------------------------------------------------|----------|
| Enhancement | `triggers` | Add DateTime Trigger | [#154](https://github.com/openhab/openhab-js/pull/154) | No |
+| Enhancement | `items` | ItemHistory: Add missing methods & Enable type defs | [#158](https://github.com/openhab/openhab-js/pull/158) | No |
+| Docs | `actions` | Update docs for naming timers | [#160](https://github.com/openhab/openhab-js/pull/160) | No |
+
Also see the [Release Milestone](https://github.com/openhab/openhab-js/milestone/4).
diff --git a/README.md b/README.md
index 1dc4a370d..0660e89f6 100644
--- a/README.md
+++ b/README.md
@@ -524,11 +524,11 @@ let now = time.ZonedDateTime.now();
// Function to run when the timer goes off.
function timerOver () {
- logger.info('The timer is over.');
+ console.info('The timer is over.');
}
// Create the Timer.
-this.myTimer = actions.ScriptExecution.createTimer(now.plusSeconds(10), timerOver);
+this.myTimer = actions.ScriptExecution.createTimer('My Timer', now.plusSeconds(10), timerOver);
// Cancel the timer.
this.myTimer.cancel();
diff --git a/actions.js b/actions.js
index 301fee17a..27e698b2d 100644
--- a/actions.js
+++ b/actions.js
@@ -2,7 +2,7 @@
/**
* Actions namespace.
- * This namespace provides access to openHAB actions. All available actions can be accessed as direct properties of this
+ * This namespace provides access to openHAB actions. {@link https://www.openhab.org/javadoc/latest/org/openhab/core/model/script/actions/package-summary.html All available actions} can be accessed as direct properties of this
* object (via their simple class name).
*
* @example
Sends a broadcast notification
@@ -33,7 +33,7 @@ actionServices.forEach(function (item) {
});
/**
- * Audio Actions
+ * {@link https://www.openhab.org/javadoc/latest/org/openhab/core/model/script/actions/audio Audio} Actions
*
* The static methods of this class are made available as functions in the scripts. This allows a script to use audio features.
*
@@ -58,7 +58,7 @@ actionServices.forEach(function (item) {
const Audio = Java.type('org.openhab.core.model.script.actions.Audio');
/**
- * BusEvent Actions
+ * {@link https://www.openhab.org/javadoc/latest/org/openhab/core/model/script/actions/busevent BusEvent} Actions
*
* The static methods of this class are made available as functions in the scripts. This gives direct write access to the openHAB event bus from within scripts. Items should not be updated directly (setting the state property), but updates should be sent to the bus, so that all interested bundles are notified.
* @example
@@ -79,7 +79,7 @@ const Audio = Java.type('org.openhab.core.model.script.actions.Audio');
const BusEvent = Java.type('org.openhab.core.model.script.actions.BusEvent');
/**
- * Ephemeris Actions
+ * {@link https://www.openhab.org/javadoc/latest/org/openhab/core/model/script/actions/ephemeris Ephemeris} Actions
*
* The static methods of this class are made available as functions in the scripts. This allows a script to use ephemeris features.
* @example
@@ -119,7 +119,7 @@ const BusEvent = Java.type('org.openhab.core.model.script.actions.BusEvent');
const Ephemeris = Java.type('org.openhab.core.model.script.actions.Ephemeris');
/**
- * Exec Actions
+ * {@link https://www.openhab.org/javadoc/latest/org/openhab/core/model/script/actions/exec Exec} Actions
*
* This class provides static methods that can be used in automation rules for executing commands on command line.
*
@@ -133,7 +133,7 @@ const Ephemeris = Java.type('org.openhab.core.model.script.actions.Ephemeris');
const Exec = Java.type('org.openhab.core.model.script.actions.Exec');
/**
- * HTTP Actions
+ * {@link https://www.openhab.org/javadoc/latest/org/openhab/core/model/script/actions/HTTP.html HTTP} Actions
*
* This class provides static methods that can be used in automation rules for sending HTTP requests
*
@@ -161,7 +161,7 @@ const Exec = Java.type('org.openhab.core.model.script.actions.Exec');
const HTTP = Java.type('org.openhab.core.model.script.actions.HTTP');
/**
- * Log Actions
+ * {@link https://www.openhab.org/javadoc/latest/org/openhab/core/model/script/actions/Log.html Log} Actions
*
* The static methods of this class are made available as functions in the scripts. This allows a script to log to the SLF4J-Log.
*
@@ -177,7 +177,7 @@ const HTTP = Java.type('org.openhab.core.model.script.actions.HTTP');
const LogAction = Java.type('org.openhab.core.model.script.actions.Log');
/**
- * Ping Actions
+ * {@link https://www.openhab.org/javadoc/latest/org/openhab/core/model/script/actions/Ping.html Ping} Actions
*
* This Action checks the vitality of the given host.
*
@@ -190,14 +190,15 @@ const LogAction = Java.type('org.openhab.core.model.script.actions.Log');
const Ping = Java.type('org.openhab.core.model.script.actions.Ping');
/**
- * ScriptExecution Actions
+ * {@link https://www.openhab.org/javadoc/latest/org/openhab/core/model/script/actions/scriptexecution ScriptExecution} Actions
*
* The static methods of this class are made available as functions in the scripts. This allows a script to call another script, which is available as a file.
*
* @example
* ScriptExecution.callScript(String scriptName)
- * ScriptExecution.createTimer(ZonedDateTime instant, org.eclipse.xtext.xbase.lib.Procedures.Procedure0 closure)
- * ScriptExecution.createTimerWithArgument(ZonedDateTime instant, Object arg1, org.eclipse.xtext.xbase.lib.Procedures.Procedure1