openhab-core icon indicating copy to clipboard operation
openhab-core copied to clipboard

[automation] Allow empty script for script action & script condition

Open florian-h05 opened this issue 1 year ago • 0 comments

Required to fix https://github.com/openhab/openhab-webui/issues/2461.

Currently when adding a new script action or script condition to a rule in the UI, the first thing the user sees is a red error message, because the script is not defined yet. As this is confusing and might worry especially new users, this issue should be fixed.

My proposal is to add support for empty script to script action and script condition and update the UI to create the script field as empty when creating a new script action or condition.

Script action and condition both short-evaluate to a value they don't affect the rule's execution when the script is empty.

florian-h05 avatar Mar 13 '24 10:03 florian-h05