Rules and return codes

I will then prepare the required PRs in the next days:

  1. Inject the module type into the context (core): [automation] AbstractScriptModuleHandler: Inject module type ID into context by florian-h05 · Pull Request #5054 · openhab/openhab-core · GitHub
  2. Make event object conversion work independent from wrapper (add-on): [jsscripting] Make event object conversion work independent of wrapper by florian-h05 · Pull Request #19429 · openhab/openhab-addons · GitHub
  3. Always enable wrapper for actions & Make it only configurable for conditions, default to off there (add-on PR)
  4. Implement the directive. We can easily make it work for both actions and conditions to have a way of disabling the wrapper if required, though this is not expected. I am against documenting this directive for actions though, will only cause confusion. (add-on PR)

3 & 4: [jsscripting] Wrapper: Always enable for actions, configurable for conditions by florian-h05 · Pull Request #19443 · openhab/openhab-addons · GitHub

The add-on PRs might be combined into a bigger one.

2 Likes