but unfortunately as soon as I provide an offset value (as integer) I get the following error message:
2024-11-01 14:27:30.434 [ERROR] [omation.script.javascript.outdoor.js] - Failed to execute script: TypeError: invokeMember (withId) on org.openhab.core.automation.util.TriggerBuilder@20b0d76 failed due to: Cannot convert '3600'(language: Java, type: java.lang.Integer) to Java type 'java.lang.String': Invalid or lossy primitive coercion.
at <js>.u(@openhab-globals.js:2)
at <js>.DateTimeTrigger(@openhab-globals.js:2)
at <js>.:program(outdoor.js:5)
at org.graalvm.polyglot.Context.eval(Context.java:399)
at com.oracle.truffle.js.scriptengine.GraalJSScriptEngine.eval(GraalJSScriptEngine.java:458)
... 21 more
2024-11-01 14:27:30.434 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - Error during evaluation of script '/openhab/conf/automation/js/outdoor.js'
Do I miss something? Within the source code at triggers.js - Documentation line 271 I can find the additional parameter :-/
DateTimeTrigger offset is only supported since version 5.6.0 of openhab-js and openHAB 4.3.0.M2, so you need at least openHAB 4.3.0.M2, which is the latest milestone release at the moment.