OH3->OH4 just one hurdle left ... ephemTimeOfDay JS script fails

Thanks for your prompt reply!
I never used a template.
Where do I find it? (There is no Show All as hinted in the ReadMe)


Installed the openhab_rules_tools …

Tried pasting from here into a new ECMA2021 rule, but it failed.
https://raw.githubusercontent.com/rkoshak/openhab-rules-tools/main/rule-templates/ephemToD/time_state_machine.yaml

2023-05-24 21:50:39.739 [ERROR] [b.automation.script.javascript.stack] - Failed to execute script:
org.graalvm.polyglot.PolyglotException: Error: "2023-05-24T21:50:49.581+02:00[SYSTEM]" is an unsupported type for conversion to time.ZonedDateTime
        at <js>.R(/node_modules/openhab.js:2) ~[?:?]
        at <js>.check(/etc/openhab/automation/js/node_modules/openhab_rules_tools/timerMgr.js:46) ~[?:?]
        at <js>.:program(<eval>:279) ~[?:?]
        at org.graalvm.polyglot.Context.eval(Context.java:399) ~[?:?]
        at com.oracle.truffle.js.scriptengine.GraalJSScriptEngine.eval(GraalJSScriptEngine.java:458) ~[?:?]

Edit: looks like I’m hit with this Time Based State Machine [4.0.0.0;4.1.0.0) - #13 by rlkoshak
Will try that workaround …